A deterministic TypeScript CLI that generates framework-aware application foundations using architectural blueprints, capability packs, reusable profiles and safe filesystem planning.
Project Structure Generator is an open-source TypeScript command-line tool for starting applications from explicit, reusable architectural conventions. It supports backend services, frontend applications, command-line tools and other common project shapes. Instead of copying an old repository and adjusting it by hand, a developer chooses an approved structure and generates a new project that follows it.
The tool provides guided creation, direct blueprint selection, curated starting points and reusable profiles. Architecture-specific blueprints define the base organization, while compatible capability packs add supporting setup for areas such as testing, databases, containers, CI or observability. A local vault stores reusable choices and custom organizational patterns.
Generation follows a plan-first workflow: inputs and compatibility are resolved before files are written, and users can preview the result with dry-run commands. The npm-distributed CLI also supports non-interactive execution, project capture and provenance records. Its central idea is to make a good repository convention repeatable instead of repeatedly rediscovering it.
Project Objectives
Express common framework-specific project structures as reusable blueprints rather than copied repositories.
Allow generated projects to compose compatible testing, storage, container and observability scaffolding.
Provide preview and dry-run workflows before creating or overwriting files.
Preserve teams’ preferred configurations through profiles and filesystem-based vaults.
The Problem
The first project in a stack may have a carefully considered layout; the next several often drift as developers copy older repositories, rename folders and bolt on different test or infrastructure setups. Generic scaffolding can create files but does not necessarily capture framework-specific boundaries, compatibility between optional capabilities, or a team's approved conventions. Repeated setup creates avoidable rework and inconsistent starting points.
Approach & Solution
Represent starting architectures as framework-aware blueprints, then compose them with maturity selections, compatibility-checked capability packs, project variables and saved profiles. Implement a deterministic TypeScript planning engine that resolves conflicts before a separate safe filesystem writer runs. Add preview/dry-run commands, built-in and user-managed vault catalogs, reusable project capture, structured outputs for automation, and guards against path traversal or unintended overwrites. Generated projects remain independent of the generator at runtime.
Outcomes
Published an npm CLI with a documented catalog of 23 architecture blueprints and 14 capability packs, turning reusable project conventions into inspectable generation plans and safer project scaffolds.
Target Personas
Active PersonaCore User
Developer Experience Engineer
Ishita improves developer productivity across engineering teams but struggles with maintaining multiple templates, outdated configurations, and complicated onboarding processes. She needs a centralized, reusable blueprint system to standardize project foundations and simplify developer onboarding.
System Architecture
Click to View Full Blueprint
Architecture Blueprint
Deterministic Blueprint Planning and Generation
Deterministic Blueprint Planning and Generation
A TypeScript CLI resolves an entry mode to a framework blueprint, optional profile, maturity policy, and compatible capability packs. A planner validates variables, paths and collisions before a filesystem writer materializes the proposed project and its generation provenance. Vault and catalogue operations support reuse without a runtime server.
CLI and Selection
Guided/quick/direct/profile entry modes identify blueprint, variables, maturity and pack selection.
Blueprint Catalogue
Framework-specific manifests define base project structure and known compatibility rules.
Plan Construction
Resolve variables and optional packs into a deterministic filesystem operations plan.
Safe Filesystem Writer
Apply approved operations with collision/path protections and provenance output.
Profiles and Vaults
Capture approved structures, resolve local catalogue precedence and reuse saved configurations.
Technologies & Stack
TypeScript
Node.js
JSON
YAML
npm
GitHub Actions
Engineering Deep Dive
Production architecture, telemetry evidence, quality verification, and governance.
Testing Strategy & Quality Assurance
Comprehensive automated test suite with unit, integration, and end-to-end regression prevention.
Verified
The repository defines TypeScript type checks, Node.js test-runner cases, package-content checks, and a GitHub Actions cross-platform matrix. These are concrete testing mechanisms; no invented pass count or coverage percentage is presented.
Deployment & Infrastructure
Containerized workloads, cloud resource isolation, and automated GitOps release stages.
Verified
Distributed as an npm package with `structgen` and an equivalent package command. Executed locally through Node.js; generated projects have no runtime dependency on the generator. CI workflow describes Linux, Windows and macOS tests with Node.js versions in a matrix; publication or current CI success were not rechecked in this content pass.
Security, Auth & Data Governance
Least-privilege authorization, token lifecycle governance, and auditable event logging.
Verified
Generation is based on declarative templates and a validated plan. The documented safety model includes destination containment, symlink checks, collision handling, and optional secret checks during blueprint capture; the tool is not represented as an arbitrary code-execution sandbox.
>_
Build better. Reuse smarter.
A collection of reusable blocks that accelerate development.
Project AI Explorer
Grounded • project-structure-generator
Interactive system architecture, trade-offs & production metrics assistant
Explore Project Structure Generator with AI
Select a technical question below or ask anything about this project's codebase, database models, or performance bottlenecks.