npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@codapult/guard

v0.14.1

Published

Local-first architecture guardrails for JavaScript and TypeScript projects, with first-class support for Next.js SaaS and AI-assisted development

Readme

@codapult/guard

CI Fixtures npm License: MIT Node.js >=20.19 TypeScript MCP Registry MCPSafe codapult-guard MCP server – quality and maintenance score on Glama

Architecture guardrails for AI-assisted development

Codapult Guard helps teams preserve the architecture that makes their project work as it changes. It maps a JavaScript or TypeScript codebase, lets the team approve project-specific boundaries, and checks future changes locally and in CI. AI agents can use the same project context and verification results as developers.

Catch project-specific regressions

A type checker can confirm that code is valid TypeScript. It cannot know that this project requires client components to stay away from persistence modules. Once the team approves that boundary, Guard can detect a violating import in changed files and show which rule was triggered.

Project boundary:  Client → Server Action → Service → Repository → Database
Possible regression: Client ─────────────────────────────────────→ Database

Guard discovers the architecture in the repository; it does not prescribe one universal structure or activate proposed rules without approval.

Get started

Requirements: Node.js >=20.19 and a JavaScript or TypeScript project.

# pnpm
pnpm add -D @codapult/guard
pnpm exec codapult-guard init

# npm
npm install --save-dev @codapult/guard
npx codapult-guard init

Review the generated project model, proposed rules, contracts, and baseline under .codapult/guard/ before relying on the results. Then run Guard's architecture checks:

pnpm exec codapult-guard verify --no-project-checks --tools off

verify can run your configured project checks and detected adapters. The flags above limit this run to Guard's built-in checks. With npm, run npx codapult-guard verify --no-project-checks --tools off. See the complete guide for initialization and daily workflows.

Use Guard with an AI agent

Install a managed instruction block for your agent so it knows when to load Guard context and run verification:

pnpm exec codapult-guard install-agent codex

Supported hosts and MCP setup are in the AI-agent integration guide and host integration guides.

The MCP server uses host-managed local stdio, with no network listener or application-level authentication. The host and operating system control process access and workspace permissions; see the security model.

Choose a GitHub setup

Choose a preset from the existing workflow templates and follow only the hosting steps for that level of protection. Most projects can start with standard PR checks.

| Preset | Use it when | Guide | | --------------------------- | ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------ | | PR checks | You want Guard findings and a required check on ordinary pull requests. | GitHub PR checks | | Trusted PR verification | The Guard check must come from a protected workflow source, including for fork PRs. | Trusted PR setup | | Merge queue | Your repository merges through a GitHub merge queue. | Merge queue setup |

If you are unsure, use PR checks first. It is useful CI feedback, but its workflow lives in the project being checked and can be changed by a pull request. Choose trusted verification when the check itself must be protected from that change.

What Guard does

  • Learns project-specific structure, dependencies, boundaries, and existing findings.
  • Checks approved architecture rules and contracts without imposing a universal architecture.
  • Shows change impact and prepares bounded, redacted context for AI review.
  • Runs configured project checks and adapters when enabled; it does not replace them.
  • Produces deterministic CLI, JSON, and SARIF results for local use and CI.

Guard is local-first and does not call an LLM. The AI host owns model access, edits, and its repair loop. Guard complements TypeScript, ESLint or Biome, tests, SAST, and dependency scanners; it does not replace them.

Documentation

For contributors

Maintainer checks and project fixture coverage are documented in the fixture guide and release guide.

More from Codapult

Starting a SaaS from scratch? Codapult is a production-ready Next.js SaaS foundation built for AI-assisted development, with modular architecture, built-in AI, MCP context, and source code under your control.

License

MIT. See LICENSE.