Package JSON Generator

Assemble a valid package.json with entry points, exports, scripts, dependencies and engine constraints, checked against the npm name rules.

Describe your package

Name check: —
Version: —
Dependencies: —
Size: —
Scripts and dependencies are written one per line as name: value, and the name is checked against the npm rules.

How to use the Package JSON Generator

  1. Enter the package name, version and a short description.
  2. Choose the module type, license and the entry points of your package.
  3. Fill in scripts and dependencies, then copy the generated package.json.

Features

Advertisement

Frequently Asked Questions

Common questions about the free online package json generator.

It is the manifest for a Node.js package, listing the name, version, entry points, scripts, dependencies and engine requirements.
Names must be lower case, at most 214 characters, URL safe, and must not start with a dot or an underscore or contain spaces.
The exports map tells Node which file to load for each entry point and condition, such as import, require and types.
The type field sets how the file extension is interpreted, so module enables import syntax while commonjs keeps require.
A scoped name starts with an at sign and a scope, then a slash and the package name, and it must follow the same rules.
Packages that your code needs at runtime. Build and test tools usually belong in devDependencies instead.
They declare the Node versions that the package supports, and npm warns when the installed version does not match.
Yes. The object is built in a fixed key order and serialised with two space indentation, ready to paste into your project.
No. Everything runs locally in your browser, so no text ever leaves your device.
Yes. It is completely free with no account, no sign up and no hidden limits.

Last updated: October 10, 2026