Shubham Kumar's Work | ContraWork by Shubham Kumar
Shubham Kumar

Shubham Kumar

Full-stack developer specializing in web apps & cloud devs

Cover image for I built and deployed MindCradle
I built and deployed MindCradle (https://mindcradle.online), a mental wellness and mood journaling platform that connects daily check-ins and reflections over time instead of treating each session in isolation. What I built and owned: Built the frontend SPA with React 19, Vite, TypeScript, and Tailwind CSS, plus a headless prerender.py (https://prerender.py) script that generates static HTML for public marketing, docs, and blog routes so search engines index them cleanly. Built the Python 3.11 / FastAPI backend with 30 sequential SQL migrations on Supabase PostgreSQL + pgvector, combining keyword search with 1536-dimensional embeddings for hybrid semantic search over past journal entries. Implemented Just-In-Time (JIT) identity sync that verifies Amazon Cognito RS256 JWTs and ALB x-amzn-oidc-data headers, syncing user records atomically into user_profiles with HttpOnly, SameSite=Strict refresh cookies. Configured multi-AZ AWS infrastructure in us-east-1: Route 53 DNS, ACM TLS 1.3, Application Load Balancer (port 80 to 443 redirect, Cognito integration), and an EC2 host locked down to accept traffic only from the ALB security group on port 8080. Built the GitHub Actions CI/CD pipeline (ci.yml + build.yml) running Ruff, Pytest, Gitleaks secret checks, Trivy image vulnerability scans, Docker Hub builds, SSH rolling restarts on EC2, and a 15-retry /api/health verification gate. Set up production observability using amazon-cloudwatch-agent (host RAM/disk metrics + Docker container logs), a 5-minute Synthetics Canary, 5 CloudWatch alarms (unhealthy hosts, 5XX spikes, memory >85%, disk >85%, EC2 status), and Amazon SNS alerts.
2
1
42
Cover image for I built and deployed AIToolsFinder.cloud
I built and deployed AIToolsFinder.cloud (https://AIToolsFinder.cloud) (https://aitoolsfinder.cloud), a directory and comparison platform that indexes 1,641 AI and B2B SaaS tools across 40 categories and 105 tags. What I built and owned: Built the frontend with Next.js 15 (App Router), React 19, TypeScript, and Tailwind CSS, including category/pricing filters, a side-by-side tool comparison view, an Explorer page (/explore), and an AI Finder (/ai-finder) powered by OpenRouter. Built the backend with Python, FastAPI, SQLAlchemy 2.0 (asyncpg), and PostgreSQL 16, exposing versioned REST APIs (/api/v1/*) with rate limiting, Cognito authentication, vendor claim workflows, and a 4-dimension weighted scoring model. Set up Docker Compose, Nginx reverse proxy with Cloudflare TLS, and GitHub Actions CI/CD to build and deploy images to AWS EC2. Added technical SEO from day one: dynamic XML sitemaps, JSON-LD SoftwareApplication schema, robots.txt rules, and OpenGraph image routes. Hard bugs I debugged in production: Fixed an Nginx routing conflict where /api/ sent Next.js App Router endpoints (/api/home-tools, /api/logo, /api/explore-tools) to FastAPI (404). Isolated backend traffic to /api/v1/ in Nginx and Next.js rewrites, and recreated the bind-mounted Nginx container on EC2 so it picked up the new file inode. Fixed the catalog fallback logic and bundled the 1,641-tool JSONL dataset into the frontend Docker build so category filters (Sales, Analytics, Design, Automation, HR, Security) always return results instead of falling back to an empty unseeded database, while hiding any empty category buttons. Trade-off / what I would do differently: Bundling the 1.36 MB catalog JSONL in the frontend image keeps filtered browsing resilient when the database is empty, though long-term I would move that entirely to a seeded PostgreSQL instance and remove the host Nginx file bind-mount in favor of baking TLS/proxy config cleanly into CI/CD.
0
9