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

@codeacme/seedly

v1.0.0

Published

An AI based Seeding Agent, that will use MCP protocols to understand your DB schema and seed fake data according to it.

Readme

Seedly 🌱

An intelligent NPM package that leverages AI to automatically understand your database schema and generate meaningful fake data for development and testing purposes.

Features 🚀

  • AI-Powered Schema Analysis: Automatically understands your database structure using MCP (Model-Controller-Persistence) server concepts
  • Smart Data Generation: Creates contextually relevant fake data based on field names and relationships
  • Multiple Database Support: Works with popular databases like PostgreSQL, MySQL, MongoDB, and more
  • Relationship Awareness: Maintains referential integrity and complex relationships between tables/collections
  • Customizable Templates: Define your own seeding templates and rules
  • CLI Support: Easy-to-use command line interface for quick seeding operations

Installation 📦

npm install @codeacme/seedly
# or
yarn add @codeacme/seedly

Quick Start 🏃‍♂️

  1. Initialize Seedly in your project:
import { Seedly } from '@codeacme/seedly';

const agent = new Seedly({
  type: 'postgres', // or 'mysql', 'sqlite'
  host: 'localhost',
  port: 5432,
  user: 'your_username',
  password: 'your_password',
  database: 'your_database',
});
//OR
const mongoDBAgent = new Seedly({
  type: 'mongodb',
  uri: 'mongodb://whole_uri',
  database: 'your_database',
  modelsDir: './path-to-modelDIR', //use for a whole models folder
  singleSchemaPath: './path-to-single-schema-file', //provide the schema of only the collection that you are going to seed in the next step
});
  1. Seed a table:
await agent.seedTool('users', 100);
  1. Example with Express:
import express from 'express';
import { Seedly } from '@codeacme/seedly';

const app = express();
const port = 3000;

app.get('/seed', async (req, res) => {
  const agent = new Seedly({
    type: 'sqlite',
    file: './database.db',
  });

  try {
    await agent.seedTool('orders', 10);
  } catch (error) {
    console.error('Error during seeding:', error);
  }

  res.send('Seeding started!');
});

app.listen(port, () => {
  console.log(
    `Test app listening at http://localhost:${port}`,
  );
});

CLI Usage 💻

# SQLite
seedly start "Seed the users table with 5 records" \
  --dialect sqlite \
  --file ./database.db

# PostgreSQL
seedly start "Seed the users table with 10 rows" \
  --dialect postgres \
  --host localhost \
  --port 5432 \
  --user postgres \
  --password your_password \
  --database my_database

# MongoDB (with model directory)
seedly start "Seed the users collection with 10 documents" \
  --dialect mongodb \
  --uri mongodb://localhost:27017 \
  --database test \
  --models-dir ./models

# MongoDB (with single schema file)
seedly start "Seed the logs collection with 5 entries" \
  --dialect mongodb \
  --uri mongodb://localhost:27017 \
  --database test \
  --single-schema ./models/logs.js

📌 Note: If you're using MongoDB, your Mongoose model files must be JavaScript (.js) files, not TypeScript (.ts) unless they're compiled before use.

🧠 When to use what:

  • Use --models-dir if you have multiple .js model files in a directory.
  • Use --single-schema if you want to provide one .js model file manually.
  • If neither is provided, Seedly will attempt to infer the schema from existing MongoDB documents.

Environment Variable 🔑

You must set either GOOGLE_API_KEY or OPENAI_API_KEY in your environment for AI-powered data generation:

export GOOGLE_API_KEY=your-google-api-key
# or
export OPENAI_API_KEY=your-openai-api-key

License 📄

MIT License © CodeAcme