devark
v1.2.1
Published
CLI tool to scaffold backend features like authentications, authorizations, and more.
Maintainers
Readme
Devark — The Backend Scaffolding CLI
Like shadcn/ui, but for backend development.
Scaffold modern backend features instantly with modular, production-ready templates in JavaScript or TypeScript.
Features
Feature Modules
- Google OAuth (JS + TS)
- GitHub OAuth (JS + TS)
- Resend Email OTP (JS + TS)
Project Templates
- Node + MongoDB template
- Node + PostgreSQL template
Coming Soon
- React Starter Templates
- AWS S3 Uploads
- Payment Integrations (Stripe)
Installation
pnpm install devarkDevark itself uses pnpm for dependency management.
🔗 Global Linking (for Local Development)
pnpm link --globalNow you can use the CLI anywhere:
devark add google-oauthUsage Examples (for dev)
Add Google OAuth
devark add google-oauthAdd GitHub OAuth
devark add github-oauthAdd Resend Email OTP
devark add resend-otpCreate a Node.js + MongoDB Backend
devark create node-mongoCreate a Node.js + PostgreSQL Backend
devark create node-postgresProject Structure
devark/
│── documentation/
├── src/
│ ├── bin/ # CLI entry point (executables)
│ │ └── devark.js
│ ├── modules/ # Feature modules (pluggable)
│ │ ├── google-oauth/
│ │ │ ├── templates/
│ │ │ │ ├── javascript/
│ │ │ │ ├── typescript/
│ │ │ ├── install.js
│ │ │ └── utils/
│ │ ├── github-oauth/
│ │ ├── resend-otp/
│ │ ├── node-mongodb-template/
│ │ └── node-postgres-template/
│ │
│ ├── utils/ # Shared helpers
│ │ ├── filePaths.js
│ │ ├── injectEnvVars.js
│ │ ├── moduleUtils.js
│ │ ├── logo.js
│ │ └── PackageManager.js
├── package.json
├── README.md
├── LICENSE
└── .gitignore
Development
Clone and install dependencies:
Fork this Repo:
git clone https://github.com/username/Devark.git
cd Devark
pnpm installTech Stack
- Language: JavaScript
- Package Manager: pnpm
- CLI Framework: Commander.js + Inquirer.js
- Templating: EJS
Contributing
Contributions are welcome!
If you'd like to add new modules or fix bugs:
