What is MarkdownDB
mainMarkdownDB is a JavaScript library designed to transform a folder of markdown files into a queryable SQLite database. It extracts structured data from your plain text files—including frontmatter, tags, links, and tasks—and indexes them so you can perform standard SQL queries across your content.
Key characteristics:
- Stack-agnostic: It can be used with any JavaScript framework or in a standalone environment.
- SQL-native: It uses a real SQLite database, allowing you to use standard SQL instead of a proprietary query language.
- Decoupled: It focuses exclusively on indexing and providing an API; it does not manage your rendering pipeline or tie you to a specific framework (unlike Contentlayer or Astro content collections).
- Rich Extraction: Beyond frontmatter, it extracts inline tags, wikilinks, backlinks, and tasks.