Public
Like
xmp2reshade
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.
This directory contains the Hono-based API server for XMP file conversion.
index.ts- Main Hono application with API endpoints
Serves the main web interface by reading and returning the frontend HTML.
Converts uploaded XMP files to Lightroom configuration format.
Request:
- Content-Type:
multipart/form-data - Body: Form data with
xmpFilefield containing the XMP file
Response:
{ "success": true, "config": "LIGHTROOM_GLOBAL_EXPOSURE=0.000000\n..." }
Error Response:
{ "success": false, "error": "Error message" }
Health check endpoint that returns server status and timestamp.
The backend serves static files from the frontend and shared directories using Val Town's utility functions:
/frontend/*- Frontend assets/shared/*- Shared TypeScript modules
- Validates file uploads (XMP files only)
- Handles parsing errors gracefully
- Returns appropriate HTTP status codes
- Logs errors for debugging