0.1.2 • Published 4 months ago

create-keepkey-app v0.1.2

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

create-keepkey-app

A command-line interface for creating KeepKey applications with pre-configured templates.

Features

  • šŸš€ Quick project setup with KeepKey integrations
  • šŸ”Œ Optional connection indicator for KeepKey Desktop
  • šŸ“¦ Multiple template options (basic, full)
  • šŸŽØ Chakra UI styling and components
  • šŸ› ļø Fully configured TypeScript setup
  • 🧩 Modular structure using KeepKey packages

Usage

# Using npx (recommended)
npx create-keepkey-app my-app

# Global installation
npm install -g create-keepkey-app
create-keepkey-app my-app

# Using package managers directly
npm create keepkey-app my-app
yarn create keepkey-app my-app
pnpm create keepkey-app my-app

Options

# Display help
npx create-keepkey-app --help

# Specify a template
npx create-keepkey-app my-app --template full

# Skip dependency installation
npx create-keepkey-app my-app --skip-install

# Use a specific package manager
npx create-keepkey-app my-app --use-npm
npx create-keepkey-app my-app --use-yarn
npx create-keepkey-app my-app --use-pnpm

# Disable connection indicator
npx create-keepkey-app my-app --no-connection-indicator

Templates

Basic Template

A minimal setup with essential KeepKey integration features:

  • Next.js application with TypeScript
  • KeepKey connection indicator
  • Chakra UI styling
  • Basic app structure

Full Template

A complete application with additional features:

  • Everything in the basic template
  • Multiple page examples
  • Extended component library
  • Pioneer SDK integration
  • Example wallet connections
  • Transaction signing examples

Structure

A typical generated project will have the following structure:

my-app/
ā”œā”€ā”€ public/
│   └── images/
│       └── logos/
│           └── keepkey_logo.png
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ app/
│   │   ā”œā”€ā”€ page.tsx
│   │   └── layout.tsx
│   ā”œā”€ā”€ components/
│   │   ā”œā”€ā”€ KKConnectionStatus.tsx
│   │   └── ui/
│   └── lib/
ā”œā”€ā”€ .gitignore
ā”œā”€ā”€ package.json
ā”œā”€ā”€ tsconfig.json
└── README.md

Requirements

  • Node.js 18.0.0 or later
  • npm, yarn, or pnpm

Development

# Clone the repository
git clone https://github.com/keepkey/keepkey-template-monorepo.git

# Navigate to the CLI package
cd keepkey-template-monorepo/packages/create-keepkey-cli

# Install dependencies
npm install

# Build the package
npm run build

# Link for local development
npm link

# Run tests
npm test

License

MIT

0.1.2

4 months ago

0.1.1

4 months ago

0.1.0

4 months ago