Node.js Express PostgreSQL Snippets (Drizzle ORM) by SKILLHUB
Production-ready snippets for:
- Node.js
- Express.js
- PostgreSQL
- Drizzle ORM
Usage
- Open a file with supported language mode (
javascript, typescript).
- Type a snippet prefix.
- Trigger snippet suggestion and press
Enter (or your editor's snippet accept key).
- Use
Tab to move through placeholders.
JavaScript Shortcuts (snippets/javascript.json)
| Purpose |
Shortcut |
| Node environment configuration |
env |
| Express server setup (CommonJS) |
server |
| PostgreSQL + Drizzle setup (CommonJS) |
pgdb |
| Drizzle config file for JavaScript projects |
dconfig-js |
| JWT auth middleware with role-based protection |
protect |
| Drizzle model schema (CommonJS) |
model |
| Express controller template (CommonJS) |
controller |
| Express routes template (CommonJS) |
route |
| Cloudinary configuration (CommonJS) |
cloud |
| Nodemailer email utility (CommonJS) |
email |
| Multer upload middleware with image/PDF filter |
upload |
| Seed admin script with Drizzle + bcrypt |
seed |
| Reusable email templates (base, OTP, reset, register) |
email-template |
TypeScript Shortcuts (snippets/typescript.json)
| Purpose |
Shortcut |
Node environment configuration with typed process.env values |
env |
| Express server setup |
server |
| PostgreSQL connection setup with Drizzle ORM |
pgdb |
| Drizzle config file for TypeScript projects |
dconfig-ts |
| JWT auth middleware with role-based protection |
protect |
| Drizzle model schema with inferred TypeScript types |
model |
| Typed Express controller function template |
controller |
| Express routes template |
route |
| Cloudinary configuration |
cloud |
| Nodemailer email utility |
email |
| Multer upload middleware with image/PDF filter |
upload |
| Seed admin script with Drizzle + bcrypt |
seed |
| Reusable email templates (base, OTP, reset, register) |
email-template |
| |