Introduction to Devark
Devark is a backend scaffolding CLI tool that brings the modular, “add what you need” philosophy of shadcn/ui to backend development. Instead of starting from scratch or committing to a heavy framework, Devark lets you add production-ready features to your existing Node.js projects with a single command.What is Devark?
Devark is a CLI tool that scaffolds modern backend features instantly with modular, production-ready templates. It supports both JavaScript and TypeScript, automatically detects your package manager, and integrates seamlessly into existing projects.Why Devark?
Building backend features from scratch is time-consuming and error-prone. Whether it’s OAuth flows, email verification, or database setup, you end up writing the same boilerplate code for every new project. Devark solves this by:- Modular approach - Add only the features you need, when you need them
- Production-ready code - Battle-tested templates that follow best practices
- Framework agnostic - Works with your existing Express.js projects
- Language flexible - Full support for both JavaScript and TypeScript
- Smart detection - Automatically detects your package manager (npm, pnpm, yarn)
- Zero configuration - Sensible defaults with options to customize
Key Features
OAuth Modules
Add Google or GitHub OAuth authentication with passport.js integration
Email OTP
Resend-based email verification with stateless HMAC security
Project Templates
Scaffold complete Node.js projects with MongoDB or PostgreSQL
TypeScript Support
Choose JavaScript or TypeScript for any module
Available Modules
Authentication & Authorization
- Google OAuth - Complete OAuth 2.0 flow with passport-google-oauth20
- GitHub OAuth - GitHub authentication with passport integration
- Resend OTP - Email-based OTP verification using Resend API
Project Templates
- Node + MongoDB - Express.js backend with MongoDB integration
- Node + PostgreSQL - Express.js backend with PostgreSQL setup
Coming Soon
- AWS S3 Uploads
- Payment Integrations (Stripe)
- React Starter Templates
How It Works
Devark follows a simple, predictable workflow:
All code is generated locally in your project, giving you full control to customize and extend as needed.
Example: Adding Google OAuth
Here’s what happens when you rundevark add google-oauth:
- Prompt you to choose JavaScript or TypeScript
- Ask for your Google OAuth credentials (or use placeholders)
- Install dependencies:
passport,passport-google-oauth20,express-session - Generate authentication routes and Passport configuration
- Update your
app.jswith OAuth middleware - Add environment variables to
.env
All generated code is placed in standard directories (
routes/, config/, controllers/) making it easy to find and modify.Philosophy
Devark is designed to be:- Transparent - All code is generated in your project, no black boxes
- Flexible - Templates are starting points, customize freely
- Minimal - Only adds what you explicitly request
- Standard - Follows Node.js best practices and common patterns
Next Steps
Installation
Get started by installing Devark globally or in your project
Quickstart
Follow a step-by-step tutorial to add your first feature

