Enterprise-grade microservices backend with 50+ API endpoints, real-time WebSocket communication, AWS DynamoDB, video/image/PDF processing, JWT authentication, payment integration, and comprehensive API usage tracking
NebulaAPI Backend is an enterprise-grade microservices platform built with NestJS 11 and TypeScript 5.7, serving as the backbone for a comprehensive API gateway. The system handles 50+ API endpoints across 4 microservices (api-gateway, nebulaapi, converters, features) with AWS DynamoDB for data persistence, Socket.io for real-time communication, and integration with AWS S3, Cashfree, FFmpeg, Puppeteer, and OpenCV4.
Key features include JWT authentication with refresh tokens, subscription management with 30-day billing cycles, video compression with FFmpeg optimization, PDF conversion APIs (HTML/Word/Images), image processing with OpenCV4 Python integration, real-time chat and notifications via WebSocket, API usage tracking with daily/monthly aggregation, and comprehensive file upload handling with plan-based limits. Deployed on AWS with 99.99% uptime.
Building scalable microservices architecture with NestJS handling 50+ API endpoints
Implementing real-time bidirectional WebSocket communication with Socket.io for chat and notifications
Designing NoSQL database schema with AWS DynamoDB for 6+ tables with composite keys
Integrating multiple third-party services: AWS S3, Cashfree, Nodemailer, Puppeteer, FFmpeg
Building video compression API with FFmpeg optimization (CRF 18-28, resolution-based logic)
Implementing JWT authentication with 15-minute token expiry and automatic refresh mechanism
Creating subscription management with 30-day billing cycles and proration logic
Developing image processing APIs with OpenCV4 Python integration via child processes
Implementing comprehensive API usage tracking across all endpoints with daily/monthly aggregation
Building PDF conversion APIs (HTML-to-PDF, Word-to-PDF, PDF-to-Images) with Puppeteer and Ghostscript
Implemented modular monorepo with 4 microservices (api-gateway, nebulaapi, converters, features) using NestJS 11. Each service has independent modules, controllers, and services with shared common library for cross-cutting concerns.
Designed schemaless database with 6 tables (Users, Reviews, Chats, Documents, PushNotifications, UploadedFiles) using composite keys (provider#email) and pay-per-request billing. Implemented BaseDynamoDBService for CRUD operations.
Built WebSocket gateway with @nestjs/platform-socket.io for bidirectional communication. Implemented room-based messaging, connection tracking, and automatic reconnection with fallback to polling.
Implemented secure authentication with 15-minute access tokens and 7-day refresh tokens. Built ApiAuthGuard middleware for route protection and automatic token validation with 10-minute intervals.
This project demonstrates expertise in building production-ready microservices architecture with NestJS, implementing complex business logic for subscription management, integrating multiple third-party services (AWS, Cashfree, FFmpeg, Puppeteer, OpenCV), and maintaining high code quality with TypeScript strict mode. Key achievements include handling 50+ API endpoints, real-time WebSocket communication, video/image/PDF processing pipelines, and comprehensive API usage tracking.
NestJS, TypeScript, AWS DynamoDB, Socket.io, FFmpeg, Puppeteer, OpenCV4, JWT, Bcrypt
Microservices, Clean Architecture, Guards, Decorators, Error Handling, Security
System Design, API Design, Documentation, Performance Optimization