• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
jjg

jjg

xmp2reshade

Public
Like
xmp2reshade
Home
Code
5
backend
2
frontend
3
shared
2
README.md
test-sample.xmp
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
backend
/
README.md
Code
/
backend
/
README.md
Search
9/22/2025
Viewing readonly version of main branch: v12
View latest version
README.md

Backend - XMP Conversion API

This directory contains the Hono-based API server for XMP file conversion.

Files

  • index.ts - Main Hono application with API endpoints

API Endpoints

GET /

Serves the main web interface by reading and returning the frontend HTML.

POST /api/convert

Converts uploaded XMP files to Lightroom configuration format.

Request:

  • Content-Type: multipart/form-data
  • Body: Form data with xmpFile field containing the XMP file

Response:

{ "success": true, "config": "LIGHTROOM_GLOBAL_EXPOSURE=0.000000\n..." }

Error Response:

{ "success": false, "error": "Error message" }

GET /api/health

Health check endpoint that returns server status and timestamp.

File Serving

The backend serves static files from the frontend and shared directories using Val Town's utility functions:

  • /frontend/* - Frontend assets
  • /shared/* - Shared TypeScript modules

Error Handling

  • Validates file uploads (XMP files only)
  • Handles parsing errors gracefully
  • Returns appropriate HTTP status codes
  • Logs errors for debugging
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2026 Val Town, Inc.