Official starter templates for building SperaxOS plugins.
| Template | Type | Description | Difficulty |
|---|---|---|---|
| basic | Default | Full-featured template with testing & CI | ⭐⭐⭐ Advanced |
| default | Default | Backend + optional UI | ⭐⭐ Intermediate |
| openapi | OpenAPI | Auto-generated from spec | ⭐⭐ Intermediate |
| markdown | Markdown | Rich text output | ⭐ Beginner |
| standalone | Standalone | Full React app in chat | ⭐⭐⭐ Advanced |
| settings | Default | User preferences/API keys | ⭐⭐ Intermediate |
# Default plugin (recommended starting point)
cp -r templates/default my-plugin
# OpenAPI plugin (if you have an OpenAPI spec)
cp -r templates/openapi my-plugin
# Markdown plugin (for formatted text output)
cp -r templates/markdown my-plugin
# Standalone plugin (interactive frontend-only)
cp -r templates/standalone my-plugin
# Settings plugin (API key authentication)
cp -r templates/settings my-plugin
# Basic plugin (full-featured template with all features)
cp -r templates/basic my-plugincd my-plugin
pnpm install- Edit
public/manifest-dev.jsonwith your plugin details - Update
package.jsonname and description - Implement your API logic in
api/folder
pnpm devServer runs at http://localhost:3400
- Open SperaxOS
- Go to Plugin Settings
- Add custom plugin:
http://localhost:3400/manifest-dev.json - Start chatting!
Need AI to summarize results?
├── YES → Do you have an OpenAPI spec?
│ ├── YES → openapi template
│ ├── NO → Need API key authentication?
│ │ ├── YES → settings template
│ │ └── NO → default template
│
└── NO → Is output pre-formatted Markdown?
├── YES → markdown template
└── NO → Need user interaction?
├── YES → standalone template
└── NO → default template
- Complete example (clothes recommendation)
- Backend API with Edge Runtime
- Optional frontend UI in iframes
- Gateway for local development
- Production and dev manifests
- OpenAPI 3.0 spec file (
openapi.json) - Example endpoints (greet, calculate)
- Automatic parameter validation
- No separate API definitions needed
- Returns Markdown directly (no JSON)
- No AI summarization step
- Fast response times
- Example: time/date display
- React + Next.js + Ant Design
- Full SDK integration
- State management with hooks
- Programmatic AI triggers
- No backend required
- Settings schema in manifest
- API key authentication example
- Server-side settings retrieval
- Error handling for invalid settings
- Production-ready template
- ESLint + Prettier + Vitest
- Semantic release
- Complete documentation
- GitHub Actions workflows
Each template includes:
| File | Purpose |
|---|---|
package.json |
Dependencies and scripts |
public/manifest-dev.json |
Development manifest (with gateway) |
public/manifest.json |
Production manifest |
api/gateway.ts |
Local gateway for development |
api/*.ts |
API endpoint implementations |
tsconfig.json |
TypeScript configuration |
vercel.json |
Deployment configuration |
.gitignore |
Standard ignores |
README.md |
Template documentation |
All templates are configured for Vercel deployment:
# Deploy to Vercel
vercel --prodThen update public/manifest.json:
- Remove the
gatewayfield - Update all
urlfields to production URLs
- @sperax/plugin-sdk - Plugin SDK
- @sperax/chat-plugins-gateway - Gateway package
- CoinGecko Plugin - Real-world example
- Plugin Development Guide - Full documentation