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

@wcnegentropy/procedural

v0.2.6

Published

Universal Procedural Generation engine for composing software projects from capabilities

Readme

@wcnegentropy/procedural

npm version license

Universal Procedural Generation engine for composing software projects from capabilities.

The "Minecraft" approach to project generation — uses Mulberry32 seeded RNG to deterministically generate complete tech stacks from a single integer seed. Implements a Project Assembler that composes projects from 50+ generation strategies across the Universal Matrix. Includes a Pass 2 Enrichment Engine that enhances generated projects with production-ready CI/CD, testing, logic fill, and documentation.

Installation

npm install @wcnegentropy/procedural

Usage

Generate a Project

import { ProjectAssembler, generateProject, createAssembler } from '@wcnegentropy/procedural';

// Quick generation from a seed
const project = await generateProject(42);

// Or use the assembler directly
const assembler = createAssembler();
const result = await assembler.generate({
  seed: 42,
  archetype: 'backend',
  language: 'typescript',
});

Validate a Stack

import { validateStack, validateConstraints } from '@wcnegentropy/procedural';

const validation = validateStack({
  archetype: 'backend',
  language: 'typescript',
  framework: 'express',
});

const constraints = validateConstraints({
  archetype: 'web',
  language: 'rust',
  framework: 'react',
});

Query the Universal Matrix

import {
  getValidLanguagesForArchetype,
  getCompatibleFrameworks,
  getValidOptions,
} from '@wcnegentropy/procedural';

const languages = getValidLanguagesForArchetype('backend');
const frameworks = getCompatibleFrameworks('typescript', 'web');
const options = getValidOptions({ archetype: 'cli' });

Batch Validation with Sweeper

import { Sweeper, runUniversalSweep } from '@wcnegentropy/procedural';

// Run a sweep across the Universal Matrix
const results = await runUniversalSweep({ count: 100, validate: true });

// Or use the Sweeper class directly
const sweeper = new Sweeper({ validate: true });
const report = await sweeper.run(100);

Pass 2: Enrichment

import { ProjectEnricher, AllEnrichmentStrategies, DEFAULT_ENRICHMENT_FLAGS } from '@wcnegentropy/procedural/enrichment';

// Enrich a generated project
const enricher = new ProjectEnricher(generatedProject, assembler.getRng(), {
  flags: DEFAULT_ENRICHMENT_FLAGS['standard'],
});
enricher.registerStrategies(AllEnrichmentStrategies);
const enrichedProject = await enricher.enrich();

// enrichedProject.enrichment contains metadata:
// - strategiesApplied: string[]
// - filesAdded: string[]
// - filesModified: string[]
// - enrichmentDurationMs: number

Introspect a Project

import { ProjectIntrospector } from '@wcnegentropy/procedural/enrichment';

const introspector = new ProjectIntrospector(project.files, project.stack);

// Query the project structure
const manifest = introspector.getManifest();     // Parsed package.json/Cargo.toml/etc.
const entryPoint = introspector.getEntryPoint(); // src/index.ts, main.py, etc.
const ports = introspector.getExposedPorts();    // From Dockerfile EXPOSE
const tests = introspector.findFiles('**/*.test.*');

Subpath Exports

| Export Path | Description | | ------------------------------------ | ------------------------------------------------ | | @wcnegentropy/procedural | All engine, matrix, strategy, and sweeper exports | | @wcnegentropy/procedural/engine | ProjectAssembler, SeededRNG, constraint solver, validation helpers | | @wcnegentropy/procedural/matrices | Universal Matrix definitions (languages, frameworks, databases, archetypes) | | @wcnegentropy/procedural/strategies | 50+ generation strategies (AllStrategies, tier getters) | | @wcnegentropy/procedural/sweeper | Sweeper class, runUniversalSweep, build step detection | | @wcnegentropy/procedural/enrichment | Pass 2 enrichment engine, ProjectEnricher, ProjectIntrospector, AllEnrichmentStrategies |

Supported Stacks

| Archetype | Languages | | --------- | -------------------------------------------------------------- | | Web | TypeScript (React, Vue, Svelte, Solid, Angular, Next.js, etc.) | | Backend | TypeScript, Python, Rust, Go, Java, Kotlin, C#, Ruby, PHP | | CLI | TypeScript, Python, Rust, Go | | Mobile | TypeScript (React Native), Swift, Kotlin, Dart (Flutter) | | Desktop | TypeScript (Electron), Rust (Tauri), C++ (Qt), Dart (Flutter) | | Game | TypeScript (Phaser, PixiJS), C# (Unity, Godot), C++ (SDL2, SFML), Rust (Bevy, Macroquad) | | Library | TypeScript, Python, Rust, Go, Java, Kotlin, C#, C++, Ruby, PHP |

Architecture

Engine → Matrices → Strategies → Renderer → Enrichment → Sweeper
  • Engine: ProjectAssembler + SeededRNG + constraint solver
  • Matrices: Universal Matrix defining the possibility space of languages, frameworks, databases, and archetypes
  • Strategies: 50+ generation strategies organized by tier (common, API, web, systems, mobile, desktop, game, library, CLI)
  • Renderer: Transforms assembled projects into virtual file systems
  • Sweeper: Batch generation and validation pipeline
  • Enrichment: Pass 2 ProjectEnricher + ProjectIntrospector + 16 enrichment strategies across 6 categories (CI/CD, quality, logic, testing, devops, docs)

Part of the Retro Vibecoder UPG Monorepo

This package is part of the Retro Vibecoder UPG monorepo — a Universal Procedural Generator that turns integers into software.

License

MIT — Copyright (c) 2026 WCNEGENTROPY HOLDINGS LLC. See LICENSE for details.