Unrag is a RAG installer that adds small, auditable, drop-in primitives (ingest/retrieve + adapters) directly into your codebase as vendored source files.
This repository is a Turborepo + Bun workspaces monorepo.
packages/unrag: the publishable npm package and CLI (unrag) plus the embeddedregistry/**templates it installs.apps/web: Next.js + Fumadocs site (landing + documentation).
Install deps:
bun installThere’s a small helper script to export .excalidraw.json files to PNG. It expects excalidraw-brute-export-cli to be available on your PATH.
bun run export:excalidraw -- --output ./output path/to/file1.excalidraw.json path/to/file2.excalidraw.jsonRun everything:
bun run build
bun run testRun the docs site:
cd apps/web
bun run devcd packages/unrag
bun run build
bun linkThen in any project:
bun link unrag
bunx unrag@latest init- Create a changeset:
bun run changeset- Version packages:
bun run version-packagesPush to main. GitHub Actions will open a Version PR and publish after merge (requires NPM_TOKEN secret).