npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@lunar-kit/cli

v0.1.9

Published

CLI for Lunar Kit

Readme

@lunar-kit/cli

CLI tool for Lunar Kit - A component library for React Native with NativeWind.

Installation

npm install -g @lunar-kit/cli
# or
pnpm add -g @lunar-kit/cli
# or
yarn global add @lunar-kit/cli

Usage

The CLI provides several commands to help you manage your Lunar Kit components:

lunar-kit [command] [options]
# or use shorter aliases
lk [command] [options]
lunar [command] [options]

Commands

init

Initialize Lunar Kit in your existing React Native project.

lunar-kit init

This command will:

  • Create src/components/ui directory for your components
  • Set up lib/utils.ts with helper functions (cn)
  • Install required dependencies (clsx, tailwind-merge)
  • Configure your project structure

Options:

  • Interactive prompts will ask for:
    • TypeScript preference
    • Package manager (pnpm/npm/yarn)

add

Add components from the Lunar Kit registry to your project.

lunar-kit add <component-name>

Examples:

# Add a single component
lunar-kit add button

# Add multiple components
lunar-kit add button card dialog

# Add all components
lunar-kit add --all

What it does:

  • Downloads component files from the registry
  • Installs required dependencies
  • Resolves and installs registry dependencies automatically
  • Updates component imports and paths

generate (or gen)

Generate new components or modules using templates.

lunar-kit generate [options]

Subcommands:

Global Component

lunar-kit gen global <component-name>
# or
lunar-kit generate global MyComponent

Creates a global component in src/components/

Scoped Component

lunar-kit gen scoped <module-name> <component-name>
# or
lunar-kit generate scoped auth LoginForm

Creates a scoped component within a module, e.g., src/modules/auth/components/LoginForm.tsx

module

Generate a complete module structure with all necessary folders.

lunar-kit module <module-name>

Example:

lunar-kit module auth

This creates:

src/modules/auth/
  ├── components/
  ├── hooks/
  ├── screens/
  ├── services/
  └── types/

Available Components

Lunar Kit includes a rich set of pre-built components:

  • Form Components: Button, Input, Textarea, Checkbox, Radio, Select
  • Layout Components: Card, Banner, Bottom Sheet, Dialog
  • Display Components: Avatar, Badge, Text
  • Data Components: Calendar, Date Picker, Date Range Picker
  • Navigation: Tabs
  • Form Management: Form (with validation)
  • Interactive: Accordion, Select Sheet

Configuration

The CLI reads configuration from kit.config.json in your project root:

{
  "typescript": true,
  "componentsPath": "src/components",
  "packageManager": "pnpm"
}

Requirements

  • Node.js: >= 18.0.0
  • React Native project with Expo or bare workflow
  • NativeWind configured in your project

Examples

Complete Setup Flow

# 1. Create a new Expo app (if you haven't already)
npx create-expo-app my-app
cd my-app

# 2. Initialize Lunar Kit
lunar-kit init

# 3. Add some components
lunar-kit add button card input

# 4. Start building!

Adding Components to Existing Project

# Add specific components you need
lunar-kit add dialog select calendar

# Or add everything at once
lunar-kit add --all

Generating Custom Components

# Create a global shared component
lunar-kit gen global UserCard

# Create module-specific components
lunar-kit module profile
lunar-kit gen scoped profile ProfileHeader
lunar-kit gen scoped profile ProfileStats

Package Manager Support

Lunar Kit CLI automatically detects and works with:

  • pnpm (recommended)
  • npm
  • yarn

The CLI will use the package manager specified during init or auto-detect based on lock files.

Troubleshooting

Command not found

If you get "command not found" error after installation:

# For npm
npm install -g @lunar-kit/cli

# For pnpm
pnpm add -g @lunar-kit/cli

# Verify installation
which lunar-kit

Registry not found

If you encounter registry errors:

# Reinstall the CLI
pnpm add -g @lunar-kit/cli

# Verify @lunar-kit/core is installed
pnpm list @lunar-kit/core

Links

License

MIT © Dimas Maulana