Official templates for the 0x1 framework
npm install 0x1-templatesOfficial templates for the 0x1 framework - the ultra-minimal TypeScriptβ‘οΈBun framework.
Install the templates package:
``bash`
bun add 0x1-templates
Use with the 0x1 CLI:
`bash`
0x1 new my-app --template full
0x1 new crypto-app --template crypto-dash
| Template | TypeScript | Tailwind | PWA | State Mgmt | DeFi | Size |
|----------|------------|----------|-----|------------|------|------|
| minimal | β
| β | β | β | β | ~500KB |
| standard | β
| β
| β
| β
| β | ~50MB |
| full | β
| β
| β
| β
| β | ~180MB |
| crypto-dash | β
| β
| β
| β
| β
| ~650MB |
`typescript
import { getTemplatePath, templateExists } from '0x1-templates';
// Check if template exists
if (templateExists('full')) {
const templatePath = getTemplatePath('full');
console.log(Template located at: ${templatePath});`
}
`typescript
import { templateMetadata, getTemplateMetadata } from '0x1-templates';
// Get all template info
console.log(templateMetadata);
// Get specific template info
const fullTemplate = getTemplateMetadata('full');
console.log(fullTemplate?.features); // ['TypeScript', 'Tailwind CSS', ...]
`
The templates package follows the same modular approach as other 0x1 packages:
``
0x1-templates/
βββ minimal/ # Minimal template files
βββ standard/ # Standard template files
βββ full/ # Full-featured template files
βββ crypto-dash/ # Crypto dashboard template files
βββ licenses/ # License templates (MIT, TDL, etc.)
βββ src/ # Template utilities and metadata
Building the package:
`bash``
cd 0x1-templates
bun run build
MIT License - see LICENSE for details.
Please see the main 0x1 repository for contribution guidelines.
---
Part of the 0x1 framework ecosystem:
- 0x1 - Core framework
- 0x1-router - Client-side routing
- 0x1-store - State management
- 0x1-templates - Project templates