Heco Feature Gen

Feature scaffolding made simple

HomeDocsExamples
v1.0.0GitHub
Documentation
OverviewGetting StartedConfigurationCLI ReferenceProgrammatic APIFolder StructureTemplates

Getting Started

Installation

Install @heco-gen/features in your project:

bash
npm install @heco-gen/features

Quick Start

1. Create a config file

Create hfg.config.json in your project root:

json
{
  "folderNames": {
    "components": "components",
    "hooks": "hooks",
    "services": "services",
    "types": "types",
    "validations": "validations",
    "store": "store"
  },
  "basePath": "src/features"
}

2. Generate your first feature

bash
npx heco generate user-profile

This creates:

txt
src/features/user-profile/
├── components/
│   ├── UserProfileList.tsx
│   └── UserProfileCard.tsx
├── hooks/
│   ├── useUserProfile.ts
│   └── useUserMutations.ts
├── services/
│   └── userProfileService.ts
├── types/
│   └── userProfileTypes.ts
├── validations/
│   └── userProfileSchema.ts
└── store/
    └── userProfileStore.ts

3. Verify

bash
npx heco list

Shows all available generators and their file structures.

Heco Feature Gen

Feature scaffolding made simple

A powerful CLI tool that creates consistent, feature-based folders with all the boilerplate code you need for modern web development.

Docs

DocumentationExamples

Community

GitHubNPM

© 2026 • Developed by Htoo Aung Phyo Lwin