Template Marketplace
Discover, install, and manage community templates for rapid development
The Bootspring Template Marketplace provides pre-built templates for common patterns, features, and integrations that you can install in seconds.
Overview#
Templates are packaged code patterns that include:
- File structures - Organized source files
- Dependencies - Required npm packages
- Configuration - Pre-configured settings
- Documentation - Usage instructions
Template Categories#
| Category | Description |
|---|---|
| Starters | Complete project starter templates |
| Components | Reusable UI components |
| Features | Feature modules (auth, payments, etc.) |
| Workflows | Custom workflow definitions |
| Agents | Custom agent profiles |
| Skills | Code generation skills |
| Integrations | Third-party service integrations |
Official Templates#
Starters#
| Template | Description | Stack |
|---|---|---|
saas-starter | Complete SaaS with auth, payments, dashboard | Next.js, Prisma, Stripe, Clerk |
api-starter | REST API with auth and docs | Express, Prisma, Swagger |
Features#
| Template | Description | Stack |
|---|---|---|
auth-clerk | Clerk authentication integration | Next.js, Clerk |
payments-stripe | Stripe subscriptions and webhooks | Next.js, Stripe |
ai-chat | Claude-powered chat interface | Next.js, Anthropic SDK |
Using the Marketplace#
Browse Templates#
1# List all templates
2bootspring marketplace list
3
4# Filter by category
5bootspring marketplace list --category features
6
7# Search templates
8bootspring marketplace search "authentication"View Template Details#
1bootspring marketplace info auth-clerk
2
3# Output:
4# Template: auth-clerk
5# Name: Clerk Authentication
6# Category: feature
7# Version: 1.0.0
8# Author: bootspring (official)
9#
10# Description:
11# Complete Clerk auth integration with protected routes
12#
13# Files:
14# - src/middleware.ts
15# - src/app/sign-in/*
16# - src/app/sign-up/*
17# - src/components/auth/*
18#
19# Dependencies:
20# - @clerk/nextjs: ^4.0.0Install Templates#
1# Install a template
2bootspring marketplace install auth-clerk
3
4# Install with force (overwrite existing)
5bootspring marketplace install auth-clerk --force
6
7# Check installation status
8bootspring marketplace installedUpdate Templates#
1# Check for updates
2bootspring marketplace check-updates
3
4# Update a specific template
5bootspring marketplace update auth-clerk
6
7# Update all templates
8bootspring marketplace update-allUninstall Templates#
bootspring marketplace uninstall auth-clerkAPI Usage#
1const marketplace = require('bootspring/marketplace');
2
3// List all templates
4const templates = marketplace.listTemplates();
5
6// Search templates
7const results = marketplace.searchTemplates('authentication');
8
9// Get template details
10const template = marketplace.getTemplate('auth-clerk');
11
12// Install template
13const result = marketplace.installTemplate('auth-clerk');
14// { success: true, files: 4, dependencies: 1 }
15
16// Check if installed
17const isInstalled = marketplace.isInstalled('auth-clerk');
18
19// List installed templates
20const installed = marketplace.listInstalled();
21
22// Check for updates
23const updates = marketplace.checkUpdates();
24
25// Uninstall template
26marketplace.uninstallTemplate('auth-clerk');
27
28// Get marketplace stats
29const stats = marketplace.getStats();
30// { totalTemplates: 15, officialTemplates: 5, installedTemplates: 2 }Template Structure#
What's in a Template#
template/
├── template.json # Template metadata
├── files/ # Source files to install
│ ├── src/
│ │ ├── components/
│ │ └── lib/
│ └── prisma/
├── dependencies.json # Required npm packages
└── README.md # Usage instructions
Template Metadata#
1{
2 "id": "auth-clerk",
3 "name": "Clerk Authentication",
4 "description": "Complete Clerk auth integration",
5 "category": "feature",
6 "version": "1.0.0",
7 "author": "bootspring",
8 "official": true,
9 "tags": ["auth", "clerk", "sso"],
10 "stack": ["nextjs", "clerk"],
11 "files": ["src/middleware.ts", "src/app/sign-in/*"],
12 "dependencies": {
13 "@clerk/nextjs": "^4.0.0"
14 }
15}Publishing Templates#
Validate Before Publishing#
# Validate template structure
bootspring marketplace validate ./my-template
# Dry-run publish
bootspring marketplace publish ./my-template --dry-runPublish (Coming Soon)#
# Publish to marketplace (requires authentication)
bootspring marketplace publish ./my-templateTemplate Requirements#
- Unique ID - Lowercase with hyphens
- Clear description - What it does and when to use it
- Valid category - Must be a known category
- Version number - Semantic versioning
- Working files - All referenced files must exist
Best Practices#
When Installing Templates#
- Review the files - Understand what will be installed
- Check dependencies - Ensure compatibility with your project
- Back up first - Especially when using
--force - Read the README - Templates often have setup instructions
When Creating Templates#
- Keep it focused - One feature per template
- Document everything - Include clear usage instructions
- Test thoroughly - Ensure it works in fresh projects
- Use consistent naming - Follow existing conventions
Marketplace Statistics#
View current marketplace stats:
1bootspring marketplace stats
2
3# Output:
4# Template Marketplace Statistics
5# ─────────────────────────────────
6# Total Templates: 15
7# Official Templates: 5
8# Installed Templates: 2
9#
10# By Category:
11# starters: 2
12# features: 5
13# components: 4
14# integrations: 4