
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
desishub-cli
Advanced tools
🚀 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.
A modern CLI tool for scaffolding production-ready applications
From idea to full-stack application in 2 minutes
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.
# 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
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 |
Complete development ecosystem with Next.js web app, Hono API, Expo mobile app, and shared TypeScript types - all in one repository.
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
# 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
// 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
};
# Create new monorepo
desishub new my-fullstack-app --template monorepo
cd my-fullstack-app
# Install dependencies
pnpm install
# Start all apps
pnpm dev
# 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
Enterprise-grade backend API with modern tooling and best practices.
.env
setup with validationmy-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
desishub new my-api --template nodejs
cd my-api
npm run dev
Complete e-commerce application with frontend, API routes, and admin dashboard.
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
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
desishub new my-store --template nextjs
cd my-store
npm run dev
Ultra-fast serverless API with OpenAPI documentation and best practices.
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
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
desishub new my-edge-api --template hono
cd my-edge-api
npm run dev
# Deploy to Vercel (zero config)
# Push your code to git and deploy on vercel
Cross-platform mobile application with modern navigation and styling.
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
desishub new my-mobile-app --template expo
cd my-mobile-app
npm run start
# 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
npm run start
- Start Expo development servernpm run ios
- Run on iOS simulatornpm run android
- Run on Android emulatornpm run web
- Run on web browsernpm run build
- Build for productionnpm run lint
- Run ESLint# Build for iOS
npx eas build --platform ios
# Build for Android
npx eas build --platform android
# Submit to app stores
npx eas submit
# 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
# Show all available templates
desishub list
# or
desishub ls
# General help
desishub --help
# Command-specific help
desishub new --help
# Check CLI version
desishub --version
npm install -g desishub-cli
# For full-stack development
desishub new my-project --template monorepo
# For specific platform
desishub new my-project --template nextjs
cd my-project
# Monorepo: Start all apps
pnpm dev
# Single app: Start development server
npm run dev
# Monorepo: Build all apps
pnpm build
# Single app: Build for production
npm run build
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 | ✅ | ❌ | ❌ | ❌ | ❌ |
We welcome contributions! Here's how you can help:
index.js
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
Dependency installation fails
npm cache clean --force
pnpm store prune
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
MIT License - see LICENSE file for details.
Built with ❤️ by JB WEB DEVELOPER
⭐ Star on GitHub • 🐦 Follow on Twitter • 💼 Connect on LinkedIn
Happy coding! 🚀
FAQs
🚀 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.
The npm package desishub-cli receives a total of 10 weekly downloads. As such, desishub-cli popularity was classified as not popular.
We found that desishub-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.