Service that reads a codimd sqlite file and generates all the documents as files for LLM context inclusion
This tool is designed to extract notes from a CodiMD SQLite database and convert them into individual markdown files. This is particularly useful for users who want to leverage their notes as context for Large Language Models (LLMs) or other applications that require file-based input.
- Node.js (v24 or higher)
- npm (v11 or higher)
- SQLite3 database file from CodiMD
- Clone the repository:
git clone [email protected]:possumtech/codimd-context.git- Navigate to the project directory and create your
.envfile:
cd codimd-context
cp .env.example .env
vim .env- Run the app
npm run startFOLDER_CHAR="_"
DB_LOCATION="~/codimd/db.sqlite3"
OUTPUT_DIR="context/"-
FOLDER_CHAR: Character in note titles that will be replaced with folder structure. -
DB_LOCATION: Path to your CodiMD SQLite database file. -
OUTPUT_DIR: Directory where the generated files will be saved.
I don't know or care about Hedgedoc. Good luck getting this to work with that. Let me know if it works or there's an easy fix.
MIT License. See LICENSE file for details.