Skip to content

blocklet/create-blocklet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Create Blocklet

The fastest way to create modern blocklet applications

πŸ“š Documentation β€’ πŸ› Issues β€’ πŸ’¬ Discussions

npm version npm downloads license


✨ Features

  • πŸš€ Quick Setup - Get started in seconds with a single command
  • 🎯 Multiple Templates - Choose from 20+ production-ready templates
  • πŸ”§ Framework Agnostic - Support for React, Vue, Svelte, SolidJS, and more
  • 🌐 Full-Stack Ready - Templates for dApps, static sites, and APIs
  • πŸ“¦ Modern Tooling - Built with Vite, TypeScript, and modern build tools
  • πŸ”’ DID Integration - Built-in support for decentralized identity
  • 🎨 Customizable - Easy to extend and customize for your needs

πŸš€ Quick Start

# Create a new blocklet project
npx create-blocklet my-blocklet

# Or use your preferred package manager
pnpm create blocklet my-blocklet
yarn create blocklet my-blocklet

πŸ“‹ Available Templates

🌐 Full-Stack Applications (dApps)

Interactive applications with both frontend and backend components.

Template Description Tech Stack
react-dapp React + Express.js application React, Express, JavaScript
react-dapp-ts React + Express with TypeScript React, Express, TypeScript
react-aigne-dapp React + AIGNE Framework React, Express, AI Integration
vue-dapp Vue 3 + Express.js application Vue 3, Express, JavaScript
svelte-dapp Svelte + Express.js application Svelte, Express, JavaScript
solidjs-dapp SolidJS + Express.js application SolidJS, Express, JavaScript
nextjs-dapp Next.js full-stack application Next.js, React

🎯 Static Applications

Frontend-only applications for static hosting.

Template Description Tech Stack
react-static React single-page application React, Vite
vue-static Vue 3 single-page application Vue 3, Vite
vue-ts-static Vue 3 with TypeScript Vue 3, TypeScript, Vite
svelte-static Svelte single-page application Svelte, Vite
solidjs-static SolidJS single-page application SolidJS, Vite
html-static Plain HTML static site HTML, CSS, JavaScript

πŸ”§ API Services

Backend-only services and APIs.

Template Description Tech Stack
express-api Express.js REST API Express, JavaScript
nestjs-api NestJS API with TypeScript NestJS, TypeScript

🎨 Specialized Templates

Purpose-built templates for specific use cases.

Template Description Tech Stack
did-connect-dapp DID Connect integration demo React, Express, DID Connect
did-wallet-dapp DID Wallet integration demo React, Express, DID Wallet
todo-list-example Full-featured todo app React, Express, TypeScript
component-studio Component development studio React, TypeScript, Vite

πŸ› οΈ Development

Prerequisites

  • Node.js 16+
  • pnpm (recommended)

Setup

# Clone the repository
git clone https://github.com/blocklet/create-blocklet.git
cd create-blocklet

# Install dependencies
pnpm install

# Run linting across all packages
pnpm -r lint

# Test the CLI tool
node packages/create-app/index.js test-demo

Testing

# Run e2e tests
sh scripts/ensure-create-blocklet.sh

# Test specific template
TEMPLATE=react-dapp sh scripts/ensure-create-blocklet.sh

πŸ—οΈ Architecture

This is a monorepo managed with pnpm workspaces:

  • packages/create-app/ - Main CLI tool
  • plugins/ - Vite plugins for blocklet development
  • website/ - Documentation sites
  • scripts/ - Build and maintenance scripts

🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

πŸ“– Documentation

🌟 Ecosystem

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ’– Support

  • Give us a ⭐️ if this project helped you!
  • Follow us on Twitter
  • Join our Community

Made with ❀️ by the ArcBlock team

About

Bootstrap blocklets within minutes

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 21