- Bun (latest)
git clone https://github.com/your-username/contextrie.git
cd contextrie
bun installbun run dev # Run with hot reload
bun run format # Format code with Prettier
bun run lint # Run ESLint
bun run lint:fix # Auto-fix lint issuesbun test # All tests
bun test cli # Just CLI testsTest files live alongside source files using the *.test.ts convention.
contextrie/
├── core/ # The engine: ingest → assess → compose pipeline
│ ├── ingest/ # Data ingestion, source types
│ ├── assess/ # Evaluation and scoring for sources for each prompt
│ └── compose/ # Output generation, composing the context for the LLM
├── client/ # Public API (Contextrie class)
├── cli/ # Command-line interface
└── index.ts # Library entry point
Types are colocated with their modules rather than centralized.
- Fork the repo and create a branch from
main - Run
bun run formatandbun run lintbefore committing - Keep PRs focused—one feature or fix per PR
Contextrie is in early development. The API is still taking shape, so expect breaking changes.