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 🙏

© 2025 – Pkg Stats / Ryan Hefner

seedfast_darwin_amd64

v1.24.0

Published

AI-powered PostgreSQL database seeding tool

Readme

Seedfast CLI

npm version npm downloads

AI-powered PostgreSQL database seeding tool

Seedfast CLI generates realistic test data for PostgreSQL databases. It connects to a backend service that uses AI to understand your database schema and create meaningful, contextually appropriate seed data.

Features

  • AI-Powered Planning: Automatically analyzes your database schema and generates an intelligent seeding plan
  • Realistic Data: Creates contextually appropriate test data based on table relationships and constraints
  • Interactive UI: Rich terminal interface with real-time progress tracking
  • Concurrent Execution: Multi-worker architecture for fast data generation
  • Secure Authentication: OAuth-style device flow with OS-level credential storage
  • Schema-Aware: Respects foreign keys, constraints, and relationships between tables

Installation

npm (Node.js/JavaScript projects)

# Global installation
npm install -g seedfast

# Or use with npx (no installation required)
npx seedfast seed

Homebrew (macOS and Linux)

brew install argon-it/tap/seedfast

Download Binary

Download the latest release for your platform from the releases page.

From Source

Requires Go 1.25+:

git clone <repository-url>
cd cli
go build -o seedfast

Quick Start

1. Authenticate

seedfast login

Opens your browser for authentication. The CLI waits until you complete the login.

2. Connect to Database

seedfast connect

Enter your PostgreSQL connection string:

postgres://user:password@localhost:5432/dbname?sslmode=disable

3. Seed Your Database

seedfast seed

The CLI will:

  1. Analyze your database schema
  2. Present a seeding plan for your approval
  3. Generate and insert realistic test data
  4. Show real-time progress for each table

Commands

seedfast login      # Authenticate with the backend service
seedfast connect    # Configure database connection
seedfast seed       # Start the seeding process
seedfast me         # Check authentication status (formerly whoami)
seedfast logout     # Clear stored credentials
seedfast --version  # Show version information

Configuration

Environment Variables

  • SEEDFAST_DSN - PostgreSQL connection string (overrides stored value)
  • DATABASE_URL - Alternative PostgreSQL connection string (fallback)
  • SEEDFAST_VERBOSE - Enable verbose logging (1 to enable)

Database Connection

You can configure the database connection in three ways (in order of priority):

  1. Environment variable SEEDFAST_DSN
  2. Environment variable DATABASE_URL
  3. Stored value from seedfast connect command (saved in OS keychain)

How It Works

  1. Authentication: OAuth-style device flow securely authenticates with the backend
  2. Schema Analysis: Backend analyzes your PostgreSQL schema (tables, relationships, constraints)
  3. AI Planning: AI planner determines optimal seeding strategy and generates realistic data
  4. Execution: CLI receives SQL tasks via gRPC and executes them locally
  5. Progress Tracking: Real-time UI shows progress for each table being seeded

Troubleshooting

Authentication Issues

# Check current auth status
seedfast me

# Re-authenticate
seedfast logout
seedfast login

Database Connection Issues

# Reconfigure connection
seedfast connect

# Or set via environment variable
export SEEDFAST_DSN="postgres://user:password@localhost:5432/dbname?sslmode=disable"

Verbose Logging

export SEEDFAST_VERBOSE=1
seedfast seed

Development

For local development and testing with custom backends, see DEVELOPMENT.md.

Quick summary:

  • Production builds: Connect to production backend only
  • Dev builds (go build -tags dev): Support --backend-url and --grpc-url flags for local testing

Requirements

  • PostgreSQL database with app schema
  • Active internet connection for backend communication
  • OS keychain support (macOS Keychain or Windows Credential Manager)

Platform Support

  • macOS (x64, ARM64) - Uses native Keychain
  • Linux (x64, ARM64) - Uses system keyring or encrypted file storage
  • Windows (x64, ARM64) - Uses Windows Credential Manager

Linux Keyring Backends

Seedfast automatically detects and uses the best available backend on Linux:

  1. Secret Service (GNOME Keyring, KDE Wallet) - Requires D-Bus session
  2. pass (password-store) - Requires GPG setup
  3. File Storage (automatic fallback) - Encrypted, works everywhere including WSL and Docker

For WSL users: File storage is automatically used. No additional setup required.

For detailed Linux keyring setup and troubleshooting, see docs/LINUX_KEYRING.md.

Contributing

This is a private repository. For contributions, please contact the maintainers.

License

See LICENSE file for details.

Built With