About package.json
This tool generates a valid package.json for a Node.js project from a simple form — name, version, description, author, license, entry point, module type, scripts and keywords. package.json is the manifest npm uses for your project. It runs in your browser.
How package.json Generator works
How to use it
- Fill in the project details.
- Copy the generated package.json.
- Save it in your project root and run npm install.
How it works
The fields map directly to package.json keys, producing properly formatted JSON with a start and test script, the module type (CommonJS or ESM), and an array of keywords. You can edit it further afterwards.
Common uses
- Start a new Node project
- Create a package.json quickly
- Set the module type (ESM/CJS)
- Add scripts and keywords
- Choose a license
- Avoid npm init prompts
- Standardise project manifests
- Learn package.json fields
Frequently asked questions
What is package.json?
The manifest npm uses to describe a Node.js project and its scripts.
Where does it go?
In your project root; run npm install afterwards.
What is the type field?
commonjs (require) or module (ESM import).
Is my input uploaded?
No — it is generated in your browser.
Can I add dependencies?
Add them after running npm install <pkg>, which updates the file.
Is the JSON valid?
Yes — it is properly formatted and ready to use.
Is it free?
Yes — completely free with no sign-up.