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

desishub-cli

v2.2.1

Published

πŸš€ A modern, beautiful CLI tool to scaffold production-ready applications across multiple frameworks. Create Node.js, Next.js, Expo, Hono, and full-stack monorepos with TypeScript, best practices, and zero configuration.

Readme

πŸš€ DesisHub CLI

DesiHub CLI

A modern CLI tool for scaffolding production-ready applications

npm version License: MIT Node.js Version Downloads

From idea to full-stack application in 2 minutes

✨ What is DesiHub CLI?

DesiHub CLI is a modern scaffolding tool that creates production-ready applications with zero configuration. Choose from 5 carefully crafted templates, each packed with industry best practices, modern tooling, and real-world features.

πŸš€ Quick Start

# Install globally
npm install -g desishub-cli

# Create a new project
desishub new my-awesome-app

# Start developing
cd my-awesome-app
pnpm run dev

πŸ“¦ Available Templates

| Template | Description | Features | Best For | | -------------------------- | ------------------------------ | ------------------------------------------- | ----------------------------------- | | πŸ—οΈ Full-Stack Monorepo | Complete development ecosystem | Next.js + Hono API + Expo + Shared Types | Enterprise apps, MVP development | | 🟒 Node.js + Express | Backend API with TypeScript | Prisma ORM, Sample endpoints | REST APIs, Microservices | | βš›οΈ Next.js 15 | Full-stack React app | 5 API routes, Frontend pages, Dashboard | Web applications, E-commerce | | πŸ”₯ Hono | Edge-optimized API | OpenAPI docs, 3 endpoints, Vercel ready | Serverless APIs, Edge computing | | πŸ“± Expo | React Native mobile app | Product listing, Dynamic routes, NativeWind | Mobile applications, Cross-platform |


πŸ—οΈ Full-Stack Monorepo (NEW!)

Complete development ecosystem with Next.js web app, Hono API, Expo mobile app, and shared TypeScript types - all in one repository.

πŸ› οΈ What's Included

  • Turborepo - High-performance monorepo build system
  • Next.js 15 Web App - Modern React frontend with App Router
  • Hono Edge API - Ultra-fast serverless backend
  • Expo Mobile App - Cross-platform React Native app
  • Shared Types Package - TypeScript types across all apps
  • Unified Development - Single command to run all apps
  • Type Safety - End-to-end type safety across the entire stack

πŸ›οΈ Architecture

my-fullstack-app/
β”œβ”€β”€ apps/
β”‚   β”œβ”€β”€ web/           # Next.js 15 application
β”‚   β”œβ”€β”€ api/           # Hono API server
β”‚   └── mobile/        # Expo React Native app
β”œβ”€β”€ packages/
β”‚   └── types/         # Shared TypeScript types
β”œβ”€β”€ turbo.json         # Turborepo configuration
└── package.json       # Root package.json

🌐 Next.js Web App Features

  • Modern React 18+ with App Router
  • 5 API Routes - Products, categories, users, stats
  • Frontend Pages - Home, store, product details, dashboard
  • Admin Dashboard - Analytics, product management
  • Tailwind CSS - Utility-first styling
  • Shadcn/ui Components - Beautiful, accessible UI
  • React Query - Powerful data fetching and caching
  • Infinite Scroll - Seamless product loading
  • SEO Optimized - Meta tags and performance

πŸ”₯ Hono API Features

  • Edge Runtime - Optimized for Vercel/Cloudflare
  • OpenAPI Documentation - Interactive API docs with Scalar
  • Type-Safe Routes - Full TypeScript integration
  • Zod Validation - Schema validation for all endpoints
  • Authentication - API key-based auth system
  • High Performance - Ultra-fast cold starts
  • Database Integration - Prisma ORM support

πŸ“± Expo Mobile App Features

  • React Native - Cross-platform mobile development
  • Expo SDK - Latest managed workflow
  • NativeWind - Tailwind CSS for React Native
  • Tab Navigation - Beautiful bottom tab navigation
  • Product Screens - List, detail, and category pages
  • React Query - Consistent data fetching with web app
  • Pull to Refresh - Native mobile interactions
  • Offline Support - Basic offline functionality

πŸ”— Shared Types Package

  • Single Source of Truth - Types defined once, used everywhere
  • Zod Schemas - Runtime validation across all apps
  • Auto-sync - Type changes automatically propagate
  • API Contracts - Consistent data shapes across frontend and backend

⚑ Development Experience

# Start all apps simultaneously
pnpm dev

# Run individual apps
pnpm dev --filter=web      # Next.js on :3000
pnpm dev --filter=api      # Hono API on :3001
pnpm dev --filter=mobile   # Expo mobile app

# Build all apps
pnpm build

# Type checking across all apps
pnpm type-check

πŸ”§ Type Safety Example

// Shared type definition (packages/types/src/products.schema.ts)
export const ProductSchema = z.object({
  id: z.string(),
  name: z.string().min(1, "Product name is required"),
  price: z.number().positive("Price must be positive"),
  image: z.string().url().optional(),
});

export type Product = z.infer<typeof ProductSchema>;

// Usage in Hono API (apps/api/src/routes/products.ts)
import { ProductSchema, CreateProductSchema } from "@repo/types/products";

app.post("/products", async (c) => {
  const body = await c.req.json();
  const validatedData = CreateProductSchema.parse(body);
  // Fully type-safe API logic
});

// Usage in Next.js (apps/web/src/app/api/products/route.ts)
import { Product, ProductSchema } from "@repo/types/products";

export async function GET(): Promise<Product[]> {
  // Type-safe API route
}

// Usage in Expo (apps/mobile/src/hooks/useProducts.ts)
import { Product } from "@repo/types/products";

export const useProducts = (): Product[] => {
  // Type-safe mobile data fetching
};

πŸš€ Getting Started

# Create new monorepo
desishub new my-fullstack-app --template monorepo
cd my-fullstack-app

# Install dependencies
pnpm install

# Start all apps
pnpm dev

🌐 Access Your Apps

  • Web App: http://localhost:3000
  • API: http://localhost:3001
  • API Docs: http://localhost:3001/docs
  • Mobile: Follow Expo CLI instructions

πŸ“± Mobile Development

# Start Expo development server
pnpm dev --filter=mobile

# Run on iOS simulator
pnpm mobile ios

# Run on Android emulator
pnpm mobile android

# Run on web
pnpm mobile web

🎯 Perfect For

  • MVP Development - Get all platforms running quickly
  • Enterprise Applications - Scalable monorepo architecture
  • Team Development - Shared types prevent API mismatches
  • Full-Stack Projects - Single repository for all code
  • Type-Safe Development - End-to-end TypeScript safety

🟒 Node.js + Express + TypeScript

Enterprise-grade backend API with modern tooling and best practices.

πŸ› οΈ What's Included

  • TypeScript - Fully configured with strict mode
  • Express.js - Fast, minimalist web framework
  • Prisma ORM - Type-safe database client
  • Sample Endpoints - Ready-to-use API structure
  • ESLint & Prettier - Code quality and formatting
  • Environment Configuration - .env setup with validation

πŸ“ Project Structure

my-express-app/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ routes/          # API route handlers
β”‚   β”œβ”€β”€ middleware/      # Custom middleware
β”‚   β”œβ”€β”€ utils/          # Utility functions
β”‚   └── index.ts        # Application entry point
β”œβ”€β”€ prisma/
β”‚   └── schema.prisma   # Database schema
β”œβ”€β”€ .env.example        # Environment variables template
└── package.json

πŸš€ Getting Started

desishub new my-api --template nodejs
cd my-api
npm run dev

βš›οΈ Next.js 15 Full-Stack Application

Complete e-commerce application with frontend, API routes, and admin dashboard.

πŸ› οΈ What's Included

  • Next.js 15 - Latest React framework with App Router
  • TypeScript - Full type safety across the application
  • React Query - Powerful data fetching and caching
  • Tailwind CSS - Utility-first styling
  • Shadcn/ui - Beautiful, accessible components

🌐 Frontend Pages

  • Home Page - Landing page with featured content
  • Store Page - Product catalog with filtering
  • Product Detail - Individual product pages
  • Category Detail - Category-specific product listings

πŸͺ Dashboard Pages

  • Analytics Dashboard - Stats and metrics overview
  • Products Table - Manage products with CRUD operations
  • Categories Table - Category management interface

πŸ”Œ API Routes (5 Endpoints)

GET    /api/categories        # List all categories
GET    /api/categories/[id]   # Single category
GET    /api/products          # List products (with infinite scroll)
GET    /api/products/[id]     # Single product
GET    /api/stats             # Dashboard statistics

⚑ Advanced Features

  • Infinite Scroll - Seamless product loading
  • Data Fetching - Optimized with React Query
  • Responsive Design - Mobile-first approach
  • SEO Optimized - Meta tags and structured data
  • Performance - Image optimization and lazy loading

πŸ“ Project Structure

my-nextjs-app/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ (dashboard)/     # Dashboard routes
β”‚   β”‚   β”œβ”€β”€ (store)/         # Store routes
β”‚   β”‚   β”œβ”€β”€ api/             # API route handlers
β”‚   β”‚   └── page.tsx         # Home page
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ ui/              # Shadcn/ui components
β”‚   β”‚   β”œβ”€β”€ dashboard/       # Dashboard components
β”‚   β”‚   └── store/           # Store components
β”‚   β”œβ”€β”€ lib/                 # Utilities and configurations
β”‚   └── hooks/               # Custom React hooks
└── package.json

πŸš€ Getting Started

desishub new my-store --template nextjs
cd my-store
npm run dev

πŸ”₯ Hono Edge API

Ultra-fast serverless API with OpenAPI documentation and best practices.

πŸ› οΈ What's Included

  • Hono.js - Ultra-fast edge framework
  • TypeScript - Full type safety
  • Scalar Docs - Beautiful OpenAPI documentation
  • Zod Validation - Schema validation for all endpoints
  • Prisma ORM - Database integration
  • Pino Logger - High-performance logging
  • Vercel Ready - Zero-config deployment

πŸ”Œ API Endpoints (3 Endpoints)

GET    /api/products      # List products with pagination
POST   /api/products      # Create new product
GET    /api/products/:id  # Get single product

GET    /api/api-keys      # List API keys
POST   /api/api-keys      # Generate new API key
DELETE /api/api-keys/:id  # Revoke API key

GET    /api/users         # List users
POST   /api/users         # Create user
GET    /api/users/:id     # Get user profile

πŸ“– API Documentation

  • Interactive Docs - Scalar-powered OpenAPI interface
  • Schema Validation - Zod schemas for all requests/responses
  • Type Safety - Full TypeScript integration
  • Authentication - API key-based auth system

⚑ Performance Features

  • Edge Optimized - Runs on Cloudflare Workers/Vercel Edge
  • Serverless - Pay per request, scales to zero
  • Fast Cold Starts - Optimized for edge runtime
  • Caching - Built-in response caching

πŸ”§ Development Features

  • Strict ESLint - Tight rules for code quality
  • Best Practices - Industry-standard patterns
  • Error Handling - Comprehensive error responses
  • Request Logging - Structured logging with Pino

πŸ“ Project Structure

my-hono-api/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ routes/
β”‚   β”‚   β”œβ”€β”€ products.ts     # Product endpoints
β”‚   β”‚   β”œβ”€β”€ api-keys.ts     # API key management
β”‚   β”‚   └── users.ts        # User endpoints
β”‚   β”œβ”€β”€ middleware/         # Authentication & logging
β”‚   β”œβ”€β”€ lib/
β”‚   β”‚   β”œβ”€β”€ db.ts          # Database connection
β”‚   β”‚   β”œβ”€β”€ logger.ts      # Pino logger setup
β”‚   β”‚   └── validation.ts   # Zod schemas
β”‚   └── index.ts           # Application entry
β”œβ”€β”€ prisma/
β”‚   └── schema.prisma      # Database schema
└── vercel.json            # Vercel deployment config

πŸš€ Getting Started

desishub new my-edge-api --template hono
cd my-edge-api
npm run dev

🌐 Deployment

# Deploy to Vercel (zero config)
# Push your code to git and deploy on vercel

πŸ“± Expo React Native App

Cross-platform mobile application with modern navigation and styling.

πŸ› οΈ What's Included

  • Expo SDK - Latest Expo with managed workflow
  • TypeScript - Full type safety for mobile development
  • React Query - Data fetching and state management
  • NativeWind - Tailwind CSS for React Native
  • Expo Icons - Comprehensive icon library
  • Tab Navigation - Beautiful bottom tab navigation

πŸ“± Screens & Navigation

  • Product Listing Screen - Grid/list view of products
  • Product Detail Screen - Detailed product information
  • Dynamic Routes - Parameter-based navigation
  • Tab Navigation - Home, Products, Profile tabs
  • Stack Navigation - Nested navigation structure

⚑ Features

  • Infinite Scroll - Seamless product loading
  • Pull to Refresh - Native refresh functionality
  • Image Optimization - Lazy loading and caching
  • Responsive Design - Adapts to different screen sizes
  • Offline Support - Basic offline functionality with React Query

🎨 UI/UX

  • NativeWind Styling - Tailwind CSS classes for React Native
  • Custom Components - Reusable UI components
  • Loading States - Skeleton screens and spinners
  • Error Handling - User-friendly error messages
  • Animations - Smooth transitions and micro-interactions

πŸ“ Project Structure

my-expo-app/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ screens/
β”‚   β”‚   β”œβ”€β”€ ProductListScreen.tsx
β”‚   β”‚   β”œβ”€β”€ ProductDetailScreen.tsx
β”‚   β”‚   └── HomeScreen.tsx
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ ProductCard.tsx
β”‚   β”‚   β”œβ”€β”€ LoadingSpinner.tsx
β”‚   β”‚   └── ErrorMessage.tsx
β”‚   β”œβ”€β”€ navigation/
β”‚   β”‚   β”œβ”€β”€ TabNavigator.tsx
β”‚   β”‚   └── StackNavigator.tsx
β”‚   β”œβ”€β”€ hooks/
β”‚   β”‚   β”œβ”€β”€ useProducts.ts
β”‚   β”‚   └── useProduct.ts
β”‚   β”œβ”€β”€ services/
β”‚   β”‚   └── api.ts
β”‚   └── types/
β”‚       └── index.ts
β”œβ”€β”€ assets/                 # Images, fonts, icons
└── app.json               # Expo configuration

πŸš€ Getting Started

desishub new my-mobile-app --template expo
cd my-mobile-app
npm run start

πŸ“± Development

# Start development server
npm run start

# Run on iOS simulator
npm run ios

# Run on Android emulator
npm run android

# Run on web
npm run web

πŸ“š Available Scripts

  • npm run start - Start Expo development server
  • npm run ios - Run on iOS simulator
  • npm run android - Run on Android emulator
  • npm run web - Run on web browser
  • npm run build - Build for production
  • npm run lint - Run ESLint

πŸ“¦ Building for Production

# Build for iOS
npx eas build --platform ios

# Build for Android
npx eas build --platform android

# Submit to app stores
npx eas submit

πŸ› οΈ CLI Commands

Create Project

# Interactive mode
desishub new my-project

# Specify template
desishub new my-monorepo --template monorepo        # Full-stack monorepo
desishub new my-api --template nodejs               # Node.js + Express
desishub new my-app --template nextjs               # Next.js 15
desishub new my-edge-api --template hono            # Hono Edge API
desishub new my-mobile-app --template expo          # Expo React Native

List Templates

# Show all available templates
desishub list
# or
desishub ls

Get Help

# General help
desishub --help

# Command-specific help
desishub new --help

Version

# Check CLI version
desishub --version

πŸ”§ Requirements

  • Node.js >= 16.0.0
  • pnpm >= 8.0.0 (recommended for monorepo)
  • npm >= 8.0.0
  • Git (for repository initialization)

Optional Dependencies

  • PostgreSQL (for Prisma-based templates)
  • Vercel CLI (for Hono deployment)
  • Expo CLI (for mobile development)

πŸš€ Development Workflow

1. Install CLI

npm install -g desishub-cli

2. Create Project

# For full-stack development
desishub new my-project --template monorepo

# For specific platform
desishub new my-project --template nextjs

3. Start Development

cd my-project

# Monorepo: Start all apps
pnpm dev

# Single app: Start development server
npm run dev

4. Build & Deploy

# Monorepo: Build all apps
pnpm build

# Single app: Build for production
npm run build

🎯 Template Comparison

| Feature | Monorepo | Node.js | Next.js | Hono | Expo | | --------------------- | -------- | ------- | ------- | ---- | ---- | | Web Frontend | βœ… | ❌ | βœ… | ❌ | ❌ | | API Backend | βœ… | βœ… | βœ… | βœ… | ❌ | | Mobile App | βœ… | ❌ | ❌ | ❌ | βœ… | | Shared Types | βœ… | ❌ | ❌ | ❌ | ❌ | | TypeScript | βœ… | βœ… | βœ… | βœ… | βœ… | | Database (Prisma) | βœ… | βœ… | ❌ | βœ… | ❌ | | Authentication | βœ… | ❌ | ❌ | βœ… | ❌ | | OpenAPI Docs | βœ… | ❌ | ❌ | βœ… | ❌ | | Edge Deployment | βœ… | ❌ | ❌ | βœ… | ❌ | | Monorepo Build | βœ… | ❌ | ❌ | ❌ | ❌ |


🀝 Contributing

We welcome contributions! Here's how you can help:

Adding New Templates

  1. Fork the repository
  2. Create a new template repository
  3. Add template configuration to index.js
  4. Update documentation
  5. Submit a pull request

Reporting Issues

  • Use GitHub Issues for bug reports
  • Provide minimal reproduction steps
  • Include CLI version and environment details

Feature Requests

  • Open a GitHub Discussion
  • Describe the use case and expected behavior
  • Community feedback helps prioritize features

πŸ“‹ Roadmap

v2.2 (Current Release)

  • [x] Full-Stack Monorepo template
  • [x] Shared types across all apps
  • [x] Turborepo integration
  • [x] Enhanced mobile app features

v2.3 (Next Release)

  • [ ] Laravel template
  • [ ] Django template
  • [ ] VS Code extension
  • [ ] Template customization options

v2.4 (Future)

  • [ ] Clerk authentication integration
  • [ ] Database seeding utilities
  • [ ] CI/CD pipeline templates
  • [ ] Docker integration

v3.0 (Long-term)

  • [ ] GUI interface
  • [ ] Template marketplace
  • [ ] Team collaboration features
  • [ ] Enterprise features

πŸ› Troubleshooting

Common Issues

CLI command not found

# Reinstall globally
npm uninstall -g desishub-cli
npm install -g desishub-cli

Permission errors

# On macOS/Linux
sudo npm install -g desishub-cli

# Or use npx
npx desishub-cli new my-project

Monorepo pnpm issues

# Install pnpm globally
npm install -g pnpm

# Clear pnpm cache
pnpm store prune

Git clone failures

  • Check internet connection
  • Verify GitHub access
  • Try again with VPN if behind firewall

Dependency installation fails

  • Clear npm cache: npm cache clean --force
  • Clear pnpm cache: pnpm store prune
  • Check Node.js version compatibility

Monorepo Specific Issues

Types not found across apps

# Rebuild types package
pnpm build --filter=@repo/types

# Restart TypeScript server in your IDE

Turborepo cache issues

# Clear turbo cache
pnpm turbo clean

# Force rebuild
pnpm build --force

πŸ“ž Support


πŸ“„ License

MIT License - see LICENSE file for details.


πŸ™ Acknowledgments

  • Turborepo team for the excellent monorepo tooling
  • Next.js team for the amazing framework
  • Hono.js team for the fast edge framework
  • Expo team for mobile development tools
  • Prisma team for the excellent ORM
  • All contributors who help improve this project

Built with ❀️ by JB WEB DEVELOPER

⭐ Star on GitHub β€’ 🐦 Follow on Twitter β€’ πŸ’Ό Connect on LinkedIn

Happy coding! πŸš€