← All tools

package.json Generator

Build an npm manifest with metadata, scripts, dependencies and publishing details. Preview and download package.json.

package-json-generatorLOCAL WORKSPACE

Enabling local controls…

Settings

Project metadata

Enter one item per line. Use package-name version for dependencies. Registry tags also work. Quick choices add latest and you can edit each version in the list.

Dependencies
Dev dependencies
Publishing settings

npm package.json reference

Results

package.json

{
  "name": "sample-app",
  "version": "1.0.0",
  "private": true,
  "type": "module",
  "main": "index.js",
  "license": "MIT",
  "scripts": {
    "start": "node index.js",
    "test": "node --test"
  },
  "engines": {
    "node": ">=22"
  }
}
Download package.json

How to use this tool

Build an npm manifest with metadata, scripts, dependencies and publishing details. Preview and download package.json.

When not to use it

Accepts supported registry version ranges and tags. Package scripts are exported as text. The tool does not contact npm.