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

gsd-agent

v1.0.20

Published

Local filesystem sync daemon for GSD projects - Connect your local .planning/ directories to the GSD cloud

Readme

GSD Agent - Local Filesystem Sync Daemon

The GSD Agent is a lightweight Node.js daemon that runs on your local machine, automatically discovering GSD projects and synchronizing their planning files to the cloud for real-time web UI updates.

Features

  • Real-time Sync: Changes to your .planning/ directories sync to the cloud within seconds
  • Multi-user Support: Secure authentication and data isolation for each user
  • Automatic Discovery: Finds GSD projects in your configured watch directories
  • Conflict Resolution: Handles concurrent changes between local and web UI
  • Large File Support: Files >200KB automatically uploaded to secure storage
  • Secure Authentication: Device flow authentication with encrypted credentials

Prerequisites

  • Node.js 20+ installed
  • Git installed on your system
  • Active GSD account (sign up at your GSD web UI)

Installation

Public npm Package (Recommended)

npm install -g gsd-agent

This installs the agent globally on your system.

Run Without Installing

npx gsd-agent@latest auth
npx gsd-agent@latest start

This runs the agent without installing it permanently.

Quick Start

1. Authenticate with your account

gsd-agent auth

This will:

  • Generate a device code
  • Display instructions to visit the web UI
  • Prompt you to enter the code
  • Complete authentication flow

2. Start the agent daemon

gsd-agent start

3. Verify status

gsd-agent status

Commands

| Command | Description | |---------|-------------| | gsd-agent auth | Authenticate with web account | | gsd-agent start | Start the agent daemon | | gsd-agent status | Show sync status | | gsd-agent disconnect | Revoke credentials | | gsd-agent logs | Tail agent logs | | gsd-agent version | Show version |

Configuration

Configuration is stored in ~/.gsd-agent/config.json:

{
  "watch_dirs": [
    "~/Projects",
    "~/Code",
    "~/workspace"
  ],
  "ignored_patterns": [
    "node_modules/",
    ".git/",
    "dist/",
    "build/",
    "*.log"
  ],
  "log_level": "INFO",
  "batch_size": 50,
  "debounce_ms": 300
}

How It Works

┌─────────────────┐    ┌─────────────────┐    ┌─────────────────┐
│  Local Files    │    │  GSD Agent      │    │  Cloud (Web UI) │
│  (.planning/)   │◄──►│  (Node.js)      │◄──►│  (Supabase)     │
│                 │    │  - FileWatcher  │    │  - Database     │
│  MyProject/     │    │  - SyncEngine   │    │  - Storage      │
│  └─ .planning/  │    │  - Realtime     │    │  - Realtime     │
│     ├─ PLAN.md  │    │  - Auth Flow    │    │                 │
│     ├─ STATE.md │    │                 │    │                 │
│     └─ etc...   │    │                 │    │                 │
└─────────────────┘    └─────────────────┘    └─────────────────┘
  1. File Watching: Agent monitors .planning/ directories for changes
  2. Local Processing: Changes batched and processed locally
  3. Cloud Sync: Changes securely transmitted to Supabase
  4. Real-time Updates: Web UI receives updates via Supabase Realtime
  5. Web Changes: UI changes pushed back to local files

Security

  • End-to-End Encryption: All data encrypted in transit
  • Secure Storage: Credentials stored with restricted permissions (0600)
  • User Isolation: Row-level security ensures data isolation
  • Token Management: Automatic refresh and secure storage
  • Audit Trail: All operations logged for security review

Troubleshooting

Agent won't start

  • Check authentication: gsd-agent status
  • Verify credentials file exists: ~/.gsd-agent/credentials.json
  • Check logs: gsd-agent logs

Files not syncing

  • Ensure .planning/ directory exists in your project
  • Verify watch directories in config
  • Check network connectivity to Supabase

Authentication issues

  • Run gsd-agent disconnect then gsd-agent auth
  • Clear credentials: rm -rf ~/.gsd-agent/credentials.json
  • Re-authenticate

Auto-start

Linux (systemd)

# Create systemd user service
mkdir -p ~/.config/systemd/user
cat > ~/.config/systemd/user/gsd-agent.service << EOF
[Unit]
Description=GSD Agent
After=network.target

[Service]
Type=simple
ExecStart=$(which gsd-agent) start
Restart=always

[Install]
WantedBy=default.target
EOF

systemctl --user enable gsd-agent
systemctl --user start gsd-agent

macOS (launchd)

cat > ~/Library/LaunchAgents/com.gsd.agent.plist << EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.gsd.agent</string>
    <key>ProgramArguments</key>
    <array>
        <string>$(which gsd-agent)</string>
        <string>start</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>KeepAlive</key>
    <true/>
</dict>
</plist>
EOF

launchctl load ~/Library/LaunchAgents/com.gsd.agent.plist

Development

# Clone and install
git clone https://github.com/your-org/gsd-agent.git
cd gsd-agent
npm install

# Build
npm run build

# Development mode
npm run dev

# Run tests
npm test

Support

  • Documentation: https://gsd.fahad.ink/docs
  • Issues: https://github.com/your-org/gsd-agent/issues
  • Community: https://discord.gg/your-server

Note: This agent requires an active internet connection to sync with the cloud. All data is encrypted and secured according to industry standards.