New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

create-blocklet

Package Overview
Dependencies
Maintainers
1
Versions
239
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-blocklet

The fastest way to create modern blocklet applications

latest
Source
npmnpm
Version
0.14.6
Version published
Weekly downloads
405
4962.5%
Maintainers
1
Weekly downloads
 
Created
Source

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

Compatibility Note: Blocklet templates require Node.js version >=20.0.0.

📋 Available Templates

🌐 Full-Stack Applications (dApps)

Interactive applications with both frontend and backend components.

TemplateDescriptionTech Stack
react-dappReact + Express.js applicationReact, Express, JavaScript
react-dapp-tsReact + Express with TypeScriptReact, Express, TypeScript
react-aigne-dappReact + AIGNE FrameworkReact, Express, AI Integration
vue-dappVue 3 + Express.js applicationVue 3, Express, JavaScript
svelte-dappSvelte + Express.js applicationSvelte, Express, JavaScript
solidjs-dappSolidJS + Express.js applicationSolidJS, Express, JavaScript
nextjs-dappNext.js full-stack applicationNext.js, React

🎯 Static Applications

Frontend-only applications for static hosting.

TemplateDescriptionTech Stack
react-staticReact single-page applicationReact, Vite
vue-staticVue 3 single-page applicationVue 3, Vite
vue-ts-staticVue 3 with TypeScriptVue 3, TypeScript, Vite
svelte-staticSvelte single-page applicationSvelte, Vite
solidjs-staticSolidJS single-page applicationSolidJS, Vite
html-staticPlain HTML static siteHTML, CSS, JavaScript

🔧 API Services

Backend-only services and APIs.

TemplateDescriptionTech Stack
express-apiExpress.js REST APIExpress, JavaScript
nestjs-apiNestJS API with TypeScriptNestJS, TypeScript

🎨 Specialized Templates

Purpose-built templates for specific use cases.

TemplateDescriptionTech Stack
did-connect-dappDID Connect integration demoReact, Express, DID Connect
did-wallet-dappDID Wallet integration demoReact, Express, DID Wallet
todo-list-exampleFull-featured todo appReact, Express, TypeScript
component-studioComponent development studioReact, TypeScript, Vite

🏗️ Project Structure

Each generated blocklet follows this structure:

my-blocklet/
├── blocklet.yml          # Blocklet configuration
├── package.json          # Dependencies and scripts
├── src/                  # Frontend source code
├── api/                  # Backend API (dApps only)
│   ├── index.js         # API entry point
│   ├── libs/            # Shared utilities
│   └── routes/          # API endpoints
├── public/              # Static assets
└── screenshots/         # Blocklet screenshots

⚙️ Common Commands

After creating a blocklet, use these commands:

# Install dependencies
npm install

# Start development server
npm run dev
# or
blocklet dev

# Build for production
npm run build
# or
npm run bundle

# Deploy to Blocklet Server
blocklet deploy

# Run tests (if available)
npm test

🔧 Configuration

blocklet.yml

Core blocklet configuration file:

name: my-blocklet
version: 1.0.0
title: My Blocklet
description: A sample blocklet
keywords: [blocklet, example]
group: dapp
author:
  name: Your Name
  email: you@example.com
interfaces:
  - type: web
    port: 3000

Package Scripts

Standard scripts included in generated projects:

  • dev - Start development server with hot reload
  • build - Build for production
  • bundle - Create deployable bundle
  • lint - Run code linting
  • test - Run tests (where applicable)

🛠️ Development

Local Testing

To test the CLI tool locally:

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

# Install dependencies
pnpm install

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

# Or create a symlink for easier testing
ln -s $(pwd)/packages/create-app/index.js /usr/local/bin/create-blocklet-dev
create-blocklet-dev my-test-project

Adding New Templates

To add a new template:

  • Create template directory in packages/create-app/templates/
  • Add required files: blocklet.yml, package.json, source code
  • Create template-info.json with metadata
  • Update template list in packages/create-app/index.js
  • Test with: TEMPLATE=your-template sh scripts/ensure-create-blocklet.sh

CLI Architecture

The CLI tool (packages/create-app/index.js) includes:

  • Template Selection - Interactive prompts for choosing templates
  • Project Generation - File copying and template processing
  • DID Generation - Automatic blocklet DID creation
  • Package Management - Dependency installation support
  • Git Integration - Repository initialization

📖 Documentation

🌟 Ecosystem

📝 License

This project is licensed under the MIT License.

💖 Support

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

Made with ❤️ by the ArcBlock team

FAQs

Package last updated on 07 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts