What is Codapult Guard?
Codapult Guard is an AI developer tool that enforces architecture rules in JavaScript and TypeScript projects, catching project-specific regressions that a type checker cannot. It maps the codebase, lets the team approve project-specific boundaries, and then checks future changes locally and in CI. The classic example is a layering boundary like Client to Server Action to Service to Repository to Database: once the team approves it, Guard flags a violating import in changed files and shows which rule triggered. Guard discovers the architecture already present in the repository rather than prescribing one universal structure, and it never activates proposed rules without approval. It installs as a dev dependency (@codapult/guard, Node 20.19+), generates a reviewable project model, rules, contracts, and baseline under .codapult/guard/, and runs architecture checks via a verify command with CLI, JSON, and SARIF output for local and CI use. Guard also ships an MCP server using host-managed local stdio with no network listener or application-level auth, so AI coding agents can load the same project context and verification results developers see. It is MIT-licensed open source, a strong BestAIFor pick for teams keeping AI-assisted JS/TS codebases architecturally consistent.
What is Codapult Guard used for?
Enforcing approved architecture boundaries in JS/TS repos and sharing project context with AI coding agents, locally and in CI.
How much does Codapult Guard cost?
Pros and cons
Pros
- Catches project-specific architecture regressions a TypeScript type checker cannot detect
- Discovers existing architecture and only enforces boundaries the team approves
- Runs locally and in CI with CLI, JSON, and SARIF output
- Ships an MCP server (host-managed local stdio) so AI agents share the same context
- MIT-licensed open source, installs as a dev dependency with no network listener
Cons
- Scoped to JavaScript and TypeScript projects only
- Requires Node.js 20.19 or newer
- Teams must review and approve the generated model and rules before relying on results
Questions about Codapult Guard
What is Codapult Guard used for?
Codapult Guard enforces architecture boundaries in JavaScript and TypeScript projects. It maps the codebase, has the team approve rules, and then flags violating imports in changed files locally and in CI.
Is Codapult Guard free?
Yes. Codapult Guard is MIT-licensed open source, published as @codapult/guard on npm and installed as a dev dependency. There is no commercial pricing.
How does Codapult Guard work with AI coding agents?
Guard ships an MCP server over host-managed local stdio with no network listener or app-level auth, so AI agents can load the same project context and verification results that developers use inside their coding loop.
How is Codapult Guard different from a TypeScript type checker?
A type checker confirms code is valid TypeScript but cannot know project-specific rules, like keeping client components away from persistence modules. Guard detects those approved-boundary violations in changed files.
What are the best alternatives to Codapult Guard?
Reviews
Sign in to rate and review Codapult Guard.
Sign in to reviewNo reviews yet. Be the first to review Codapult Guard!
