devbox: self-hosted URL-shortener SaaS
- Cloudflare Workers
- D1
- Analytics Engine
- GitHub Actions
- Astro
- TypeScript
A URL-shortener SaaS wired end to end, from git push through CI/CD to automated deployment and live monitoring. Built entirely on the Cloudflare stack:
- Workers (API): link creation and 302 redirects
- D1: link storage
- Analytics Engine: records every click event
- Cron Worker: periodic health checks, alerts via Telegram on anomalies
- Pages (Astro): real-time click-monitoring dashboard
- GitHub Actions: lint / typecheck / test on every push, auto-
wrangler deployonly when green
It demonstrates self-hosted SaaS + DevOps + Observability end to end, with deliberate reliability and security design:
- Bearer auth: link creation requires authorization, intentionally not open to the public to prevent abuse (open-redirect / phishing relay)
- Least-privilege tokens: the stats token is Analytics-Read only, separate from the deploy token
- Graceful degradation: the stats endpoint degrades on query timeout instead of stalling the page
- XSS protection: the dashboard renders via DOM APIs, not innerHTML
This link-shortening API is also consumed by my other project, the TW Stock PK tool, wired in through a Cloudflare Service Binding to shorten its share links, so those clicks flow back into this site’s analytics and the two services share one dataset.
More projects ←→
Resume RAG: Ask my resume
- Cloudflare Workers AI
- Vectorize
- bge-m3
- Llama 3.3
- RAG
US & TW Stock PK: multi-stock return comparison
- Cloudflare Workers
- Pages
- D1
- Astro
- TypeScript
Router Firmware CI/CD Pipeline (GitLab)
- GitLab CI/CD
- ISO 26262
- Coverity
- Nessus
- SAST
Autonomous Fleet Monitoring & Remote-Control Platform
- AWS
- MQTT
- ROS
- Autoware
- WebSocket
Roadside Unit (RSU) Intersection Warning System
- Nvidia NX
- YOLO
- AWS KVS
- Lambda
- S3
Autonomous Vehicle HMI (Thailand deployment)
- ROS
- WebSocket
- HMI
- Computer Vision
- Ultrasonic Radar
3D Around View Monitoring + Parking Detection (3D AVM)
- OpenCV
- OpenGL ES
- 3D Reconstruction
- Fisheye Calibration
- C++