0.0.193 β€’ Published 4 months ago

0x1-templates v0.0.193

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

0x1 Templates

Official templates for the 0x1 framework - the ultra-minimal TypeScript⚑️Bun framework.

πŸš€ Quick Start

Install the templates package:

bun add 0x1-templates

Use with the 0x1 CLI:

0x1 new my-app --template full
0x1 new crypto-app --template crypto-dash

πŸ“¦ Available Templates

Bundled with CLI (Lightweight)

  • minimal (~500KB) - Basic setup with minimal dependencies
  • standard (~50MB) - Common libraries and project structure ⭐ Recommended

Requires 0x1-templates Package (Feature-Rich)

  • full (~180MB) - Complete setup with all recommended features
  • crypto-dash (~650MB) - Crypto wallet and DeFi dashboard

🎯 Template Features

TemplateTypeScriptTailwindPWAState MgmtDeFiSize
minimalβœ…βŒβŒβŒβŒ~500KB
standardβœ…βœ…βœ…βœ…βŒ~50MB
fullβœ…βœ…βœ…βœ…βŒ~180MB
crypto-dashβœ…βœ…βœ…βœ…βœ…~650MB

πŸ’‘ Usage

Direct Import (Advanced)

import { getTemplatePath, templateExists } from '0x1-templates';

// Check if template exists
if (templateExists('full')) {
  const templatePath = getTemplatePath('full');
  console.log(`Template located at: ${templatePath}`);
}

Template Metadata

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', ...]

πŸ—οΈ Architecture

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

πŸ”„ Development

Building the package:

cd 0x1-templates
bun run build

πŸ“„ License

MIT License - see LICENSE for details.

🀝 Contributing

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
0.0.193

4 months ago