Mirra APITemplates
Template Examples
Templates enable you to build complete, deployable applications that combine Next.js pages, serverless scripts, and API resources. These examples demonstrate how to create templates for different use cases.
Creating a Cryptocurrency Portfolio Template
This example demonstrates a complete dashboard template that tracks cryptocurrency portfolios in real-time.
Request
Response
Building a Template
Build the template to prepare it for deployment:
Request
Response
Installing a Template
Install a template with custom configuration:
Request
Response
Publishing to Marketplace
Make your template available to other users:
Request
Template Repository Structure
A complete template repository includes:
View a complete example: Example Template on GitHub
Best Practices
Template Design
Build templates that are easy to install and customize:
✅ Do:
- Focus on a single, well-defined use case
- Provide sensible defaults for all customization fields
- Make customization optional—templates should work out of the box
- Include comprehensive README with screenshots
- Test all dependencies and resource integrations
❌ Avoid:
- Overly complex templates with too many features
- Too many required resources (increases installation friction)
- Hard-coded values that should be customizable
- Poor error handling in scripts
- Missing or incomplete documentation
Pricing Strategies
Choose a pricing model that reflects your template's value:
- Setup Fee: One-time cost for installation ($5-50)
- Monthly Fee: Recurring fee for hosting ($2-20)
- Usage Cost: Based on script executions ($0.001-0.01 per use)
See Also
- Overview - Template concepts and components
- Endpoints - Complete API reference
- Technical Notes - Build process and troubleshooting
- Scripts - Building template scripts
- Resources - Integrating resources in templates