URL Shortener with iCal Generation

A URL shortener service that creates short links and generates iCal calendar files from web page events using GPT-4.

Features

  • Web Interface: User-friendly frontend for creating and managing short links
  • Create short links for any URL
  • View shortlink status and analytics
  • Generate iCal calendar files from web page content using GPT-4
  • SQLite database with Drizzle ORM for data persistence
  • Caching for improved performance

Web Interface

Visit the main page to access the web interface where you can:

  • Enter URLs to shorten
  • Copy generated short links
  • Access status pages and download calendar files
  • View API documentation

API Endpoints

  • POST /shorten - Create a new short link
  • GET /{shortCode} - Redirect to original URL
  • GET /{shortCode}/status - View shortlink status
  • GET /{shortCode}.ics - Download iCal calendar file
  • GET /api - API documentation (JSON format)

Usage

Web Interface

  1. Visit the main page
  2. Enter a URL in the form
  3. Click "Shorten URL" to create a short link
  4. Use the generated links to access the original URL, view status, or download calendar

API Usage

  1. POST to /shorten with { "url": "your-url-here" }
  2. Use the returned short code to access the link or calendar
  3. Access /{shortCode}.ics to get calendar events from the page

Tech Stack

  • Frontend: HTML, JavaScript, TailwindCSS
  • Backend: Hono for API framework
  • Database: Drizzle ORM with SQLite
  • AI: OpenAI GPT-4 for event extraction
  • Language: TypeScript for type safety