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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@goldensheepai/shepgate

v0.1.0

Published

The safe front door for AI tools - AI governance gateway with policy control, approval workflows, and activity logging

Readme

ShepGate

The safe front door for AI tools.

npm version npm downloads License: MIT GitHub stars Node.js TypeScript MCP

DemoQuick StartFeaturesPricingRoadmap


What is ShepGate?

ShepGate is an AI governance gateway that sits between AI agents (Claude Desktop, Windsurf, etc.) and external tools (GitHub, databases, APIs). It gives you:

  • 🔐 Policy Control — Define what AI can do: allow, require approval, or block
  • ✅ Approval Workflows — Review risky actions before they execute
  • 📊 Activity Logging — Complete audit trail of every AI action
  • 🔑 Secrets Management — Encrypted credential storage (AES-256-GCM)
  • 🔌 MCP Integration — Works with any Model Context Protocol host

The Problem

AI agents are powerful, but giving them unrestricted access to your tools is risky:

  • What if Claude accidentally deletes a production database?
  • How do you know what actions your AI assistant took?
  • How do you share API keys without exposing them?

The Solution

ShepGate acts as a policy layer between AI and your systems:

┌─────────────┐     ┌─────────────┐     ┌─────────────┐
│   Claude    │────▶│  ShepGate   │────▶│   GitHub    │
│   Desktop   │     │  (Gateway)  │     │   Slack     │
│             │◀────│             │◀────│   Database  │
└─────────────┘     └─────────────┘     └─────────────┘
                           │
                    ┌──────┴──────┐
                    │  Dashboard  │
                    │  - Policies │
                    │  - Approvals│
                    │  - Logs     │
                    └─────────────┘

Demo

https://github.com/user-attachments/assets/placeholder-demo-video

Coming Soon: Live demo video showing Claude Desktop → ShepGate → GitHub flow


Features

✅ Working in MVP

| Feature | Description | |---------|-------------| | Policy Engine | Three-tier risk levels: safe (auto-execute), needs_approval (human review), blocked (always deny) | | Approval Workflow | Pending actions queue with approve/deny from web dashboard | | Activity Logging | Every tool call logged with agent, arguments, result, timestamp | | Secrets Vault | AES-256-GCM encrypted storage for API keys and tokens | | MCP Host | Stdio-based MCP server for Claude Desktop integration | | Web Dashboard | Manage servers, tools, agents, and approvals |

🚧 Roadmap

| Feature | Status | Target | |---------|--------|--------| | Multi-user auth | Planned | v0.2 | | Team workspaces | Planned | v0.2 | | VS Code extension | Planned | v0.3 | | Hosted cloud version | Planned | v0.4 | | Billing & usage limits | Planned | v0.4 |


Quick Start

Prerequisites

  • Node.js 22+ (Download)
  • pnpm (npm install -g pnpm)
  • PostgreSQL (local, Docker, or cloud like Neon)

1. Clone and Install

git clone https://github.com/golden-sheep-ai/shepgate.git
cd shepgate
pnpm install

2. Configure Environment

cp .env.example .env

Edit .env with your database URL:

DATABASE_URL="postgresql://user:pass@localhost:5432/shepgate"
ENCRYPTION_KEY="your-32-byte-hex-key"

MVP Note: No authentication required. The dashboard is open access to reduce friction.

3. Setup Database

# Run migrations
pnpm db:migrate

# (Optional) Seed with test data
pnpm db:seed

4. Start the Dashboard

pnpm dev

Open http://localhost:3000 — you'll land directly on the dashboard!

5. Connect Claude Desktop

Add to your Claude Desktop config (%APPDATA%\Claude\claude_desktop_config.json on Windows):

{
  "mcpServers": {
    "shepgate": {
      "command": "cmd",
      "args": ["/c", "path\\to\\shepgate\\scripts\\claude-launcher.bat"]
    }
  }
}

Restart Claude Desktop. You should see ShepGate's tools available!


Architecture

shepgate/
├── src/
│   ├── app/                 # Next.js App Router
│   │   ├── api/             # REST API routes
│   │   ├── (dashboard)/     # Dashboard pages
│   │   └── login/           # Auth pages
│   ├── components/          # React components
│   └── lib/                 # Core logic
│       ├── policy.ts        # Policy engine
│       ├── execution.ts     # Tool execution
│       ├── secrets.ts       # Encryption
│       └── mcp-client.ts    # MCP SDK wrapper
├── scripts/
│   └── mcp-host.ts          # MCP host for Claude
├── prisma/
│   └── schema.prisma        # Database schema
└── .specify/                # Spec-driven docs

Pricing

ShepGate uses a freemium model designed for non-technical founders.

| Tier | Price | Agents | Servers | Best For | |------|-------|--------|---------|----------| | Free | $0/mo | 1 | 2 | Solo founders testing | | Pro | $19/mo | 5 | 10 | Serious builders | | Scale | $49/mo | 20 | Unlimited | Growing teams |

MVP Note: v0.1 is free with no limits. Pricing tiers coming in v0.2.

See Business Model for full details.


Tech Stack

| Layer | Technology | |-------|------------| | Runtime | Node.js 22 LTS | | Language | TypeScript 5 | | Framework | Next.js 16 (App Router) | | Database | PostgreSQL | | ORM | Prisma | | MCP SDK | @modelcontextprotocol/sdk | | Auth | None (MVP is open access) | | Encryption | AES-256-GCM via Node.js crypto |


Documentation


Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

# Run tests
pnpm test

# Run linter
pnpm lint

# Type check
pnpm type-check

License

MIT License — see LICENSE for details.


About

Built by Golden Sheep AI — Making AI agents safer for everyone.

ShepGate is part of the Golden Sheep AI ecosystem:

  • ShepGate — AI governance gateway (this project)
  • ShepLang — Natural language spec compiler
  • ShepLight — Lightweight AI observability
  • ShepVerify - Your Code Quality at a Glance

⭐ Star us on GitHub if you find this useful!