0.0.22 • Published 9 months ago

create-lasereyes v0.0.22

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

create-lasereyes

Interactive CLI tool to scaffold Next.js projects with LaserEyes integration to quickly start building Bitcoin Apps.

Quick Start

npx create-lasereyes

Features

  • āš”ļø Next.js Integration - Creates a modern Next.js project with App Router using React 18
  • šŸ” LaserEyes Wallet Connect Modal - Pre-configured Bitcoin wallet integration
  • šŸŽØ Styling
    • Shadcn / Tailwind CSS setup
    • Light / Dark Mode App Toggle
  • šŸ¤– .cursorrules: For developers using Cursor editor, provides AI assistant configuration to make working with AI tools easier than ever

Project Structure

After running the command, your project will include:

src/
ā”œā”€ā”€ app/
│   ā”œā”€ā”€ favicon.ico
│   ā”œā”€ā”€ globals.css
│   ā”œā”€ā”€ layout.tsx           # Root layout with providers
│   └── page.tsx             # Home page
ā”œā”€ā”€ components/
│   ā”œā”€ā”€ ui/                  # Reusable Shadcn UI Components
│   ā”œā”€ā”€ ConnectWallet.tsx    # LaserEyes Wallet Connection Modal
│   ā”œā”€ā”€ DefaultLayout.tsx    # LaserEyes Provider Wrapper
│   └── ThemeToggle.tsx      # Light/Dark Mode Toggle
ā”œā”€ā”€ lib/
│   └── utils.ts
└── .cursorrules             # AI assistant configuration for Cursor editor

Key Components

  • ConnectWallet.tsx: Modal component for connecting Bitcoin wallets
  • DefaultLayout.tsx: Wraps your app in useLaserEyesProvider for Bitcoin functionality
  • ThemeToggle.tsx: Toggle component for switching between light and dark modes

AI Assistance

  • .cursorrules: For developers using Cursor editor, provides AI assistant configuration to make working with AI tools easier than ever

Development

  1. Create a new project:

    npx create-lasereyes
  2. Follow the interactive prompts to customize your setup

  3. Navigate to your project:

    cd your-project-name
  4. Start developing:

    npm run dev

Coming Soon

  • Vue.js template support
  • Vanilla JavaScript template
  • Additional wallet integrations

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - feel free to use this in your own projects!

0.0.20

9 months ago

0.0.21

9 months ago

0.0.22

9 months ago

0.0.17

9 months ago

0.0.18

9 months ago

0.0.19

9 months ago

0.0.15

10 months ago

0.0.16

10 months ago

0.0.14

10 months ago

0.0.13

10 months ago

0.0.12

10 months ago

0.0.11

10 months ago

0.0.10

10 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago