CLI
Package.json Generator
Visual package.json file builder with presets for Node.js libraries, React apps, CLI tools, Astro sites, and Express APIs. Configure scripts, dependencies, exports, and metadata. Runs entirely in your browser — your data never leaves your machine.
package-json npm node javascript config package-manager
Published May 29, 2026
All interactive tools run entirely in your browser. Your data never leaves your device.
How It Works
Choose a preset or start from scratch with the Custom option. Fill in the form sections — basic metadata, entry points, scripts, dependencies, exports, and more. The tool generates a correctly structured package.json in real time. Copy it directly to your project.
You can also import an existing package.json to parse it into the form and then modify it.
Features
- 6 presets: Node.js Library (ESM), Node.js Library (CJS), React App, CLI Tool, Astro Site, Express API
- Scripts builder: add/remove name + command pairs, order preserved
- Dependency manager: separate sections for
dependenciesanddevDependencies - Exports field: configure conditional exports with
import,require, andtypesconditions per path - Validation: invalid package name, bad semver version, duplicate scripts, duplicate deps, dep in both sections
- Import & parse: paste an existing
package.jsonto populate the form - Copy output: one-click copy of the generated file
- Private: runs entirely in the browser — no data transmitted
Use Cases
- Bootstrapping a new npm library, CLI tool, or app without memorising field names
- Configuring dual ESM/CJS exports for a publishable package
- Auditing and cleaning up an existing
package.jsonwith the import feature - Learning the
exportsfield and conditional exports syntax interactively - Generating
enginesconstraints andfilesallowlists for controlled publishing