Releases: jonaskahn/specmine
Releases · jonaskahn/specmine
Release list
v0.3.1 - The Woken Cat
v0.3.0 - The Sleeping Cat
Change logs
- Add tags extraction
- Refactor prompt instruction
v0.2.0 - Old man
v0.2.0 Release Notes
What's New
- Structured outputs: LLM responses are now constrained to a strict JSON schema (
{specs: [{key, value, children}]}) via Anthropic tool-calling and OpenAIjson_schemamode — no more parsing free-form JSON, so results are more reliable and nested spec groups are supported. - HTML → Markdown input: HTML strings, blobs, and fetched pages are auto-detected and converted to Markdown (via Turndown + GFM) before extraction, so table-heavy product pages extract cleanly.
- Flattening options: new
flattened+inheritanceextract options to flatten nested specs — either keep parent-key prefixes (·) or collapse to innermost leaf pairs.
Improvements
- Legacy flat JSON
{key: value}responses remain supported alongside the new envelope format (validator accepts both). - Prompt tightened: values always strings with units, labels preserved, empty result returns
{"specs":[]}.
Tests & Docs
- New test fixtures: real Axis network-camera PDFs (German) plus HTML, provider, validator, and extractor coverage.
- README documents HTML input handling.
Dependency
- Added
turndown,turndown-plugin-gfm,@types/turndown.
v0.1.0 - Ice Cream
specmine v0.1.0
First release of specmine — extract structured product specifications (JSON) from text or PDFs using an LLM.
- Extract specs from file paths, URLs, or raw text
- PDF inspection for direct document mining
- OpenAI and Anthropic providers, with a resilient fallback provider