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

@designsql/sync

v2.0.3

Published

Sync database schemas with designsql cloud. Credentials never leave your machine — only schema is transmitted.

Downloads

529

Readme

@designsql/sync

CLI tool to sync database schemas with designsql cloud.

Installation

npm install -g @designsql/sync

Usage

designsql <database-type> <connection-string> <command> <token> [project-tag]

Parameters

| Parameter | Position | Description | | ------------------- | -------- | -------------------------------------------------------------------- | | database-type | 1 | Database type: postgres, mysql, mssql (bigquery, snowflake coming soon) | | connection-string | 2 | Standard database connection URL | | command | 3 | push or pull | | token | 4 | Sync token from designsql project settings | | project-tag | 5 | Tag name (default: "main") |

Push — Send local schema to designsql cloud

Extracts your database schema, converts it to DBML, and uploads it.

designsql postgres postgresql://user:pass@localhost/mydb push tok_abc123
designsql mysql mysql://user:pass@localhost/mydb push tok_abc123 v2
[..] Connecting to postgres database...
[OK] Schema extracted — 12 table(s) found
[..] Converting schema to DBML...
[OK] DBML generated (3842 chars)
[..] Pushing DBML to designsql cloud...
[OK] Push complete! Tag: main (tag-id-here)

Pull — Fetch schema from cloud and apply to local database

Downloads DBML from designsql cloud, converts it to SQL DDL, and applies it directly to your database.

designsql postgres postgresql://user:pass@localhost/mydb pull tok_abc123
designsql mysql mysql://user:pass@localhost/mydb pull tok_abc123 v2
[..] Fetching DBML from designsql cloud (tag: main)...
[OK] DBML received (3842 chars)
[..] Converting DBML to postgresql SQL...
[OK] SQL generated (2100 chars)
[..] Applying SQL to postgres database...

[OK] Done! 12 statement(s) applied, 0 skipped, 12 total

[!WARNING] Version 2.0.0+ Sync Behavior: Starting from version 2.0.0, the pull command performs active synchronization for PostgreSQL, MySQL, and MSSQL:

  • Auto-Patching: It will automatically add missing columns to existing tables if they are present in the designsql cloud schema.
  • Auto-Drop: It will DROP any local tables that are NOT found in the designsql cloud schema. Use with caution on production databases.

Statements that fail (e.g. table already exists) are skipped with a warning — the rest continue to apply.

Supported Databases

| Database | Push (extract schema) | Pull (auto-apply SQL) | | ---------- | --------------------- | --------------------- | | PostgreSQL | Yes | Yes | | MySQL | Yes | Yes | | MSSQL | Yes | Yes |

License

MIT