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

synqdb-agent

v1.0.4

Published

Local database relay agent for SynqDB — connects your local databases to the SynqDB cloud dashboard

Readme

synqdb-agent

Local database relay agent for SynqDB — connects your local databases to the SynqDB cloud dashboard without any firewall changes or port forwarding.

How it works

The agent runs on your machine and opens an outbound WebSocket connection to the SynqDB API. When you query a local cluster from the dashboard, the API routes the query through this connection, the agent executes it against your local database, and returns the result.

SynqDB Dashboard → API → Agent (your machine) → Local Database

Requirements

  • Node.js 18 or higher
  • A local MySQL, PostgreSQL, or SQL Server database

Installation

npm install -g synqdb-agent

Or run without installing:

npx synqdb-agent <agentKey>

Getting your agent key

  1. Open the SynqDB dashboard
  2. Click Add Connection
  3. Toggle Local Database
  4. Fill in your local DB credentials and click Generate Agent Key
  5. Copy the key — it is only shown once

Usage

Recommended — save once, run forever

On first use, save your key:

synqdb-agent --save <agentKey>

From then on, just run:

synqdb-agent

The key is stored in ~/.synqdb-agent (readable only by your user account).

Pass the key each time

synqdb-agent <agentKey>

The first successful connection will also auto-save the key so future runs need no arguments.

Using environment variables

SYNQDB_AGENT_KEY=abc-123-def-456 synqdb-agent

Or place them in a .env file in the directory where you run the agent:

SYNQDB_AGENT_KEY=abc-123-def-456
SYNQDB_SERVER_URL=https://api.synqdb.live

Key resolution order

The agent looks for the key in this order:

  1. CLI argument (synqdb-agent <key>)
  2. SYNQDB_AGENT_KEY environment variable
  3. Saved config at ~/.synqdb-agent

Environment variables

| Variable | Description | Default | |---|---|---| | SYNQDB_AGENT_KEY | Your agent key | — | | SYNQDB_SERVER_URL | SynqDB API URL | https://api.synqdb.com |

Running persistently

To keep the agent running in the background across terminal sessions and machine restarts, use PM2:

npm install -g pm2
pm2 start synqdb-agent --name synqdb-agent -- <agentKey>
pm2 save
pm2 startup

Useful PM2 commands:

pm2 logs synqdb-agent      # view live logs
pm2 status                 # check running status
pm2 restart synqdb-agent
pm2 stop synqdb-agent

Supported databases

| Database | Driver | |---|---| | MySQL / MariaDB | mysql2 | | PostgreSQL | pg | | SQL Server (MSSQL) | mssql |

Security

  • Your agent key is a 128-bit random UUID — treat it like a password
  • The agent connects outbound only — no inbound ports are opened on your machine
  • All queries are constructed server-side; the agent never builds SQL from user input
  • Credentials stay on your machine and are never sent to the SynqDB API

License

MIT