twitter-lookup
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v11View latest version
A web application that reveals where shortened URLs actually redirect to.
├── backend/
│ └── index.ts # Hono server with HTTP trigger
├── frontend/
│ └── components/
│ └── Page.tsx # Main React component
├── index.tsx # Original file (no longer used)
└── README.md
- HTTP Trigger: Main entry point for the web application
- Hono Server: Handles GET and POST requests
- Form Processing: Processes URL submissions and fetches redirect information
- Server-Side Rendering: Renders the React component to HTML
- React Component: Main UI component with TypeScript interfaces
- Form Interface: Input form for URL submission
- Results Display: Shows original URL and redirect destination
- Error Handling: Displays error messages when URL fetching fails
- 🔍 Reveals redirect destinations for shortened URLs
- 📱 Responsive design with Tailwind CSS
- ⚡ Server-side rendering for fast initial load
- 🛡️ Error handling for invalid URLs
- 🎨 Clean, modern UI
- Enter a shortened URL (e.g.,
https://t.co/example) - Click "Reveal Redirect"
- View the original URL and its redirect destination
- Framework: Hono for server-side routing
- UI: React with TypeScript
- Styling: Tailwind CSS via Twind
- Rendering: Server-side rendering with React DOM
- HTTP Method: Uses HEAD requests to avoid downloading full content
