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.5

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 login
npx synqdb-agent

Authentication

Authentication is browser-based — no keys to copy or paste.

synqdb-agent login

This opens your browser to the SynqDB app. Log in (if you aren't already) and click Authorize. The CLI detects approval automatically and saves the credential to ~/.synqdb-agent.

After that, just run:

synqdb-agent

Usage

Step 1 — Log in

synqdb-agent login

Opens your browser → click Authorize → done. Credential is saved automatically.

Step 2 — Start the agent

synqdb-agent

The agent connects and stays running. Queries from your dashboard are routed through it in real time.

Environment variable override

If you need to supply the key directly (e.g. in a CI/CD pipeline or Docker container), set:

SYNQDB_AGENT_KEY=<your-agent-key>

The key resolution order is:

  1. SYNQDB_AGENT_KEY environment variable
  2. Saved credential at ~/.synqdb-agent (written by synqdb-agent login)

Custom server URL

SYNQDB_SERVER_URL=https://api.synqdb.live
SYNQDB_FRONTEND_URL=https://synqdb.live

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

Running persistently

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

npm install -g pm2
pm2 start synqdb-agent --name synqdb-agent
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

Revoking access

If you need to invalidate the current credential (e.g. the machine was compromised), go to Dashboard → Project Settings → Local Agent → Rotate Key. Any running agent will be disconnected. Run synqdb-agent login to re-authenticate.

Supported databases

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

Security

  • Authentication uses short-lived browser tokens (5-minute TTL) — no long-lived secrets are ever transmitted in a URL or terminal output
  • The saved credential in ~/.synqdb-agent is readable only by your user account (mode 0600)
  • 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
  • Database credentials stay on your machine and are never sent to the SynqDB API

License

MIT