How okazaki112/prompthub works
PromptHub is a local-first workspace for prompts, skills, and project-level AI coding assets. Users manage and organize assets in the desktop workspace, then test prompts with AI models or deploy skills to supported coding tools; they can also back up or synchronize data. The repository includes desktop, CLI, mobile, self-hosted web, and Cloudflare web-data surfaces. The README documents the major workflows, while sampled source shows selected renderer-to-store and server route wiring; unsampled subsystem internals and some cross-process links are not asserted.
Main entry points: App.tsx Desktop workspace · prompt Prompt management · skill Skill management · app.ts Self-hosted web
Components 16
Desktop workspace
- Desktop workspace
apps/desktop/src/renderer/App.tsx - Local data store
apps/desktop/src/main/database/sqlite.ts - Desktop IPC
apps/desktop/src/main/ipc/index.ts
Asset capabilities
- Prompt management
apps/desktop/src/renderer/components/prompt - Skill management
apps/desktop/src/renderer/components/skill - Plugin and MCP
apps/desktop/src/renderer/components/plugin - Rules workspace
apps/desktop/src/renderer/components/rules - AI services
apps/desktop/src/main/services/ai-client.ts - Agent deployment
apps/desktop/src/main/services/skill-installer.ts
Sync and services
- Backup and restore
apps/desktop/src/renderer/services/database-backup.ts - WebDAV sync
apps/desktop/src/main/webdav.ts - Self-hosted web
apps/web/src/app.ts - Cloudflare sync
apps/web-cloudflare/src/worker.ts
Other clients
- CLI
apps/cli/src/index.ts - Mobile client
apps/mobile/src/storage/database.ts
Other components
- User
Connections 16
- User → Desktop workspace: manages assets
README.md - Desktop workspace → Prompt management: edits prompts
README.md - Desktop workspace → Skill management: manages skills
README.md - Desktop workspace → Plugin and MCP: manages integrations
README.md - Desktop workspace → Rules workspace: manages rules
- Desktop workspace → Local data store: stores locally
README.md - Desktop workspace → Desktop IPC: uses IPC
- Prompt management → AI services: tests with models
README.md - Skill management → Agent deployment: deploys skills
README.md - Desktop workspace → Backup and restore: backs up data
README.md - Desktop workspace → WebDAV sync: syncs via
README.md - User → Self-hosted web: uses self-hosted
README.md - Self-hosted web → Local data store: persists workspace
- User → Cloudflare sync: syncs devices
- User → CLI: uses CLI
README.md - User → Mobile client: uses mobile app