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

meadow-migrationmanager

v0.0.4

Published

Meadow Migration Manager - CLI, Web, and Console UI tool for managing database schemas and migrations

Readme

Meadow Migration Manager

Database schema migration management for the Meadow ecosystem

Meadow Migration Manager is a CLI, Web, and Console UI tool for managing database schemas and migrations. Built on the Fable/Pict service architecture, it provides a complete pipeline from MicroDDL schema definition through compilation, diffing, SQL migration generation, and live database deployment. Interactive visualization is powered by pict-section-flow with field-level foreign key relationship mapping.

Features

  • Schema Library Management -- add, remove, import, export and persist DDL schemas with compilation tracking
  • Connection Library -- manage database connection configurations across MySQL, PostgreSQL, MSSQL and SQLite
  • DDL Compilation -- compile MicroDDL via Stricture to structured schema objects with automatic Meadow package generation
  • Schema Diff -- detect added, removed and modified tables, columns, indices and foreign keys between any two schemas
  • Migration SQL Generation -- produce database-specific DDL for MySQL, PostgreSQL, MSSQL and SQLite from diff results
  • Live Database Introspection -- discover schema from a running database via pluggable provider architecture
  • Interactive Flow Visualization -- pict-section-flow diagrams with table nodes, column-level ports and FK connection edges
  • Three Interfaces -- 11-command CLI, blessed-based Terminal UI, and Pict web views with flow diagrams

Installation

npm install meadow-migrationmanager

For global CLI access:

npm install -g meadow-migrationmanager

Quick Start

Programmatic

const MeadowMigrationManager = require('meadow-migrationmanager');

let tmpManager = new MeadowMigrationManager({});
let tmpSchemaLib = tmpManager.instantiateServiceProvider('SchemaLibrary');

// Add a schema from MicroDDL text
tmpSchemaLib.addSchema('bookstore', '!Book\n@IDBook\n$Title 200\n$Genre 128\n');

// Compile the DDL
let tmpStricture = tmpManager.instantiateServiceProvider('StrictureAdapter');
tmpStricture.compileDDL(tmpSchemaLib.getSchema('bookstore').DDL,
	(pError, pSchema) =>
	{
		console.log('Compiled tables:', Object.keys(pSchema.Tables));
	});

CLI

# Add a schema from a DDL file
meadow-migration add-schema bookstore ./bookstore.ddl

# Compile it
meadow-migration compile bookstore

# Add a second version and diff
meadow-migration add-schema bookstore-v2 ./bookstore-v2.ddl
meadow-migration compile bookstore-v2
meadow-migration diff bookstore bookstore-v2

# Generate a MySQL migration script
meadow-migration generate-script bookstore bookstore-v2 -t MySQL

CLI Commands

| Command | Alias | Description | |---|---|---| | list-schemas | ls | List all schemas in the library with compilation status | | add-schema <name> <file> | as | Add a DDL schema from a file | | list-connections | lc | List all database connections | | add-connection <name> [options] | ac | Add a connection with type, server, port, user, password, database | | compile <schema> | c | Compile a DDL schema via Stricture | | diff <source> <target> | d | Compare two compiled schemas | | generate-script <source> <target> | gs | Generate migration SQL (-t type, -o output file) | | introspect <connection> | i | Discover schema from a live database (-o save name) | | deploy <schema> <connection> | dep | Deploy a compiled schema to a database | | migrate <schema> <connection> | m | Execute a migration on a database | | tui | ui | Launch the interactive Terminal UI |

Testing

npm test

Documentation

Detailed documentation is available in the docs/ folder.

Related Packages

License

MIT

Contributing

Pull requests are welcome. For details on our code of conduct, contribution process, and testing requirements, see the Retold Contributing Guide.