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

@sysprompthub/sdk

v2.0.1

Published

SDK for syncing system prompts from SysPromptHub

Readme

@sysprompthub/sdk

Node.js SDK for managing and syncing system prompts from SysPromptHub to your AI assistant configurations.

🌐 Please see @sysprompthub/cli for the command-line interface

🌐 For VS Code integration, see the SysPromptHub Extension

⏳ Jetbrains IDE integration coming soon!

Installation

npm install @sysprompthub/sdk

Quick Start

import { SyncManager, NodeFileSystem, DefaultConfigManager } from '@sysprompthub/sdk';

const syncManager = new SyncManager();
const fs = new NodeFileSystem();

await syncManager.sync({
  config: {
    apiKey: 'your-api-key',
    packs: [
      { type: 'copilot', pack: 'owner/pack-name/latest' },
      { type: 'claude', pack: 'owner/pack-name/latest' }
    ]
  },
  fs
});

Features

  • 🔄 Sync prompts to GitHub Copilot and Claude Desktop
  • 🎯 Agent/Skill support - Configure multiple specialized agents
  • 📁 Custom paths - Write prompts to any location
  • 🌍 Environment support - Development, local, and production configs
  • 💾 Project config management - Edit .sysprompthub.json programmatically

Usage

Syncing Prompts

import { SyncManager, NodeFileSystem } from '@sysprompthub/sdk';

const syncManager = new SyncManager();
const fs = new NodeFileSystem();

// Sync multiple assistants
await syncManager.sync({
  config: {
    apiKey: process.env.SYSPROMPTHUB_API_KEY!,
    packs: [
      { type: 'copilot', pack: 'company/general/v1.0.0' },
      { type: 'claude', pack: 'company/general/v1.0.0' },
      { 
        type: 'copilot', 
        pack: 'company/python-expert/latest',
        agent: { 
          name: 'python',
          description: 'Python development expert'
        }
      }
    ]
  },
  fs
});

Managing Project Configuration

import { DefaultConfigManager, ProjectConfigEditor, NodeFileSystem } from '@sysprompthub/sdk';

const fs = new NodeFileSystem();
const manager = new DefaultConfigManager();

// Load or create config
const editor = await manager.load(fs);

// Set primary assistant pack
await editor.set({
  assistant: 'copilot',
  pack: 'owner/pack/latest',
  environment: 'development'
});

// Add an agent
await editor.addAgent({
  assistant: 'copilot',
  name: 'typescript',
  pack: 'owner/typescript-pack/latest',
  frontMatter: {
    description: 'TypeScript expert',
    model: 'gpt-4'
  }
});

// Add custom path
await editor.addCustom({
  path: 'docs/prompt.md',
  pack: 'owner/docs-pack/latest'
});

// View current configuration
console.log(editor.packs);

// Remove an agent
await editor.removeAgent('copilot', 'typescript');

// Clear all packs for an assistant
await editor.clearAll('copilot');

Working with Configurations

import { DefaultConfigManager, UserConfigManager, NodeFileSystem } from '@sysprompthub/sdk';

const fs = new NodeFileSystem();

// Project configuration (.sysprompthub.json)
const projectManager = new DefaultConfigManager();
const projectEditor = await projectManager.load(fs);

// User configuration (~/.sysprompthub/config.json)
const userManager = new UserConfigManager();
const userConfig = await userManager.load(fs);
if (userConfig) {
  console.log('API Key:', userConfig.apiKey);
}

Configuration Format

Project Config (.sysprompthub.json)

{
  "packs": [
    {
      "type": "copilot",
      "pack": "owner/pack-name/version"
    },
    {
      "type": "copilot",
      "pack": "owner/agent-pack/version",
      "agent": {
        "name": "python",
        "description": "Python expert"
      }
    },
    {
      "type": "claude",
      "pack": "owner/pack-name/version",
      "environment": "development"
    },
    {
      "type": "custom",
      "pack": "owner/custom-pack/version",
      "path": "docs/prompt.md"
    }
  ]
}

User Config (~/.sysprompthub/config.json)

{
  "apiKey": "sph_..."
}

API Reference

SyncManager

Syncs prompts from SysPromptHub to local files.

  • sync(workspace: Workspace): Promise<void> - Download and write prompts

ProjectConfigEditor

Manages project configuration with a fluent API.

  • set(options) - Set/replace assistant root pack
  • clear(type) - Remove assistant root pack
  • clearAll(type) - Remove all packs for an assistant
  • find(assistant) - Find root pack
  • addAgent(options) - Add/replace agent pack
  • removeAgent(assistant, name) - Remove agent pack
  • findAgent(assistant, name) - Find agent pack
  • addCustom(options) - Add/replace custom pack
  • removeCustom(path) - Remove custom pack
  • findCustom(path) - Find custom pack by path

ConfigManager

Interface for loading and saving configurations.

  • load(fs) - Load configuration, returns editor
  • save(fs, config) - Save configuration
  • update(fs, config) - Update existing configuration
  • exists(fs) - Check if configuration exists

TypeScript Support

This package includes full TypeScript definitions.

import type { 
  PackConfig, 
  ProjectConfig, 
  UserConfig,
  AssistantType,
  Environment 
} from '@sysprompthub/sdk';

CLI Alternative

For command-line usage, see @sysprompthub/cli.

License

ISC