How shalinbtw/portfolio works
This is a personal writing site: visitors browse a post index, open articles, or submit a contact message. The React application selects pages and renders article content from a local post collection; its contact form sends to a Cloudflare Worker, which validates and rate-limits submissions before emailing them. The README documents static asset hosting and SPA fallback alongside the API Worker. Relationships for the browser-to-Worker request and contact handling are visible in source; hosting behavior is documented in the README.
Main entry points: App.tsx Page routing and layouts · index.ts Contact API validation · main.tsx React entry point · ContactForm.tsx Contact form states
Components 11
Writing site
- Page routing and layouts
src/App.tsx - React entry point
src/main.tsx - Editorial styles
src/App.css - Global typography
src/index.css
Post content
- Post content and metadata
src/posts.ts
Contact delivery
- Contact form states
src/components/ContactForm.tsx - Contact API validation
worker/index.ts - Contact rate limiter
- Cloudflare Email Routing
Cloudflare hosting
- Static assets and SPA fallback
wrangler.jsonc
Other components
- Site visitor
Connections 10
- Site visitor → Static assets and SPA fallback: requests pages
README.md - Static assets and SPA fallback → Page routing and layouts: serves app
README.md - React entry point → Page routing and layouts: renders
src/main.tsx - React entry point → Global typography: loads styles
src/main.tsx - Page routing and layouts → Post content and metadata: reads posts
src/App.tsx - Page routing and layouts → Contact form states: renders form
src/App.tsx - Page routing and layouts → Editorial styles: loads styles
src/App.tsx - Contact form states → Contact API validation: posts submission
src/components/ContactForm.tsx - Contact API validation → Contact rate limiter: checks limit
worker/index.ts - Contact API validation → Cloudflare Email Routing: sends message
worker/index.ts