US & TW Stock PK: multi-stock return comparison
- Cloudflare Workers
- Pages
- D1
- Astro
- TypeScript
- Yahoo Finance API
A minimal “Taiwan multi-stock PK” tool: pick 2–5 stocks, a date range and an amount, and instantly see each stock’s total return (dividends included), final value, and the gap versus a baseline (0050 by default). The winner is highlighted, plotted as a dual-axis growth chart (money on the left, return % on the right, hover for any day’s value and %).
Independently deployed on the full Cloudflare stack:
- Pages (Astro): all computation and a hand-rolled SVG growth chart on the client (no charting dependency)
- Worker: proxies the Yahoo Finance chart API (avoids CORS + edge caching), returning dividend/split-adjusted series
- D1: visitor counter (hashed IP, raw IP never stored)
- Stock list generated at build time from public data (code + Chinese-name autocomplete, TWSE & TPEx)
Engineering details: corrects splits Yahoo left unadjusted (Taiwan’s ±10% daily limit makes an anomalous same-day ratio unambiguously a split → the artificial discontinuity is smoothed away, e.g. 0052’s ~7:1 split in 2025-11), fair comparison over the common trading window across all picks, URL-based sharing (comparison state encoded in the URL, and shortened on demand via my other project (devbox’s URL shortener), wired together with a Cloudflare Service Binding, so the short links even show up in devbox’s click analytics), and security (the proxy guards against SSRF and abuse; the token lives only in a Worker secret).
More projects ←→
Resume RAG: Ask my resume
- Cloudflare Workers AI
- Vectorize
- bge-m3
- Llama 3.3
- RAG
devbox: self-hosted URL-shortener SaaS
- Cloudflare Workers
- D1
- Analytics Engine
- GitHub Actions
- Astro
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++