@sysprompthub/sdk
v1.0.1
Published
SDK for syncing system prompts from SysPromptHub
Maintainers
Readme
@sysprompthub/sdk
SDK for syncing system prompts from SysPromptHub to your projects.
Installation
npm install @sysprompthub/sdkUsage
import { SyncManager, NodeFileSystem } from '@sysprompthub/sdk';
// Example 1: Sync with explicit config and Node.js file system
const fs = new NodeFileSystem();
const syncManager = new SyncManager();
await syncManager.sync({
config: {
packName: 'user/pack/latest',
assistants: ['copilot', 'claude']
},
fs
});
// Example 2: Sync to a custom path
await syncManager.sync({
config: {
packName: 'user/pack/latest',
path: 'docs/system-prompt.md'
},
fs
});Development
# Install dependencies
npm install
# Build
npm run build
# Run tests
npm test
# Run tests in watch mode
npm run test:watch
# Type check
npm run typecheckLicense
ISC
