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

init-prism

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

init-prism

Modern project scaffolding with Bitcoin integration and plugin system

latest
Source
npmnpm
Version
0.0.28
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
ย 
Created
Source

prism

โœจ Just describe what you want to build, and watch it happen.

An AI-powered project generator that understands your requirements and builds production-ready apps through conversation. No memorizing commands, no perfect syntax required - just explain your idea and let prism do the heavy lifting.

๐Ÿš€ NEW in v0.0.26:

  • --preset Parameter ๐ŸŽฏ - Skip the interactive preset selection with --preset auth, --preset social, etc.
  • Streamlined Quick Creation - Combine presets with other parameters for one-command project creation
  • Non-Interactive Preset Support - Perfect for automation and CI/CD workflows

๐Ÿš€ Recent in v0.0.25:

  • Claude Code Commands ๐Ÿค– - Generate custom slash commands for Claude Code with prism command
  • Dynamic Command Composition - Commands built from base templates + features + configurations
  • All Project Types Supported - Web, Headless, Library, Go, Zig, and Ghost commands
  • Ghost CMS Support ๐Ÿ‘ป - Create working Ghost installations with Docker auto-start

๐Ÿš€ Recent Features:

  • Prompt Catalog System ๐Ÿ†• - Browse, search, and create projects from curated prompts with prism prompts
  • One-Click Project Creation - prism use social-media my-app creates complete projects instantly
  • Comprehensive Prompt Commands - Search, filter, and discover project templates by category and difficulty
  • Go & Zig Support - Build Go APIs with Encore.dev integration and Zig projects including WASM
  • Ghost CMS Support ๐Ÿ‘ป - Create Ghost themes, local installations, and API integrations
  • BigBlocks v0.0.17 Support - Enhanced with Type 42 Master Keys and BAP Profile Sync
  • Intelligent Component Selection - AI selects optimal components from 96+ available

๐Ÿš€ The Magic of Prism

๐Ÿค– AI-Powered Understanding

"I want a social app with Bitcoin login" โ†’ Complete app with auth, posts, and wallet features

๐Ÿ’ฌ Conversational Flow

  • No need to memorize commands or options
  • Prism asks clarifying questions when needed
  • Iterates until your project builds perfectly
  • Forgiving of typos, unclear requests, and changing requirements

๐Ÿงฉ Smart Plugin Integration

  • AI selects the right components for your needs
  • NEW: BigBlocks intelligence picks optimal components from 96 available
  • Automatically configures complex integrations
  • Handles all the webpack configs, environment variables, and boilerplate

โšก One-Shot Success

  • Tests the build before finishing
  • Fixes issues automatically
  • Delivers a working project every time

๐ŸŽจ Parallel Variant Generation (NEW!)

  • Generate 3 project variants simultaneously
  • Compare them side-by-side in your browser
  • Pick the best implementation visually

๐ŸŽฏ How It Actually Works

$ prism

โœจ What would you like to build today?
> I need a marketplace app where users can login with Bitcoin and trade NFTs

๐Ÿค” Sounds great! Let me ask a few questions to get this perfect:
- Should users be able to create posts about their listings?
- Do you want real BSV payments or just a demo?
- Any specific UI style you prefer?

[Prism generates your complete app with:]
โœ… Bitcoin authentication with encrypted backups
โœ… NFT marketplace components
โœ… Social features for engagement  
โœ… Wallet integration for payments
โœ… All configurations handled automatically

๐Ÿ“Š Perfect for technical projects too:

$ prism

โœจ What would you like to build today?
> Analytics dashboard for tracking developer activity

๐ŸŽฏ Perfect! I can set this up quickly with a Next.js preset.

[Prism creates:]
โœ… Dashboard layout with data visualization
โœ… Chart components and metric cards  
โœ… Real-time data updates
โœ… Professional analytics interface

๐Ÿ“ฆ Installation

bunx init-prism@latest

Using NPM/NPX

npx init-prism@latest

๐Ÿ”‘ Using with AI Generation

For AI-powered component generation, you have two options:

๐Ÿš€ With Claude Code (Recommended - Much More Efficient!)

# If you have Claude Code installed, prism will automatically use it
# This is MUCH more efficient - uses 90% fewer tokens and completes faster
bunx init-prism@latest

# Claude Code handles all the iteration, testing, and fixes autonomously
# You just describe what you want, and get a perfect working project

Authentication Options for Claude Code:

# Option 1: Use your Claude subscription (no API key needed)
# Just make sure you're logged in with: claude login
bunx init-prism@latest --use-claude-subscription

# Option 2: Force Claude Code even without subscription
# (Will use Claude Code with your API key)
ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY bunx init-prism@latest --use-claude-code

# Option 3: Disable Claude Code entirely (use direct API only)
bunx init-prism@latest --no-claude-code

๐Ÿ“ฑ With API Key (Direct Anthropic API)

# For users without Claude Code, use your API key
ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY bunx init-prism@latest

# Or install globally for easier access
bun install -g init-prism
prism  # Uses your shell environment directly

Why Claude Code Integration is Better:

  • โšก 90% fewer tokens - Claude Code handles iteration internally
  • ๐ŸŽฏ No back-and-forth - Gets it right the first time
  • ๐Ÿ”ง Autonomous testing - Builds and fixes issues automatically
  • โฑ๏ธ Faster completion - Direct iteration instead of API round-trips
  • ๐Ÿง  Smarter context - Uses your local codebase for better understanding

๐Ÿš€ The Efficiency Revolution

Without Claude Code Integration:

  • prism sends requirements โ†’ Claude API
  • Claude generates code โ†’ prism writes files
  • Build fails with type errors โ†’ back to Claude API
  • Claude fixes errors โ†’ prism writes fixes
  • Still has issues โ†’ another API round-trip
  • Result: 10+ API calls, lots of tokens, slower iteration

With Claude Code Integration:

  • prism delegates to Claude Code โ†’ Claude Code takes over completely
  • Claude Code generates, tests, fixes, and iterates locally
  • Claude Code builds repeatedly until everything works
  • Result: 1 delegation call, Claude Code does the heavy lifting autonomously

This is why you'll use 90% fewer tokens and get much better results - prism kickstarts the process with templates and plugin configuration, then Claude Code takes over to perfect everything.

๐ŸŽฏ Quick Start

Create a .prism configuration file in your project directory:

# Initialize a config file
prism init

# Edit .prism to match your needs
# Then just run:
prism

Sample .prism file:

name: my-social-app
type: web
preset: social
requirements: A Twitter-like social app with Bitcoin authentication and tipping features
plugins:
  - bigblocks
  - drizzle
useClaudeCode: true
skipPrompts: true
pluginAnswers:
  bigblocks:
    features: [auth, social, wallet]

Option 2: Just Tell Prism What You Want

$ prism

โ”Œ  BUILD STUFF FASTER
โ”‚  [ASCII art banner]
โ”‚  Create Modern Projects with brilliance
โ”‚
โ”‚  โœจ Let's build something amazing together!
โ”‚
โ—†  What would you like to build today?
โ”‚  I want a Twitter clone but with Bitcoin tipping  โ† You type this
โ”‚
๐Ÿค– Understanding your request...
   Detected social media keywords - perfect for BigBlocks social components

๐ŸŽฏ Perfect! I can set this up quickly with a Next.js preset.
   Recommended preset: social
   Recommended components: bigblocks

โ—†  Does this sound right?
โ”‚  โ— Yes, let's do it!
โ”‚  โ—‹ Let me customize  
โ”‚  โ—‹ That's not what I meant

๐Ÿš€ Creating your app...
[Auto-creates project with social preset + AI requirements]

Or Use Quick Commands (If You Know Them)

prism next my-app            # Quick Next.js with AI assistance
prism --next                 # Even faster
prism ghost my-theme         # Create Ghost theme/installation/integration
prism command my-commands    # Generate Claude Code slash commands
prism use social-media app   # Create from prompt template
prism prompts list          # Browse available prompts
prism plugins list          # Browse available components

The AI Handles Everything Else

  • Asks clarifying questions
  • Selects appropriate plugins
  • Configures all integrations
  • Tests the build
  • Fixes any issues
  • Delivers a working project

๐Ÿง  Behind the AI Magic

When you describe your project, prism:

  • Understands Intent - Natural language processing extracts your requirements
  • Asks Smart Questions - Only what's needed to clarify ambiguity
  • Selects Components - Chooses from 36+ BigBlocks components, UI libraries, databases
  • Configures Everything - Webpack, TypeScript, environment variables, providers
  • Generates Code - Creates a complete, working application
  • Verifies Success - Builds the project and fixes any issues
  • Delivers Results - A production-ready app in under a minute

The AI Handles:

  • ๐Ÿ”ง Complex webpack configurations for Bitcoin libraries
  • ๐Ÿ” Authentication setup with proper encryption
  • ๐ŸŽจ UI component integration and theming
  • ๐Ÿ“ฆ Dependency compatibility and resolution
  • ๐Ÿ—๏ธ Project structure and best practices
  • โœ… Build verification and error recovery

๐Ÿ—๏ธ Project Types

๐ŸŒ Web Applications

Built on Next.js 15 with:

  • App Router with Server Components
  • TypeScript strict configuration
  • Tailwind CSS v4+ (security-compliant)
  • Biome linting and formatting
  • Critical BSV package webpack configuration

๐Ÿ”ง Headless Services

Built on Bun with:

  • Elysia framework for APIs
  • Worker processes and background jobs
  • Database integrations (Drizzle/Prisma)
  • TypeScript strict mode

๐Ÿ“š Libraries

Built with Vite + TypeScript:

  • Browser, Node.js, or Universal targets
  • Clean project structure and dependencies
  • Focused plugin ecosystem for utilities
  • Optimized for reusable components and utilities

๐Ÿน Go Projects (NEW!)

Professional Go development with:

  • Templates: Minimal, API Server, CLI Tool
  • Encore.dev Integration: Cloud-native backend framework (optional)
  • API Frameworks: Gin or Echo for REST APIs
  • CLI Framework: Cobra for command-line tools
  • Docker Support: Multi-stage builds included
  • AI Enhancement: Generate Go code with natural language

โšก Zig Projects (NEW!)

High-performance Zig development:

  • Templates: Minimal executable, Library, WebAssembly
  • WASM Support: Browser-ready WebAssembly modules
  • Build System: Modern build.zig configuration
  • Testing: Built-in test runner setup
  • Examples: Interactive HTML demos for WASM
  • AI Enhancement: Generate Zig code from descriptions

๐Ÿ‘ป Ghost CMS Projects (NEW!)

Professional publishing platform:

  • Templates:
    • Installation: Working Ghost CMS with Docker (default)
    • Theme: Handlebars theme development
    • Integration: TypeScript API client
  • Auto-Start: Ghost launches automatically at http://localhost:2368
  • Docker Setup: Complete containerized environment
  • Development Tools: Ghost-CLI integration for themes
  • API Access: Content API and Admin API support

๐Ÿค– Claude Code Commands (NEW!)

Generate custom slash commands for Claude Code:

  • Dynamic Composition: Commands built from templates + features + configs
  • All Project Types: Web, Headless, Library, Go, Zig, Ghost commands
  • Smart Templates:
    • All: Commands for every project type
    • Web-focused: Next.js development commands
    • API-focused: Backend and service commands
    • Custom: Choose your own combination
  • Usage: Copy .claude/commands/ to any project for instant commands
  • Examples: /project:create-web, /project:add-auth, /project:setup-docker

๐Ÿ“Š Project Type Comparison

FeatureWeb AppsHeadlessLibrariesGoZigGhostCommands
Maturityโœ… Production-readyโœ… Production-readyโœ… Stableโœ… Stableโœ… Stableโœ… Stableโœ… NEW
Plugin Supportโœ… 7+ pluginsโœ… 5+ pluginsโœ… 4 focusedโž– AI onlyโž– AI onlyโœ… 3 pluginsโž– N/A
BigBlocks UIโœ… All 96 componentsโž– Server-focusedโž– Utility-focusedโŒ N/AโŒ N/AโŒ N/Aโž– Commands
AI Integrationโœ… Excellentโœ… Goodโœ… Streamlinedโœ… Goodโœ… Goodโœ… Goodโœ… Excellent
Best ForUser-facing appsAPIs & servicesReusable utilitiesSystems & APIsPerformancePublishingAutomation
FrameworksNext.js 15Bun/ElysiaViteGin/EchoNativeGhost/DockerClaude Code

๐Ÿงฉ Plugin System (AI Selects These For You!)

You don't need to know about these - the AI picks the right ones based on your description. But if you're curious:

Available Building Blocks

๐ŸŽจ UI & Styling

  • BigBlocks v0.0.17 - 96 Bitcoin-native components with latest enhancements!
    • ๐Ÿ” Authentication: Bitcoin login, encrypted backups, user management
    • ๐Ÿ“ฑ Social: Posts, likes, follows, feeds, user interactions
    • ๐Ÿ’ฐ Wallet: Send BSV, view balances, transaction history
    • ๐Ÿ›’ Marketplace: Product listings, buy/sell, trading interface
    • ๐Ÿ‘ค Profile: User profiles, BAP identity, multi-device support
    • ๐Ÿ†• Drag & Drop: Beautiful file upload zones with animated borders
    • ๐ŸŽจ Responsive Design: Mobile-first with intelligent responsive utilities
    • ๐ŸŽญ 52+ Themes: Advanced theme system with sophisticated color palettes
  • shadcn/ui - Beautiful, accessible components with Radix UI

๐Ÿ—„๏ธ Database & Storage

  • Drizzle ORM - When you need "a database" or "data persistence"
  • Prisma - For complex data relationships

๐Ÿš€ Deployment

  • Vercel - Optimized Next.js hosting
  • Netlify - Static site deployment

Manual Plugin Commands (Optional)

# List plugins by category
prism plugins list ui
prism plugins list database

# Search plugins
prism plugins search bitcoin
prism plugins search database

# Show detailed plugin info
prism plugins show bigblocks
prism plugins show shadcn

# List all categories
prism plugins categories

๐Ÿ“ Prompt Catalog System (NEW!)

โšก Create projects instantly from curated templates

Skip the conversation and jump straight to building with our growing collection of expert-crafted prompts. Each prompt includes detailed specifications, recommended components, and estimated completion times.

๐ŸŽฏ One-Click Project Creation

# Browse available prompts
prism prompts list

# Create a social media platform instantly  
prism use social-media my-twitter-clone

# Create a professional Bitcoin wallet
prism use bitcoin-wallet my-wallet-app

# Create an NFT marketplace
prism use nft-marketplace my-marketplace
# Search by keywords
prism prompts search bitcoin        # Find Bitcoin-related prompts
prism prompts search social         # Find social platform prompts
prism prompts search marketplace    # Find marketplace prompts

# Browse by category
prism prompts list social           # Social platforms
prism prompts list wallet           # Wallet & payments
prism prompts list marketplace      # NFT & trading platforms

# Show featured prompts
prism prompts featured              # Curated highlights

# Get detailed information
prism prompts show social-media     # Full prompt details with preview

๐Ÿ“Š Current Prompt Collection

PromptCategoryDifficultyTimeDescription
social-media๐Ÿ‘ฅ SocialIntermediate4-6hTwitter-like platform with Bitcoin tipping
bitcoin-wallet๐Ÿ’ฐ WalletAdvanced6-8hProfessional wallet with multi-sig support
nft-marketplace๐Ÿ›๏ธ MarketplaceAdvanced8-12hOpenSea-style NFT trading platform

๐Ÿท๏ธ Prompt Categories

  • ๐Ÿ‘ฅ Social Platforms - Social media, messaging, community apps
  • ๐Ÿ’ฐ Wallet & Payments - Bitcoin wallets, payment systems, financial tools
  • ๐Ÿ›๏ธ Marketplaces - NFT, token, and digital asset trading
  • ๐Ÿ“ˆ DeFi & Finance - Lending, trading, decentralized finance
  • ๐ŸŽฎ Gaming - Blockchain games, play-to-earn, entertainment
  • ๐Ÿข Enterprise - Business tools, enterprise applications
  • ๐ŸŽ“ Education - Learning platforms, certification systems
  • ๐Ÿ“ Content - Publishing, blogging, media sharing

โœจ Smart Features

  • Difficulty Ratings - Beginner, Intermediate, Advanced with time estimates
  • Component Hints - Auto-selects optimal BigBlocks components
  • Project Type Matching - Compatible with web, headless, library, Go, Zig
  • Detailed Previews - See prompt content before creating projects
  • Featured System - Highlighted prompts for popular use cases

๐Ÿš€ Coming Soon

  • Community Prompts - User-contributed templates
  • Remote Catalogs - External prompt repositories
  • Prompt Versioning - Template updates and improvements
  • Custom Categories - Personalized prompt organization

๐Ÿค– Intelligent Build Scripts

Automated repository maintenance and release validation powered by Claude Code

๐Ÿ”ง Maintenance Scripts

Keep your repository healthy with AI-powered maintenance that makes intelligent decisions about updates, security, and code quality.

# Monthly maintenance (recommended)
bun run maintenance              # Full maintenance with AI analysis

# Targeted maintenance
bun run maintenance:deps         # Dependency updates only
bun run maintenance:security     # Security audit and fixes
bun run maintenance:cleanup      # Code quality improvements

# Safe preview mode
bun run maintenance:dry          # See what would change

What the AI does:

  • ๐Ÿ” Smart Dependency Updates - Researches breaking changes, applies security patches, skips risky updates
  • ๐Ÿ›ก๏ธ Security Auditing - Finds vulnerabilities, applies fixes, reviews code for security issues
  • ๐Ÿงน Code Quality - Removes dead code, fixes TypeScript errors, improves organization
  • ๐Ÿ“š Documentation Updates - Keeps README and examples current with dependency changes

๐Ÿš€ Pre-Publish Validation

Ensure release quality with comprehensive validation before publishing to npm.

# Full release validation
bun run pre-publish             # Complete validation with AI review

# Quick validation
bun run pre-publish:quick       # Skip AI validation (faster)
bun run validate               # Preview validation checks

Validation checks:

  • โœ… Version Management - Semver compliance, proper increments, changelog consistency
  • โœ… Git State - Clean repository, proper branch, no duplicate tags
  • โœ… Build Quality - TypeScript compilation, tests pass, lint checks
  • โœ… Security - Vulnerability scans, dependency audits
  • โœ… AI Review - Claude Code performs comprehensive release readiness assessment

๐ŸŽฏ Smart Automation Features

  • Creates maintenance branches - Never loses original code
  • Intelligent decision making - AI researches updates before applying them
  • Build verification - Ensures changes don't break anything
  • Detailed reporting - Know exactly what changed and why
  • Version validation - Prevents publishing mistakes
  • Dry-run modes - Preview before making changes

See scripts/README.md for complete documentation and advanced usage.

๐Ÿช™ Bitcoin Integration

Quick Bitcoin App Setup

$ prism next my-bitcoin-app

โ”Œ   Create Next.js App - Quick Mode 
โ”‚
โ—†  Choose a preset:
โ”‚  โ—‹ Minimal (Just Next.js + TypeScript + Tailwind)
โ”‚  โ— With Authentication  โ† Select this for Bitcoin features
โ”‚  โ—‹ Full Stack
โ”‚  โ—‹ E-commerce  
โ”‚  โ—‹ Social Platform
โ”‚  โ—‹ Custom
โ””

โœจ Perfect! I'll set up Bitcoin authentication with BigBlocks...
[Creates complete app with all configurations]

What you get:

  • Bitcoin-based login/signup with encrypted backups
  • Multi-device support with backup restoration
  • OAuth integration (Google, GitHub, Twitter)
  • BAP (Bitcoin Attestation Protocol) identity
  • All webpack configs for BSV packages handled automatically

Automatic Configuration

The tool automatically configures:

  • Next.js webpack for BSV packages (@bsv/sdk, bsv-bap)
  • Client-side fallbacks for Node.js modules
  • Proper transpilation for Bitcoin libraries
  • Environment variables and providers

๐ŸŽจ UI Component Systems

shadcn/ui Integration

  • Copy-paste components philosophy
  • Radix UI primitives with Tailwind CSS
  • Full TypeScript support
  • Accessible by default

BigBlocks Components

  • 36+ Bitcoin-specific components
  • CLI-based selective installation
  • Social, wallet, and marketplace features
  • Built-in BSV blockchain integration

๐Ÿ’ก Example Conversations

Building a Social App

You: "I want to build a social media app"
Prism: "Awesome! Will users need to create accounts?"
You: "Yes, but I want it to use Bitcoin instead of passwords"
Prism: "Perfect! I'll set up BigBlocks auth. Want posts and likes too?"
You: "Yeah, and maybe user profiles"
Prism: "Got it! Building your app with auth, posts, profiles, and social features..."
[30 seconds later: Complete working app]

Creating a Go API

You: "I need a Go API with Encore"
Prism: "๐ŸŽฏ Perfect! Let's create a go project."
[Detects Go and Encore keywords]
Prism: "Select a Go template: API Server"
Prism: "Would you like to use Encore.dev? Yes"
[Creates cloud-native backend with Encore framework]

Building Zig WASM

You: "Build a Zig WebAssembly module"
Prism: "๐ŸŽฏ Perfect! Let's create a zig project."
[Creates WASM template with example HTML]
Prism: "Build with: zig build"
Prism: "Serve demo: python3 -m http.server 8000"
[Complete WASM module with JavaScript bindings]

Creating a Marketplace

You: "Build a marketplace"
Prism: "What kind of items will be sold?"
You: "Digital art and NFTs"
Prism: "Should sellers be able to create storefronts?"
You: "That would be cool"
Prism: "I'll include marketplace components, wallet integration, and storefront features..."
[Complete e-commerce platform ready]

When You're Not Sure

You: "I want to build something cool with Bitcoin"
Prism: "I can help! Here are some ideas:
  - Social platform with tipping
  - NFT marketplace
  - Decentralized blog
  - Wallet with social features
Which sounds interesting?"

๐Ÿค– Non-Interactive Mode (For Automation)

Perfect for CI/CD pipelines, scripts, or when you know exactly what you want:

Direct Creation with Requirements

# Create a dashboard without any prompts
prism dashboard --non-interactive --prompt "analytics dashboard with charts"

# Using shorthand flag
prism my-app -y --prompt "social media platform like Twitter"

# Auto-detects project type from requirements
prism store --yes --prompt "e-commerce site with Bitcoin payments"

Environment Variable Automation

# Set requirements via environment
PRISM_AI_REQUIREMENTS="monitoring dashboard" prism metrics-app --non-interactive

# Combine with preset selection
PRISM_AUTO_PRESET=social prism social-app -y

Scripted Usage

# In your build script
echo "dashboard" | prism --prompt "real-time monitoring dashboard"

# In GitHub Actions
- name: Create project
  run: |
    bunx init-prism@latest app --non-interactive \
      --prompt "${{ inputs.requirements }}"

Features in Non-Interactive Mode

  • โœ… No prompts or user input required
  • โœ… Automatic preset selection based on requirements
  • โœ… AI generation enabled by default
  • โœ… Clean output (no ASCII banners)
  • โœ… Exit codes for success/failure
  • โœ… Works in CI/CD environments

๐Ÿ—๏ธ Preset Starting Points (Or Just Describe Your Idea!)

PresetWhat You Can SayWhat You Get
auth"I need login functionality"Bitcoin auth, encrypted backups, user management
social"Like Twitter but..."Posts, likes, follows, profiles, feeds
ecommerce"A marketplace for..."Listings, payments, storefront, orders
full-stack"An app with database"Auth + API + Database + Admin panel
custom"I want..."AI figures out exactly what you need

Remember: You don't need to pick a preset. Just describe your idea and prism will figure out the best combination of components.

๐Ÿ”ง Configuration

Projects are configured through interactive prompts with sensible defaults:

  • Testing: Bun test setup (optional)
  • Linting: Biome configuration (recommended)
  • Authentication: BigBlocks with storage backend selection
  • UI Components: Framework selection with dependency management
  • Database: ORM choice with connection setup

๐Ÿ›ก๏ธ Why Developers Love Prism

It Just Worksโ„ข

  • AI handles the tricky parts - Webpack configs, module resolution, environment setup
  • Build verification - Won't finish until your project builds successfully
  • Smart error recovery - Automatically fixes common issues
  • Best practices built-in - Security, performance, and code quality by default

Forgiving & Flexible

  • Understands typos - "bicoin auth" โ†’ Bitcoin authentication โœ“
  • Clarifies ambiguity - Asks questions instead of guessing wrong
  • Iterative refinement - Keep adding features through conversation
  • No "correct" way - Your natural language is the interface

Production-Ready Output

  • TypeScript strict mode - Type-safe from the start
  • Modern stack - Next.js 15, Bun, latest packages
  • Security first - No vulnerable dependencies
  • Optimized builds - Fast development and production

๐Ÿ“„ Prompt Files (NEW!)

Save and share your project templates as prompt files:

Create a Prompt File

---
name: Bitcoin Social Media Platform
description: Twitter-like platform with Bitcoin tipping
tags: [social, bitcoin, tipping]
author: YourName
version: 1.0
bigblocksHints: [social, wallet, profile]
---

Create a social media platform with Bitcoin integration:

Features:
- User authentication with Bitcoin wallets
- Create posts with media support
- Bitcoin tipping for posts
- Real-time feed updates

Technical Requirements:
- Next.js 15 with App Router
- BigBlocks components
- Mobile responsive
- Fast page loads

Use Prompt Files

# Load from file
prism my-app --prompt ./prompts/social-media.prompt

# Short syntax
prism my-app -p ./templates/marketplace.md

# In CI/CD
prism build-$VERSION --prompt ./company-template.prompt -y

Share Templates

  • Commit prompt files to your repo
  • Share successful app recipes with your team
  • Build a library of proven templates
  • Version control your project specifications

๐Ÿš€ Parallel Generation & Visual Comparison (NEW!)

Generate multiple variants simultaneously and compare them visually:

Generate 3 Variants at Once

# Interactive mode
prism parallel my-app

# From a prompt file (auto-generates 3 strategies)
prism parallel social-platform
> Choose: Load from prompt file
> Select: ./prompts/social-media.prompt

# Creates:
# 1. Conservative variant (minimal, stable)
# 2. Balanced variant (modern, practical)  
# 3. Creative variant (innovative, experimental)

Visual Comparison Interface

  • Split-screen preview of all 3 running apps
  • Live reload as changes are made
  • One-click selection of the best variant
  • Branch isolation - each on its own git branch
  • Side-by-side testing in real browsers

Use Cases

  • A/B/C Testing - Compare different approaches
  • Risk Mitigation - See conservative vs creative
  • Team Reviews - Show options to stakeholders
  • Learning - Understand different implementations

๐Ÿง  BigBlocks Component Intelligence (NEW!)

Prism now intelligently selects from 96 BigBlocks components:

How It Works

$ prism
> "I want a social app with Bitcoin payments"

๐Ÿค– Analyzing... detected social + wallet features
๐Ÿ“ฆ Selecting 24 components from 96 available:
  โœ“ SocialFeed, PostCard, LikeButton
  โœ“ WalletOverview, SendBSVButton
  โœ“ LoginForm, ProfileManager
  ... optimized for your specific needs

Component Categories (v0.0.11)

  • Authentication (6 components) - Bitcoin login, no passwords
  • Social (9 components) - Posts, likes, follows, messaging
  • Wallet (4 components) - Send/receive BSV, balances
  • Marketplace (3 components) - Buy/sell with Bitcoin
  • Profile (8 components) - User management, BAP identity
  • Backup (8 components) - Encrypted recovery systems
  • UI Components (16 components) - Modals, avatars, QR codes, NEW: drag-drop zones
  • Developer Tools (4 components) - Crypto utilities
  • Plus 38 more specialized components with responsive design!

Benefits

  • 60-80% smaller bundles - Only includes what you need
  • Faster builds - Less code to process
  • Cleaner code - Organized imports by category
  • Smart defaults - AI picks optimal components

๐Ÿ“ฆ Automated Type Publishing (NEW!)

For library projects and complex applications, prism automatically sets up a sophisticated type publishing system:

When It's Enabled

  • All library projects - Essential for reusable packages
  • Complex web projects - With 3+ plugins or Bitcoin integration
  • API projects - Headless projects with multiple plugins

What You Get

my-awesome-lib/
โ”œโ”€โ”€ packages/types/        # Separate NPM package for types
โ”œโ”€โ”€ scripts/              # Automated publishing scripts
โ”‚   โ”œโ”€โ”€ sync-types.sh    # Sync from main project
โ”‚   โ”œโ”€โ”€ bump-version.sh  # Smart version management
โ”‚   โ””โ”€โ”€ publish-types.sh # One-command publishing
โ””โ”€โ”€ .github/workflows/    # Auto-publish on commits

Features

  • ๐Ÿค– CI/CD Integration - Auto-publishes on main branch commits
  • ๐Ÿ“ˆ Smart Versioning - Automatic patch/minor/major bumps
  • ๐Ÿ”„ Type Synchronization - Keeps types in sync with code
  • ๐Ÿ“š Documentation - Auto-generated type docs
  • ๐Ÿš€ Zero Config - Works out of the box

Usage Example

# Create a library with type publishing
prism new bitcoin-sdk --type library

# Your types are automatically published as:
# npm install @bitcoin-sdk/types

# Other projects can use:
import type { Transaction, Wallet } from '@bitcoin-sdk/types';

๐ŸŽช Try These Ideas!

Just type prism and describe any of these:

  • "Twitter but users own their data" โ†’ Decentralized social platform
  • "Etsy for digital downloads" โ†’ NFT marketplace with storefronts
  • "Instagram for developers" โ†’ Code snippet sharing with social features
  • "OnlyFans but on Bitcoin" โ†’ Content monetization platform
  • "Reddit with micropayments" โ†’ Forum where upvotes cost satoshis
  • "LinkedIn but verifiable" โ†’ Professional network with on-chain credentials
  • "Pinterest for NFTs" โ†’ Visual NFT discovery and collection platform
  • "Uber for anything" โ†’ P2P marketplace with escrow payments

Or just describe your own idea - the weirder, the better! Prism loves a challenge.

๐Ÿค Contributing

We welcome contributions! The plugin registry system makes it easy to add new integrations:

  • Add to Registry - Update src/plugins/registry.json
  • Create Plugin - Implement in src/plugins/[category]/[name]/
  • Test Integration - Verify with existing project types
  • Submit PR - Include documentation and examples

Plugin Structure

src/plugins/category/plugin-name/
โ”œโ”€โ”€ plugin.ts          # Plugin configuration
โ”œโ”€โ”€ apply-templates.ts # Setup automation
โ””โ”€โ”€ templates/         # Code templates

๐Ÿ“ Examples

Create Bitcoin Social App

$ prism next social-app

โ”Œ   Create Next.js App - Quick Mode 
โ”‚
โ—†  Choose a preset:
โ”‚  โ—‹ Minimal 
โ”‚  โ—‹ With Authentication
โ”‚  โ—‹ Full Stack
โ”‚  โ—‹ E-commerce  
โ”‚  โ— Social Platform  โ† Select this
โ”‚  โ—‹ Custom
โ””

๐ŸŽ‰ Building your social platform with:
โœ… Bitcoin authentication & user profiles
โœ… Posts, likes, and social interactions  
โœ… User feeds and discovery features
โœ… BigBlocks social components
[Complete social app ready in 30 seconds]

Add Authentication to Existing Project

cd my-existing-project
prism plugins show bigblocks  # Review features
# Copy integration code from plugin details

Browse UI Components

prism plugins search ui
prism plugins show shadcn
prism plugins show bigblocks

๐Ÿš€ Roadmap

  • Remote Registry - GitHub-based plugin distribution
  • Component Marketplace - Community plugin submissions
  • AI-Powered Setup - Intelligent configuration suggestions
  • Template Variations - Multiple implementation approaches
  • Plugin CLI Tools - Streamlined plugin development

๐Ÿ“„ License

MIT ยฉ [init-prism contributors]

โœจ Stop configuring. Start creating. Let AI handle the boring parts.

Built with โค๏ธ for developers who'd rather be building cool stuff.

Keywords

scaffold

FAQs

Package last updated on 03 Jul 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