Agentic context compiler for AI-assisted development in TypeScript/JavaScript projects. Version 0.1.15 scans package.json, tsconfig.json, ESLint config, and CONTEXT.md, then uses an LLM via OpenRouter to resolve conflicts and generate a single Cursor rules file (.mdc). It bundles skill files for Angular, React, Node.js, TypeScript, etc., prioritized by project config. Requires Node >=22.0.0. Differentiators: automated detection of project technologies and ESLint/TSConfig constraints; priority hierarchy where CONTEXT.md overrides all; single OpenRouter call for synthesis; dry-run mode. Release cadence: early stage, frequent updates.
npm install context-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to programmatically initialize and compile context using the library's named exports.
Upgrade Node to v22 or later.
Replace `skills` with `customSkills` in compile() call.
Set OPENROUTER_API_KEY environment variable or call init() first.
Create the directory manually or run init() which creates it.
Use import statements and ensure package.json has "type": "module".
Explicitly set model in compile options to avoid unexpected changes.
Avoid using internal exports; rely on public API.
Use import syntax; add "type": "module" to package.json or use .mjs extension.
Use `import { init } from 'context-compiler'`.Run `npx context-compiler init` or set process.env.OPENROUTER_API_KEY.
Create directory: `mkdir -p .cursor/rules` or run init first.
Upgrade Node to >=22 and use ESM imports.