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

create-agent-config

v2.0.0

Published

Scaffold AI agent config files for any project. Detects your stack, pulls community rules from cursor.directory, writes configs for Cursor, Claude Code, Copilot, Windsurf, Cline, and AGENTS.md.

Readme


npm create agent-config

Scans your project, detects your stack, pulls community best practices from cursor.directory, and writes config files for every major AI coding tool. You pick which files to create, review what will be written, and confirm before anything touches disk.

What exactly happens

  1. Scans your project directory (package.json, tsconfig, lockfiles, config files)
  2. Detects languages, frameworks, test runners, build tools, package manager
  3. Fetches matching community rules from cursor.directory's open source repository (optional, skippable with --offline)
  4. Shows you every file it plans to create and where
  5. Asks for confirmation before writing anything
  6. Writes the files you approved. Existing files are never overwritten.

Nothing is executed, uploaded, or sent to any API. The only network call is a GET request to raw.githubusercontent.com to fetch community rules. Pass --offline to skip it entirely.

What gets created and where

You choose which files to generate. Here's every possible output:

| File | Location | Used by | | --------------------------------- | -------------------------- | ----------------------------------------- | | AGENTS.md | project root | Codex, Devin, Jules, SWE-agent, 40+ tools | | CLAUDE.md | project root | Claude Code | | .cursor/rules/project.mdc | .cursor/rules/ directory | Cursor IDE (modern .mdc format) | | .github/copilot-instructions.md | .github/ directory | GitHub Copilot | | .windsurfrules | project root | Windsurf / Codeium | | .clinerules | project root | Cline |

Each file contains your detected stack info (languages, frameworks, commands, conventions) plus community best practices if you opted in. The content is project-specific, not generic boilerplate.

Usage

# interactive mode (recommended)
npm create agent-config

# also works with npx
npx create-agent-config

# target a different directory
npx create-agent-config ./my-project

# skip network, use built-in templates only
npx create-agent-config --offline

What gets detected

| Category | Examples | | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------- | | Languages | TypeScript, JavaScript, Python, Rust, Go | | Frameworks | Next.js, React, Vue, Nuxt, Angular, Svelte, SvelteKit, Astro, Remix, NestJS, Express, Fastify, Hono, Electron, Django, Flask, FastAPI | | Test runners | Vitest, Jest, Mocha, Playwright, Cypress, pytest | | Build tools | tsup, esbuild, rollup, Vite, Webpack | | Package managers | npm, pnpm, yarn, bun | | Monorepo | Turborepo, Nx, Lerna, workspaces |

Detection reads config files and package.json. Nothing is executed.

Community rules

When online, the tool fetches framework-specific best practices from cursor.directory's open source repository on GitHub. These are community-curated rules maintained by 160+ contributors covering React, Next.js, TypeScript, Python, Vue, Angular, Svelte, NestJS, and many more.

You're asked whether to include them. If you decline or the fetch fails, the tool falls back to built-in defaults.

Example output

Running against a Next.js + TypeScript project generates an AGENTS.md like this:

# my-app

## Project

Languages: TypeScript
Frameworks: Next.js, React
Testing: Vitest
Package manager: pnpm

## Commands

- Dev server: `pnpm dev`
- Build: `pnpm build`
- Test: `pnpm test`
- Lint: `pnpm lint`

## Conventions

- Use TypeScript strict mode
- Prefer `const` over `let`, avoid `any`
- Use explicit return types on exported functions
- Functional components only, no class components
- Use hooks for state and side effects

## Best Practices

[community rules from cursor.directory for Next.js + React]

## Rules

- Do not modify generated files in `dist/` or `build/`
- Run tests before committing
- Keep commits small and focused

The .cursor/rules/project.mdc version includes YAML frontmatter with alwaysApply: true.

Contributing

Contributions welcome. See CONTRIBUTING.md.

Author

Made by ofershap

LinkedIn GitHub

License

MIT © Ofer Shapira