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

@specverse/engines

v6.97.14

Published

SpecVerse toolchain — parser, inference, realize, generators, AI, registry, bundles

Readme

@specverse/engines

npm license node

The SpecVerse toolchain — parser, inference, realize, generators, AI, registry, and bundles, exposed as subpath imports. This is the package that turns a .specly specification into a complete application.

Purpose

SpecVerse is a declarative specification language: write a .specly file describing what a system does, and the engine generates the implementation. @specverse/engines is the engine. It runs the three-stage pipeline:

.specly file (WHAT)
    │
    ▼  ./parser        →  SpecVerseAST
    │
    ▼  ./inference     →  full architecture (controllers / services / events / views / deployments)
    │
    ▼  ./realize       →  generated code (Fastify / Prisma / React / CLI / tools / diagrams)

Most users never import this directly — they use the @specverse/self CLI (spv), which orchestrates these engines. Import @specverse/engines when you want the toolchain programmatically (build a custom pipeline, embed realize in a service, drive analysis of an existing codebase).

Installation

npm install @specverse/engines

Requires Node 20+. Pulls in its sibling engine packages (@specverse/types, @specverse/entities, @specverse/runtime, @specverse/assets) automatically.

Subpath Exports

The toolchain is split into focused entry points — import only what you need:

| Subpath | Purpose | |---|---| | @specverse/engines/parser | Parse + schema-validate a .specly file → SpecVerseAST | | @specverse/engines/inference | Expand a minimal spec into the full architecture | | @specverse/engines/analyse-prepass | Structural extraction from an existing codebase (the analyse prepass — facts + adapters) | | @specverse/engines/realize | Generate code from a realized spec + manifest | | @specverse/engines/realize/post-emit-verify | Post-emit verification of generated output | | @specverse/engines/normalise | Spec normalisation utilities | | @specverse/engines/generators | Diagram + artifact generators (Mermaid, etc.) | | @specverse/engines/ai | LLM-backed behaviour/analyse services (provider-agnostic) | | @specverse/engines/registry | Engine discovery / EngineRegistry | | @specverse/engines/bundles | Composed entity-module bundles + catalog |

Usage

import { parseSpecVerse } from '@specverse/engines/parser';
import { runInference } from '@specverse/engines/inference';
import { realizeAll } from '@specverse/engines/realize';

// 1. WHAT — parse + validate the spec
const ast = await parseSpecVerse(specText);

// 2. infer — expand to the full architecture
const inferred = await runInference(ast);

// 3. realize — generate the implementation
await realizeAll(inferred, { manifestPath, outDir });

(Exact entry-point signatures live in each subpath's .d.ts. The @specverse/self CLI is the reference consumer of these calls.)

Manifest controls technology, spec controls logic

The spec describes WHAT; a manifest + instance factories describe HOW. Swap Fastify for another framework, or SQLite for Postgres, in the manifest — the spec doesn't change. The engine ships instance factories (./libs) for controllers, services, ORMs, applications, CLIs, communication, and infrastructure.

Related packages

| Package | Role | |---|---| | @specverse/self | The spv CLI + templates — the way most people use the engine | | @specverse/types | Shared AST types + engine interfaces | | @specverse/entities | Entity modules + schema composition | | @specverse/runtime | Runtime view walker + React/Tailwind adapters |

Docs: docs.specverse.org · Source: github.com/SpecVerse/specverse-engines

License

Source-available under the PolyForm Noncommercial License 1.0.0 — free for non-commercial use. Commercial use (including consulting and client engagements) requires a commercial licence — contact [email protected]. Code generated by the toolchain (your realized application) is yours, under your own terms.

Copyright © 2025–2026 Nicholas J W Caine.