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

visio-agent

v1.0.9

Published

Zero-install local database tunneling agent for Visio

Downloads

1,498

Readme

@visio/agent (visio-agent)

Zero-install, zero-trust local database tunneling daemon and CLI agent for Visio.

npm version License: MIT

Visio Agent is a lightweight local bridge that connects your local or private PostgreSQL databases (127.0.0.1:5432) to the Visio Web Application. It creates an ephemeral, encrypted tunnel so you can visualize schemas, run AI-assisted queries, and monitor database telemetry without exposing local ports or uploading database credentials to remote servers.


⚡ Quick Start

Option 1: Zero-Install Execution (Recommended)

Run directly with npx without pre-installing:

npx visio-agent

Option 2: Global Installation

Install globally via npm or pnpm:

npm install -g visio-agent
# or
pnpm add -g visio-agent

Then start the agent anytime:

visio-agent

The agent will initialize on http://127.0.0.1:4567 and prepare local database discovery.


🏗️ How It Works

┌───────────────────────────────┐
│     Developer Machine         │
│                               │
│  ┌─────────────────────────┐  │         Encrypted Cloudflare Tunnel       ┌─────────────────────────┐
│  │   PostgreSQL Database   │  │ <=======================================> │      Visio Web App      │
│  │    (127.0.0.1:5432)     │  │          (*.trycloudflare.com)          │  (visio-fe / Next.js)  │
│  └────────────▲────────────┘  │                                           └─────────────────────────┘
│               │               │
│  ┌────────────┴────────────┐  │
│  │       visio-agent       │  │
│  │   (NestJS Daemon :4567) │  │
│  └─────────────────────────┘  │
└───────────────────────────────┘
  1. Local Auto-Discovery: visio-agent connects locally to 127.0.0.1:5432 to inspect local database instances.
  2. Secure Tunnel Creation: On demand, visio-agent launches an ephemeral Cloudflare Tunnel (*.trycloudflare.com). No incoming firewall ports need to be opened.
  3. AES-256 Session Encryption: Credentials and connection parameters are encrypted with AES-256 and stored in Redis with sliding TTL expiration.
  4. Data Isolation: Database passwords never leave your machine; queries are proxied and executed strictly inside visio-agent.

🚀 Features

  • Zero-Trust Security: No static public IP or port forwarding required.
  • Auto DB Discovery: Scans local PostgreSQL instances and lists available databases.
  • Database Management: Create, drop, or rename databases directly through the UI.
  • Relational Schema Inspection: Inspect tables, columns, primary keys, and foreign key relations.
  • Telemetry Streaming: Real-time stats on active pool connections and query execution latency.
  • Cross-Platform: Packageable as standalone binaries for Linux, macOS, and Windows.

⚙️ Environment Variables

Customize agent behavior using environment variables or a .env file:

| Variable | Default | Description | | :--- | :--- | :--- | | PORT | 4567 | Local HTTP port for the agent server | | DB_SESSION_KEY | (32-byte default key) | AES-256 secret key for session payload encryption | | REDIS_HOST | 127.0.0.1 | Redis host for session caching | | REDIS_PORT | 6379 | Redis port |


🔌 API Endpoints Summary

| Endpoint | Method | Description | | :--- | :--- | :--- | | /health | GET | Returns agent status, version, and active tunnel URL | | /db/discover | POST | Discovers available local PostgreSQL databases | | /db/manage | POST | Perform database CRUD operations (create, drop, rename) | | /bridge/create | POST | Spawns a Cloudflare tunnel bridge for remote connection |


📦 Building Standalone Executables

To package the agent into single-file binary executables without Node.js runtime dependencies:

npm run build:package

Binary outputs will be saved in ./bin/:

  • bin/visio-agent-linux-x64
  • bin/visio-agent-macos-x64
  • bin/visio-agent-win-x64.exe

📄 License

MIT License © 2026 Visio Team