Blazing Fast
Index 1000-2000 files/sec with instant startup (<100ms). Incremental updates only reindex changed files.
Learn more
Lightning-fast hybrid search with AST chunking - RAG-ready for AI assistants
import { CodebaseIndexer, PersistentStorage } from '@sylphx/coderag'
// Create persistent storage (SQLite)
const storage = new PersistentStorage({ codebaseRoot: './my-project' })
// Initialize indexer
const indexer = new CodebaseIndexer({
codebaseRoot: './my-project',
storage,
})
// Index codebase with file watching
await indexer.index({ watch: true })
// Search for code
const results = await indexer.search('authentication logic', {
limit: 10,
includeContent: true,
})
console.log(results)
// [{ path: 'src/auth.ts', score: 0.85, snippet: '...', chunkType: 'FunctionDeclaration' }]Built with performance in mind from day one:
Returns semantic chunks, not entire files:
npm install @sylphx/coderagpnpm add @sylphx/coderagbun add @sylphx/coderagUse CodeRAG with Claude, Cursor, or any MCP-compatible AI assistant:
npx @sylphx/coderag-mcp --root=/path/to/projectOr add to your claude_desktop_config.json:
{
"mcpServers": {
"coderag": {
"command": "npx",
"args": ["-y", "@sylphx/coderag-mcp", "--root=/path/to/project"]
}
}
}Ready to get started? Check out the Quick Start Guide or learn about the MCP Server.