Socket
Book a DemoInstallSign in
Socket

create-onchain

Package Overview
Dependencies
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-onchain

Instantly create onchain applications with OnchainKit.

0.0.24
latest
npmnpm
Version published
Weekly downloads
365
49.59%
Maintainers
2
Weekly downloads
 
Created
Source

Create Onchain

A CLI tool to bootstrap your Base onchain apps and Farcaster Mini-Apps with best practices and modern tooling.

🚀 Quickstart

Create a new project:

# Create an Onchainkit template
npx create-onchain

# Create a Mini-App template
npx create-onchain --mini

# Create a particular Mini-App template
npx create-onchain --template-<template>

Available Templates:
  - onchainkit: Create an OnchainKit project
  - minikit-basic: Create a Demo Mini-App
  - minikit-snake: Create a Snake Game Mini-App

# Generate a Mini-App manifest in existing project
npx create-onchain --manifest

# Show the available commands
npx create-onchain --help

# Show the current version
npx create-onchain --version

📦 Templates

OnchainKit Template

A Next.js template with OnchainKit pre-configured for building Base onchain apps:

  • Next.js 14+ with App Router
  • OnchainKit components and hooks
  • Wagmi for wallet connection
  • Tailwind CSS for styling
  • TypeScript support
  • ESLint and Prettier configured
npx create-onchain
# or
npx create-onchain --template=onchainkit

MiniKit Basic Template

A template optimized for building Farcaster Mini-Apps:

  • Next.js 14+ with App Router
  • MiniKit components and hooks
  • Farcaster Frame utilities
  • OnchainKit for Wallet Connection
  • OnchainKit for sample Transaction
  • Tailwind CSS for styling
  • TypeScript support
  • ESLint and Prettier configured
npx create-onchain --mini
# or
npx create-onchain --template=minikit-basic

MiniKit Snake Template

A template optimized for building Farcaster Mini-Apps:

  • Next.js 14+ with App Router
  • MiniKit components and hooks
  • Farcaster Frame utilities
  • Demo Snake game
  • OnchainKit for Wallet Connection
  • OnchainKit for sample Attestation Transaction
  • OnchainKit Identity components to display addresses
  • Tailwind CSS for styling
  • TypeScript support
  • ESLint and Prettier configured
npx create-onchain --template=minikit-snake

🔧 Development

Requirements

  • Node.js v18+
  • pnpm v10+

Getting Started

  • Install dependencies
pnpm install
  • Start development
pnpm dev
  • Build
pnpm build

Testing

# Run tests
pnpm test

# Run with coverage
pnpm test:coverage

📖 Mini-App Manifest Generation

When using --manifest, the tool will:

  • Launch a UI to connect your Farcaster custody wallet
  • Generate and sign your manifest
  • Save it to your .env file as:
    • FARCASTER_HEADER
    • FARCASTER_PAYLOAD
    • FARCASTER_SIGNATURE

🌊 License

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

FAQs

Package last updated on 08 Aug 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.