awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
jondot avatar

jondot/hygen

0
View on GitHub↗
5,935 stars·273 forks·JavaScript·MIT·16 viewswww.hygen.io↗

Hygen

Hygen is a code generator CLI and interactive template engine that scaffolds new files and injects code into existing ones using project-local templates. It operates as a Node.js code generator library that can be embedded inside custom binaries for tailored workflows, and also functions as a project scaffolding tool for bootstrapping new projects or folders from remote template repositories.

The tool discovers templates by scanning a project's _templates directory at runtime, mapping folder and file names directly to generator commands and actions. It collects user input through interactive prompts before rendering, then passes answers as template variables using EJS templating. Each generator runs as a sequence of discrete file operations—add, inject, append—with independent template rendering, and a duplicate-injection guard prevents repeated code insertion by tracking injection markers within target files.

Hygen supports injecting template content into existing files at specified locations while preventing duplicate injections, and can clone a Git repository into a temporary directory to copy its template structure into the local _templates folder. The core generation logic is exposed as a library that can be required and invoked programmatically from custom scripts.

Features

  • Project-Local Template Generators - Scaffolding new files and injecting code into existing ones using project-local templates and a fast command-line interface.
  • Prompt-Driven Template Engines - Collecting user input through prompts during generation to dynamically fill template variables.
  • Action Execution Pipelines - Runs each generator as a sequence of discrete file operations (add, inject, append) with independent template rendering.
  • Interactive Variable Prompts - Collects user input via interactive prompts before rendering, then passes answers as template locals.
  • Project Scaffolders - Bootstrapping new projects or folders from remote template repositories with a single command.
  • Local Template Scaffolders - Generate new files from project-local templates using a CLI command that mirrors folder structure.
  • Runtime Template Scanners - Scans the project's _templates directory at runtime to map folder and file names directly to generator commands and actions.
  • Code Generators - Embedding the generation engine as a library inside custom Node.js binaries for tailored workflows.
  • EJS Renderers - Uses Embedded JavaScript templating to interpolate user-provided variables and prompt responses into generated file content.
  • Source Code Injection - Insert template content into an existing file at a specified location while preventing duplicate injections.
  • Duplicate Injection Guards - Prevents repeated code insertion by tracking injection markers (start/end delimiters) within target files.
  • Duplicate-Protected Injections - Inserting template content into an existing file at a specified location while preventing duplicate injections.
  • Embeddable Generator Engines - Embed the generator engine as a library inside a custom Node.js binary to build tailored workflows.
  • Embeddable Code Generators - Exposes the core generation logic as a library that can be required and invoked programmatically from custom scripts.
  • Remote Template Bootstrappers - Bootstrap a new project or folder from a remote template repository.
  • Remote Repository Cloning - Clones a Git repository into a temporary directory, then copies its template structure into the local _templates folder.

Star history

Star history chart for jondot/hygenStar history chart for jondot/hygen

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Hygen

These projects share indexed features with Hygen. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • ponzu-cms/ponzuponzu-cms avatar

    ponzu-cms/ponzu

    5,757View on GitHub↗

    Ponzu is a content management framework written in Go that functions as a headless CMS with a built-in JSON API and an automatically generated admin dashboard. It is designed to be compiled into a single binary, serving both the content API and the administrative interface from a single HTTP server. The framework distinguishes itself through automatic HTTPS certificate management via Let's Encrypt, enabling secure HTTP/2 delivery out of the box. It provides compile-time content scaffolding, allowing developers to define custom content types from the command line and generate the corresponding

    Goapiclicms
    View on GitHub↗5,757
  • preactjs/preact-clipreactjs avatar

    preactjs/preact-cli

    4,669View on GitHub↗

    preact-cli is a command line tool for scaffolding, developing, and building applications using the Preact library. It provides a Webpack-based build pipeline to coordinate code transformation, asset optimization, and production compilation. The toolkit includes a static site prerenderer to convert application routes into static HTML files and a PWA development toolkit for generating service workers and offline asset caching. It also functions as a frontend development server featuring hot module replacement and a proxy for real-time application iteration. The project covers a broad range of

    JavaScriptclihacktoberfesthttp2
    View on GitHub↗4,669
  • diegohaz/restdiegohaz avatar

    diegohaz/rest

    1,810View on GitHub↗

    Rest is a Node.js backend boilerplate and API generator that scaffolds resource-based server applications utilizing Express and Mongoose database models. It provides command-line automation tools to generate complete project directory structures, automated endpoints, and database schemas from the command line. The system incorporates user identity management for account registration, password recovery, and third-party social provider logins alongside query parameter validation against defined rules. It includes collection filtering, sorting, and pagination controls for query endpoints, as wel

    JavaScriptboilerplatejestmongodb
    View on GitHub↗1,810
  • rich-harris/degitRich-Harris avatar

    Rich-Harris/degit

    7,883View on GitHub↗

    degit is a Git project scaffolder and repository downloader that initializes new projects from remote Git templates. It fetches the latest commit of a repository as a clean snapshot, stripping all version control history and metadata to provide a fresh starting point. The tool supports fetching specific branches, tags, or commit hashes to ensure the project uses a precise source version. It can also perform subdirectory extraction, allowing the download of a specific folder from a remote source rather than the entire project tree. The utility includes a local snapshot cache to accelerate fut

    TypeScript
    View on GitHub↗7,883
Compare all 30 related projects→

Frequently asked questions

What does jondot/hygen do?

Hygen is a code generator CLI and interactive template engine that scaffolds new files and injects code into existing ones using project-local templates. It operates as a Node.js code generator library that can be embedded inside custom binaries for tailored workflows, and also functions as a project scaffolding tool for bootstrapping new projects or folders from remote template repositories.

What are the main features of jondot/hygen?

The main features of jondot/hygen are: Project-Local Template Generators, Prompt-Driven Template Engines, Action Execution Pipelines, Interactive Variable Prompts, Project Scaffolders, Local Template Scaffolders, Runtime Template Scanners, Code Generators.

Which projects share features with jondot/hygen?

Projects with overlapping indexed features include: ponzu-cms/ponzu — Ponzu is a content management framework written in Go that functions as a headless CMS with a built-in JSON API and an… wmonk/create-react-app-typescript — This project is a pre-configured starter template and development environment for building web applications using… rich-harris/degit — degit is a Git project scaffolder and repository downloader that initializes new projects from remote Git templates.… preactjs/preact-cli — preact-cli is a command line tool for scaffolding, developing, and building applications using the Preact library. It… diegohaz/rest — Rest is a Node.js backend boilerplate and API generator that scaffolds resource-based server applications utilizing… developit/preact-cli — preact-cli is a command line interface and build pipeline for initializing, developing, and deploying Preact…