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

@lumpcode/recipes

v0.0.13

Published

Lumpcode lump recipes and kit helpers

Readme

@lumpcode/recipes

Lumpcode recipes and kit helpers for authoring lump configs without boilerplate.

Private monorepo workspace for now (same rollout path as @lumpcode/cli-utils).

Recipes

| Recipe | Export | Use when | |--------|--------|----------| | backlog | backlog | Generic YAML backlog with a typed stage map and per-item stage resolution | | featureBacklog | featureBacklog | Feature items with PRD → test plan → test implementation → implementation | | abstractionFinder | abstractionFinder | Ephemeral contexts that scan for duplicated CLI utils and append one backlog item + PRD per run | | abstractionBacklog | abstractionBacklog | YAML backlog items with PRDs — implement abstraction with verify-until-green, then move item to DONE |

Kit

Flat helpers under src/kit/ (re-exported from the package root):

  • backlog recipe helpers — resolveBacklogPaths, validateBaseBacklogItem, requireArtifactStep, projectRootFromConfigUrl
  • getRecursiveSteps — agent step(s) + validation command, retry until pass
  • retryUntilGreen — opinionated wrapper over getRecursiveSteps with default fix prompt
  • ephemeralContextListFn — N fresh synthetic contexts per run (contextCount, index-aware names)
  • ymlBacklogContextsgetContextListFn from a YAML backlog file with optional per-item parsing
  • setTaskDoneStep — move finished item from BACKLOG to DONE after a context completes
  • resolveImplValidateCommand — string, descriptor, or fn → ValidationCommandFn
  • shellCommandsh -c helper for validation commands

Generic backlog stage map

Consumers declare every legal stage key and how each stage completes:

import { backlog } from '@lumpcode/recipes';

export default backlog({
  configUrl: import.meta.url,
  stages: {
    draft: { steps: [{ promptTemplate: 'Draft docs.' }], completion: 'keepPending' },
    ship: { steps: [{ promptTemplate: 'Ship it.' }], completion: 'moveToDone' },
  },
  resolveItem({ item }) {
    return item.task.includes('draft')
      ? { stage: 'draft' }
      : { stage: 'ship' };
  },
});

resolveItem returns { stage, contextName?, variables?, additionalDependsOnContexts? } or { ignored: true }. Terminal stages with completion: 'moveToDone' append setTaskDoneStep.

Examples

featureBacklog

// .lumpcode/lumps/backlog/config.ts
import { LumpJsConfig } from '@lumpcode/cli-types';
import { featureBacklog } from '@lumpcode/recipes';

export default {
    ...featureBacklog({
        baseBranch: 'dev',
        command: 'cursor',
        configUrl: import.meta.url,
        registerCommands: ['cursor'],
        maximumNumberOfConcurrentBranches: 5,
        verbose: true,
        keepHistory: true,
        lumpVariables: { model: 'composer-2.5' },
        discoveryBranch: 'dev',
        implValidateCommand: [
            'npm run build -w=@lumpcode/cli',
            'npm run test -w=@lumpcode/cli',
        ].join(' && '),
    }),
} satisfies LumpJsConfig;

abstractionFinder + abstractionBacklog

Two-lump pipeline: finder tops up the implementer backlog; implementer runs items that already have PRDs.

// .lumpcode/lumps/abstractionFinder/config.ts
import { LumpJsConfig } from '@lumpcode/cli-types';
import { abstractionFinder } from '@lumpcode/recipes';

export default {
    ...abstractionFinder({
        maxPendingAbstractions: 5,
        scanDirectories: ['packages/apps/cli'],
        backlogFilePath: '.lumpcode/lumps/abstractionImplementer/BACKLOG.yml',
        doneFilePath: '.lumpcode/lumps/abstractionImplementer/DONE.yml',
        prdDirPath: '.lumpcode/lumps/abstractionImplementer/prds',
        command: 'cursor',
        lumpVariables: { model: 'composer-2.5' },
        discoveryBranch: 'dev',
    }),
} satisfies LumpJsConfig;
// .lumpcode/lumps/abstractionImplementer/config.ts
import { LumpJsConfig } from '@lumpcode/cli-types';
import { abstractionBacklog } from '@lumpcode/recipes';

export default {
    ...abstractionBacklog({
        baseBranch: 'dev',
        command: 'cursor',
        configUrl: import.meta.url,
        registerCommands: ['cursor'],
        maximumNumberOfConcurrentBranches: 3,
        verbose: true,
        keepHistory: true,
        lumpVariables: { model: 'composer-2.5' },
        discoveryBranch: 'dev',
    }),
} satisfies LumpJsConfig;

Custom config with kit helpers

import { defineConfig } from '@lumpcode/cli-types';
import { retryUntilGreen, shellCommand } from '@lumpcode/recipes';

export default defineConfig({
    command: 'cursor',
    steps: retryUntilGreen({
        steps: [{ promptTemplate: 'Refactor duplicated helpers in src/.' }],
        validationCommandFn: () => shellCommand('npm test && npm run build'),
    }),
});

Build

From the monorepo root:

npm run build -w=@lumpcode/core
npm run build -w=@lumpcode/cli-types
npm run build -w=@lumpcode/cli-utils
npm run build -w=@lumpcode/recipes

Test

npm run test -w=@lumpcode/recipes