npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

create-n8n

v1.0.1

Published

Scaffolding tool for n8n workflow projects

Readme

create-n8n

The official scaffolding tool for modular n8n workflow projects.

create-n8n generates a native, production-ready directory structure for building n8n workflows as code, powered by the flat8n compiler.

npm version n8n Compatible flat8n Powered License: MIT

Quick Start  •  Why You Need This  •  Features  •  Architecture

Quick Start

Run the interactive CLI wizard in your terminal to scaffold a new project:

npm create n8n@latest

The CLI prompts you for a project name, generates the required directory structure, configures the environment variables, and initializes a Git repository.

Once scaffolded, boot the local development environment:

cd your-project-name
npm install
npm run dev

Why You Need This

Building n8n workflows through the browser UI is effective for small automations, but scales poorly for engineering teams. Version control becomes difficult, code reuse requires manual copy-pasting, and isolating environments introduces risk.

create-n8n bridges this gap by establishing a standard, code-first architecture. It integrates directly with @flat8n/cli, allowing you to write small, modular JSON workflows in your editor. The compiler then resolves cross-file dependencies and outputs a single, deterministic workflow ready for CI/CD deployment.

| Capability | Standard n8n Workspace | create-n8n Workspace | |---|---|---| | Structure | Unstructured exports. | Modular, domain-driven directories. | | Development | Manual UI management. | Automated local dev server sync. | | Reusability | Copy-paste nodes. | Shared sub-workflow modules. | | Security | Embedded credentials. | .env isolated variables. |

Features

  • Zero-config Environment. The CLI provides a fully working local n8n instance synchronized with your file system out of the box.
  • Modular Compilation. Build complex architectures by separating logic into sub-workflows. The underlying compiler merges them into a single deployable asset.
  • Hot Reloading. Edit workflow structures in your code editor or the local n8n UI, and changes synchronize instantly across both.
  • Deterministic Builds. The compiler generates stable Node IDs and Webhook IDs, ensuring production endpoints remain stable across deployments.
  • Secure Defaults. Scaffolding includes .gitignore rules and .env.example templates to prevent credential leakage.

Architecture

A project scaffolded with create-n8n uses a standard layout optimized for version control and modularity.

Directory Layout

my-n8n-app/
├── workflows/
│   ├── main.json             # The primary entrypoint workflow
│   └── subworkflows/
│       └── child.json        # Reusable workflow modules
├── .env.example              # Environment variable templates
├── .gitignore                # Prevents committing secrets
├── flat8n.config.json        # Compiler configuration
└── package.json              # Scripts (dev, build, start)

Build Pipeline

The underlying compilation engine is the @flat8n/cli framework. When you execute npm run build, the compiler parses main.json and inlines all referenced subworkflows into a single deployable artifact located at dist/main.json.

[!TIP] You can deploy the resulting dist/main.json to any production n8n instance without external dependencies. The output is a native, monolithic n8n workflow.

License

MIT © JVON DEV

↑ back to top