How anxfairytale/linkforge works
AWS URL Shortener is a serverless web application: a user submits a destination in the static browser app, the API creates a short code, and opening that link redirects to the destination while recording a click. The browser can also retrieve link statistics and refresh them. The README documents S3 hosting, API Gateway, Lambda, and DynamoDB; the sampled handler and frontend establish the request and storage behavior. Deployment and test tooling are omitted. Template wiring and unsampled documentation details are not independently verified here.
Main entry points: app.js Shortener UI · app.py Route handler · config.js API config
Components 14
Browser app
- Shortener UI
frontend/app.js - API config
frontend/config.js
API handling
- Route handler
backend/app.py - Create short link
backend/app.py - URL validation
backend/app.py - Code allocation
backend/app.py - Redirect handler
backend/app.py - Stats handler
backend/app.py - Health route
backend/app.py
Link data
- Link mappings
AWS services
- HTTP API
- Static website
- Optional HTTPS
Other components
- Visitor
Connections 18
- Visitor → Static website: loads site
README.md - Static website → Shortener UI: serves assets
README.md - Shortener UI → API config: reads config
frontend/app.js - Shortener UI → HTTP API: calls API
README.md - HTTP API → Route handler: invokes
README.md - Route handler → Create short link: routes to
backend/app.py - Create short link → URL validation: validates URL
backend/app.py - Create short link → Code allocation: allocates code
backend/app.py - Create short link → Link mappings: conditional write
backend/app.py - Route handler → Redirect handler: routes to
backend/app.py - Redirect handler → Link mappings: reads and increments
backend/app.py - Redirect handler → Visitor: returns 302
README.md - Route handler → Stats handler: routes to
backend/app.py - Stats handler → Link mappings: reads mapping
backend/app.py - Shortener UI → Stats handler: requests stats
frontend/app.js - Route handler → Health route: routes to
backend/app.py - Shortener UI → HTTP API: shortens and refreshes
frontend/app.js - Optional HTTPS → Static website: private origin
README.md