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

@stratal/seeders

v0.0.10

Published

Database seeder infrastructure for Stratal framework applications

Readme

@stratal/seeders

Database seeder infrastructure for Stratal framework applications.

npm version CI License: MIT OpenSSF Scorecard Known Vulnerabilities npm downloads TypeScript Bundle size PRs Welcome GitHub stars

Features

  • Simple API — Extend the Seeder base class and implement run()
  • Automatic Discovery — Recursively traverses your module tree to find all seeders
  • Dry-Run Mode — Preview which seeders will execute without running them
  • Request-Scoped DI — Seeders run within a request scope with full access to the DI container
  • Batch Execution — Run a single seeder by name or all seeders at once
  • CLI-First — Powered by wrangler platform proxy for Cloudflare Workers integration

Installation

npm install -D @stratal/seeders
# or
yarn add -D @stratal/seeders

Peer dependencies

| Package | Required | |---|---| | stratal | Yes |

AI Agent Skills

Stratal provides Agent Skills for AI coding assistants like Claude Code and Cursor. Install to give your AI agent knowledge of Stratal patterns, conventions, and APIs:

npx skills add strataljs/stratal

Quick Start

Define a seeder by extending the Seeder base class:

import { Seeder } from '@stratal/seeders'
import { inject } from 'stratal/di'
import { DATABASE_TOKEN } from './tokens'

export class UserSeeder extends Seeder {
  constructor(@inject(DATABASE_TOKEN) private db: Database) {
    super()
  }

  async run(): Promise<void> {
    await this.db.insert('users', { name: 'Alice', email: '[email protected]' })
  }
}

Register the seeder in a module:

import { Module } from 'stratal/module'
import { UserSeeder } from './user.seeder'

@Module({
  providers: [UserSeeder],
})
export class SeedersModule {}

Create an entry file that calls SeederRunner.run():

import { SeederRunner } from '@stratal/seeders'
import { AppModule } from './app.module'

SeederRunner.run(AppModule)

Run your seeders via the CLI:

stratal-seed ./src/seeders/index.ts run user

CLI

The stratal-seed command is the main entry point for running seeders.

stratal-seed <entry-file> <command> [options]

Commands

| Command | Description | |---|---| | run <name> | Run a specific seeder by name | | run --all | Run all discovered seeders | | list | List all available seeders |

Options

| Option | Alias | Description | |---|---|---| | --all | -a | Run all seeders at once | | --dry-run | -d | Preview without executing | | --help | -h | Display help information |

Seeder names are derived from the class name: UserSeeder becomes user, RolePermissionsSeeder becomes role-permissions.

Documentation

Full guides and examples are available at stratal.dev.

License

MIT