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

@archforge/core-engine

v1.2.0

Published

Core engine for ArchForge — template rendering, architecture rules, and project generation

Readme

🔨 @archforge/core-engine

Template Rendering, Rules Engine & Project Generation

npm TypeScript Node.js

The core engine behind ArchForge — handles template rendering, architecture rules validation, and project generation.


📦 Installation

npm install @archforge/core-engine

Looking for the CLI? Use @archforge/cli instead:

npx @archforge/cli init

🧩 What's Included

Template Engine

EJS-based template renderer that interpolates project configuration into file content and paths.

import { TemplateEngine } from '@archforge/core-engine';

const engine = new TemplateEngine();
const context = engine.buildContext(projectConfig);
const rendered = engine.render(templateContent, context);

Template Registry

Maps (stack, architecture) combinations to template manifests — 42 built-in templates across 11 stacks and 10 architecture styles.

import { TemplateRegistry } from '@archforge/core-engine';

const registry = new TemplateRegistry();
const templates = registry.getAll(); // All 42 templates
const template = registry.get('react', 'clean'); // Specific template

Rules Engine

Validates projects against 9 architecture rules that enforce real dependency constraints.

import { RulesEngine } from '@archforge/core-engine';

const engine = new RulesEngine();
const violations = await engine.validate('./my-project', 'clean');
// Returns: RuleViolation[] with file, rule, and description

Project Generator

Orchestrates end-to-end project generation: template rendering, file writing, and tooling add-ons.

import { ProjectGenerator } from '@archforge/core-engine';

const generator = new ProjectGenerator();
await generator.generate({
  name: 'my-api',
  stack: 'java',
  architecture: 'clean',
  database: 'postgresql',
  auth: 'jwt',
  tooling: ['docker', 'ci', 'tests'],
  // ... more options
});

📋 Supported Stacks & Architectures (42 templates)

Frontend

| Stack | Architectures | | ----------- | ---------------------------------------------------- | | React | Clean, Layered, Feature-based, Feature-Sliced Design | | Next.js | Clean, Feature-based | | Angular | Clean, Layered | | Vue.js | Feature-based |

Backend

| Stack | Architectures | | ----------- | -------------------------------------------------------------------------- | | Node.js | Clean, Layered, MVC, Hexagonal, Microservices | | Java | Clean, Layered, Hexagonal, DDD, MVC, CQRS, Microservices, Modular Monolith | | .NET | Clean, Layered, Hexagonal, DDD, MVC, CQRS, Microservices, Modular Monolith | | Django | MVC, Layered, Clean | | Laravel | MVC, Layered, Modular Monolith |

Mobile

| Stack | Architectures | | ---------------- | -------------------- | | React Native | Clean, Feature-based | | Flutter | Clean, Feature-based |

Recommended (baseline): Clean · Layered · MVC · Feature-based · Modular Monolith

Advanced (situational): Hexagonal · DDD · CQRS · Microservices · Feature-Sliced

🧪 Architecture Rules (9 total)

| Rule | Description | | ----------------------------- | -------------------------------------------------------- | | clean/domain-isolation | Domain cannot import from infrastructure or presentation | | clean/application-isolation | Application cannot import from presentation | | feature/isolation | Features cannot cross-import | | naming/no-impl-in-domain | No "Impl" files in domain | | hexagonal/port-isolation | Ports cannot import from adapters | | ddd/aggregate-isolation | Aggregates cannot cross-import | | fsd/layer-order | FSD layers enforce import hierarchy | | cqrs/segregation | Commands and queries stay separate | | modular/module-isolation | Modules use public API only |

🔗 Links

📄 License

MIT © mr-kasper