DanMat/create-packkit

πŸ’» Developer Tools🟒 Verified Active
0 Views
0 Installs

πŸ“‡ 🏠 - Scaffold modern npm packages, CLIs, services, and full-stack monorepos from your agent. Three tools: inspect the option schema, preview the generated file tree, and write the project to disk β€” optionally creating the GitHub repo and pushing to it, or merging into an existing clone without overwriting anything. Also available as a CLI and a web configurator. npx -y packkit-mcp

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "danmat-create-packkit": {
      "command": "npx",
      "args": [
        "-y",
        "danmat-create-packkit"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

Packkit πŸ“¦

A highly configurable scaffolder for modern npm packages and CLIs β€” pick your stack from a CLI or a web configurator, and get a ready-to-ship repo.

npm version npm downloads CI install size License: MIT
Configure on the web MCP server llms.txt PRs welcome

Most scaffolders lock you into one stack, one language, and the terminal. Packkit lets you choose β€” TypeScript or JavaScript, library or CLI, ESM/CJS/dual, your bundler, test runner, linter, git hooks, release flow, GitHub Actions and more β€” and it works from a CLI or a browser page that downloads your project as a zip.

Quick start

# interactive wizard
npm create packkit@latest
# or with npx
npx create-packkit

# skip the wizard with a preset
npx create-packkit ts-lib my-lib
npx create-packkit cli my-tool
npx create-packkit --preset full my-pkg --pm pnpm

Then cd, and you already have a working project β€” build, test, and lint all pass out of the box.

Create the repo, not just the folder

Packkit can create the remote and push the first commit, so you don't have to make an empty repo in a browser first:

# create it on GitHub (private) and push
npx create-packkit ts-lib my-lib --github

# public instead
npx create-packkit ts-lib my-lib --github --public

# any other host β€” GitLab, Bitbucket, Gitea, self-hosted
npx create-packkit ts-lib my-lib --git-remote git@bitbucket.org:me/my-lib.git

--github shells out to the GitHub CLI, so Packkit never asks for, reads, or stores a token β€” gh already holds your credentials. Created repos are private unless you pass --public.

This also fixes your links: the repository URL is baked into package.json and the README's CI badges when the files are generated, so letting Packkit resolve it up front means the badges point somewhere real from the first commit.

Scaffolding into a repo you already have

Already cloned an empty repo, or started some work? --merge scaffolds around what's there:

git clone git@github.com:me/my-lib.git && cd my-lib
npx create-packkit ts-lib my-lib --here --merge

Existing files are never overwritten. Anything that collides is left alone and reported, so you can diff at your leisure. (A directory containing only .git counts as empty β€” a fresh clone scaffolds without needing --merge at all.)

Keep a project current

Every scaffolded project records what it came from in packkit.json. Later, from inside the project:

npx create-packkit upgrade          # dry run: what's changed since you scaffolded
npx create-packkit upgrade --apply  # add new files, bump deps, keep your edits

Upgrade regenerates the project Packkit would produce today and reports the difference β€” new files, added or bumped dependencies, new scripts. --apply brings in the safe changes (your own files, deps, and scripts are preserved); files you've edited are listed for review and never overwritten unless you pass --force.

Or configure it on the web

No install needed: danmat.github.io/create-packkit β€” tick the options, preview the file tree, and download a zip (or copy the equivalent npx create-packkit command). Everything runs in your browser.

Options reference

Every flag, its values (default in bold), and what it's for. Prefer the interactive web configurator β€” the same descriptions appear as you hover. This table is generated from the schema (npm run gen:reference).

Package

FlagValuesWhat it does
--nameβ€”The npm package name. Scoped names like @you/pkg are fine.
--descriptionβ€”One-line summary β€” used in package.json and the README heading.
--authorβ€”Your name (and optionally email/URL). Populates package.json + LICENSE.
--keywordsβ€”Comma-separated npm keywords to help people discover the package.
--repoβ€”Git repository URL. Wires up repository/bugs/homepage links and CI badges.

Core

FlagValuesWhat it does
--languagets Β· jsTypeScript (strict, recommended) or plain ESM JavaScript. TS gives you types, editor help, and generated .d.ts for consumers.
--moduleesm Β· dual Β· cjsHow the package is consumed. ESM-only (default) is the modern, leanest choice β€” Node 20.19+/22.12+ can require() ESM. Pick dual only if you must support older CJS-only consumers; cjs-only is rarely needed.
--serverhono Β· fastify Β· expressFor the service target: Hono (fast, web-standard, tiny β€” default), Fastify (batteries-included, plugins, schema validation), or Express (ubiquitous, huge ecosystem).
--targetlibrary Β· cli Β· service Β· appWhat you are building β€” mix and match: a library (importable package), a CLI (ships a bin), an HTTP service, or an app (Vite SPA).
--monorepoon / off (default: off)Generate a pnpm + Turborepo workspace with two linked example packages and Changesets. Only worth it when β‰₯2 packages share code.
--frameworknone Β· react Β· vue Β· svelteUI framework for component libraries and apps: React, Vue, or Svelte (or none for a plain package).
--pmnpm Β· pnpm Β· yarn Β· bunWhich package manager the scripts, lockfile, and CI target: npm, pnpm, yarn, or bun.
--node22 Β· 24 Β· 26Minimum Node line to support. Choices track Node’s own release schedule (Active LTS is the default); this sets engines + .nvmrc.

Build

FlagValuesWhat it does
--bundlertsup Β· tsdown Β· unbuild Β· rollup Β· noneHow the library is built. tsup (default, esbuild-fast) and tsdown suit most libs; unbuild for zero-config; rollup for full control; none = tsc-only (or no build).
--minifyon / off (default: off)Minify the build output. Best for CLIs and browser bundles; usually unnecessary for libraries (consumers minify).
--no-sourcemapson / off (default: on)Ship source + JS/declaration maps so consumers can step into and go-to-definition on your original code when debugging. On by default for libraries.

Quality

FlagValuesWhat it does
--testvitest Β· jest Β· node Β· noneTest runner: Vitest (fast, Vite-native, default), Jest (classic, huge ecosystem), or Node’s built-in node:test (zero deps).
--no-coverageon / off (default: on)Collect code-coverage reports (v8) and add a coverage script. Pairs with the Codecov workflow.
--storybookon / off (default: off)Add Storybook to develop and document components in isolation. Component libraries only.
--e2eon / off (default: off)Add Playwright end-to-end tests for app targets: a config that boots your dev server, an example spec, and a CI job.
--envon / off (default: off)Type-safe environment variables: a Zod-validated src/env.ts that fails fast on misconfig, plus a .env.example. For services and CLIs.
--pkg-checkson / off (default: off)Verify the published package is correct with publint + are-the-types-wrong (exports map, types resolution, ESM/CJS). Highly recommended for libraries.
--knipon / off (default: off)Find unused files, dependencies, and exports so the project doesn’t accumulate dead weight.
--size-limiton / off (default: off)Add a bundle-size budget (size-limit) that measures your built entry and fails CI if it exceeds the limit β€” catches accidental bloat.
--doctoron / off (default: off)Add an env doctor (npm run doctor) that warns when the local Node / package manager don’t match what the project expects. Warn-only.
--linteslint-prettier Β· biome Β· oxlint Β· noneLinter + formatter: ESLint + Prettier (default, most compatible), Biome (one fast tool for both), or oxlint (Rust-fast linting).
--hookssimple-git-hooks Β· husky Β· lefthook Β· nonePre-commit hooks that run lint-staged: simple-git-hooks (tiny, default), husky (popular), or lefthook (fast, parallel).

Release

FlagValuesWhat it does
--canaryon / off (default: off)Add a workflow that publishes snapshot builds (x.y.z-canary-) to a canary dist-tag so people can test unreleased changes. Requires Changesets.
--releasechangesets Β· release-it Β· np Β· noneHow you version + publish: Changesets (default, great for libraries and monorepos), release-it, np, or none.
--jsron / off (default: off)Also publish to JSR, the TypeScript-first registry. For plain ESM TypeScript libraries.

CI / CD

FlagValuesWhat it does
--workflowsci Β· npm-publish Β· pages Β· codeql Β· codecov Β· staleGitHub Actions to include: ci (lint/test/build), npm-publish (provenance), pages (deploy Storybook/site), codeql (security), codecov (coverage), stale.
--depsrenovate Β· dependabot Β· noneAutomated dependency updates: Renovate (default, powerful) or Dependabot (built into GitHub).

Repository

FlagValuesWhat it does
--licenseMIT Β· Apache-2.0 Β· ISC Β· noneOpen-source license for the LICENSE file and package.json (MIT recommended), or none.
--no-communityon / off (default: on)Community health files: CONTRIBUTING, CODE_OF_CONDUCT, SECURITY, and issue/PR templates.
--no-agentson / off (default: on)AI-agent instructions (AGENTS.md + CLAUDE.md) so coding agents know how to build, test, and work in the repo.
--no-vscodeon / off (default: on)VS Code workspace settings + recommended-extensions so the repo is set up consistently on open.
--no-editorconfigon / off (default: on)An .editorconfig so every editor uses the same indentation and line endings.
--no-giton / off (default: on)Run git init and make an initial commit after scaffolding.
--no-installon / off (default: on)Install dependencies automatically after scaffolding.

Presets

Named bundles of the options above β€” npx packkit <preset> <name> -y.

PresetShortcutWhat you get
ts-liblibTypeScript library β€” ESM-only, tsup, Vitest, ESLint.
js-libjslibJavaScript (ESM) library β€” tsup, Vitest, ESLint.
ts-cliβ€”TypeScript CLI + library β€” ESM, ships a bin.
cliβ€”TypeScript CLI tool β€” ESM, ships a bin.
react-librlibReact component library (TS) β€” JSX, peer deps, jsdom tests.
react-lib-jsβ€”React component library (JS) β€” JSX, peer deps, jsdom tests.
react-apprappReact SPA β€” Vite dev server, build, Testing Library.
vue-libvlibVue component library β€” Vite lib build (SFCs), ESM + types.
vue-appvappVue SPA β€” Vite dev server, build, Testing Library.
svelte-libslibSvelte component library β€” ships source, peer svelte, jsdom tests.
svelte-appsappSvelte SPA β€” Vite dev server, build, Testing Library.
node-servicesvc, serviceNode HTTP service (Hono) β€” tsx dev, tsup build, Dockerfile.
monorepoβ€”pnpm + Turborepo workspace β€” two example packages, Changesets, CI.
ossβ€”Full open-source library β€” coverage, CodeQL, Codecov, Renovate, Changesets.
minimalβ€”Bare TS library β€” tsup only, no tests/lint/CI.
fullβ€”Everything on β€” library + CLI, all workflows and extras.

Team profiles: save a partial config as packkit.config.json (or any file) and reuse it with npx create-packkit my-lib --from ./packkit.config.json β€” flags still override the file.

For AI agents & automation

Packkit is safe to drive non-interactively β€” every option is a flag, so no prompts are needed. Agents can introspect the whole interface as JSON:

npx create-packkit --schema      # all options, presets, and aliases as JSON
npx create-packkit my-lib ts-lib --no-install --no-git   # deterministic scaffold

There's also an llms.txt (served at danmat.github.io/create-packkit/llms.txt) describing the commands for LLMs.

MCP server β€” packkit-mcp exposes Packkit as a native Model Context Protocol tool (schema / preview / scaffold). Add to your agent's MCP config:

{ "mcpServers": { "packkit": { "command": "npx", "args": ["-y", "packkit-mcp"] } } }

Embed Packkit in your own app

Packkit ships a typed, side-effect-free API so a Node application can use it as a project-generation engine β€” generate in memory, add your own deployment files, and write to disk when you're ready. No prompts, installs, git, or network.

import { createProject, extendProject, writeGeneratedProject } from 'create-packkit/embedded';

const project = createProject({ preset: 'react-app', name: 'weather-dashboard' });
const extended = extendProject(project, { files: { '.github/workflows/deploy.yml': deployYaml } });
await writeGeneratedProject({ project: extended, destination: '/tmp/weather-dashboard' });

Full guide, including diagnostics, reproducible definitions, digests, and the provider-neutral deployment contract: Embedding Packkit.

How it works

Packkit is a pure config β†’ { files } core that runs in both Node and the browser:

  • the CLI writes the files to disk, runs git init, and installs dependencies;
  • the web configurator zips the same files client-side (no server);
  • the embedded API (create-packkit/embedded) hands the file map to a host application.

All three drive from one options schema (src/core/options.js), so they always stay in sync.

Staying fresh

Two GitHub Actions keep the templates honest:

  • Dependency freshness β€” a weekly check flags any version Packkit writes into generated projects that's fallen a major behind (versions Dependabot can't see), and opens an issue.
  • Integration β€” on any change to generation logic or a template dependency, it generates every preset, installs it, and runs its real checks (build/test/lint, and actually starts services) β€” so an update can't silently break the projects you'd get.

License

MIT Β© DanMat

Related MCP Servers

Moxie-Docs-MCPβ˜… Featured

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

πŸ’» Developer Tools2 views
3KniGHtcZ/codebeamer-mcp

πŸ“‡ ☁️ 🍎 πŸͺŸ 🐧 - Codebeamer ALM integration for managing work items, trackers, and projects. Provides 17 tools for reading and writing items, associations, references, comments, and risk management data via Codebeamer REST API v3.

πŸ’» Developer Tools1 views
21st-dev/Magic-MCP

Create crafted UI components inspired by the best 21st.dev design engineers.

πŸ’» Developer Tools0 views
a-25/ios-mcp-code-quality-server

πŸ“‡ 🏠 🍎 - iOS code quality analysis and test automation server. Provides comprehensive Xcode test execution, SwiftLint integration, and detailed failure analysis. Operates in both CLI and MCP server modes for direct developer usage and AI assistant integration.

πŸ’» Developer Tools0 views

Engagement

Views
0
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Active

Recent health check succeeded.

Last checked: 7/28/2026, 9:23:26 PM

Unclaimed listing (imported or pending owner verification). Claim it β†’
β˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.