Backend

The backend is built with Hono and handles:

  • Static file serving for the frontend
  • API routing for GPT wrapper functionality
  • Dynamic importing of external Val Town modules

Key Files

  • index.ts - Main entry point with Hono app setup
  • routes/serveGptWrapper.tsx - GPT wrapper API endpoint

API Design

The backend follows RESTful principles and includes proper error handling with full stack traces for debugging.