0.1.2 ⢠Published 4 months ago
create-keepkey-app v0.1.2
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