Getting Started with CentR
CentR is developer middleware that reduces repeated repository exploration by providing task-relevant project intelligence, project memory, and cross-project learning.
Prerequisites
Node.js >= 20.0.0 and npm are required. CentR uses native SQLite 3 bindings with zero mandatory cloud AI services.
1. Global Installation
bash
npm install -g @centr-ai/cli2. Initialize Your Repository
Navigate to your project root and run centr init. CentR parses your TypeScript/JavaScript codebase using the TypeScript Compiler API and builds an in-process SQLite 3 FTS5 index in ~20-50ms.
bash
cd my-project
centr init3. Query Context for an Agent
Ask CentR for the smallest useful piece of project intelligence needed to complete a task:
bash
centr context "Add rate limiting middleware to auth routes"4. Incremental Syncing
As you modify files, update your index in milliseconds using SHA-256 change detection:
bash
centr sync