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

@ganderbite/flow-spec-generator

v0.1.1

Published

Generates a structured feature specification from a plain-language description.

Downloads

198

Readme

spec-generator

●─▶●─▶●─▶● spec-generator

What it does

Takes a plain-language feature description and produces a structured Markdown specification. Four steps build on each other: analyze extracts actors and behaviors, expand-requirements generates FRs, NFRs, edge cases, validation rules, error handling, and authorization requirements, derive-criteria writes Given/When/Then acceptance criteria for each FR, and write-spec assembles the final document.

Sample output

The flow writes feature-spec.md to the run directory. The document follows this structure:

# <feature-name> Feature Specification

## Summary
...

## Functional Requirements
1. <FR-001> ...

## Non-Functional Requirements
- <NFR-001> ...

## Edge Cases
- <EC-001> ...

## Validation Rules
- <VR-001> ...

## Error Handling
- <EH-001> <scenario>: <response>

## Authorization
- <AUTH-001> ...

## Acceptance Criteria
- [ ] <AC-001> Given ..., when ..., then ...

Estimated cost and duration

  • Cost: $0.05–$0.30 per run (billed to your subscription on Pro/Max).
  • Duration: 2–10 minutes depending on feature complexity and model choice.

Install

relay install spec-generator

Run

relay run spec-generator --featureDescription="Users can reset their password via a link sent to their registered email address"

Configuration

| Field | Type | Default | Notes | |---|---|---|---| | featureDescription | string | (required) | Plain-language description of the feature to specify. |

Models per step (override via relay run spec-generator --model.<step>=<model>):

| Step | Default model | |---|---| | analyze | sonnet | | expand-requirements | sonnet | | derive-criteria | sonnet | | write-spec | sonnet |

Customization

Fork the flow:

relay install spec-generator
mv ./.relay/flows/spec-generator ./my-spec-generator
cd ./my-spec-generator

Common customizations:

  • Add a section — extend schemas/requirements.ts and update prompts/02_expand-requirements.md and prompts/04_write-spec.md.
  • Upgrade a step for higher quality — set model: 'opus' on expand-requirements or derive-criteria in flow.ts.
  • Enforce minimum counts — add .min(3) to arrays in schemas/requirements.ts so the validator rejects thin specs.
  • Rename the output file — change the artifact value on write-spec in flow.ts to match your naming convention.

License

MIT. Copyright Ganderbite.