Public
Like
1
promptfixer
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
A service for helping users improve their AI prompts by collecting feedback and issues, then delivering enhanced prompts.
PromptFixer offers two ways for users to submit their prompt fixing requests:
- Web Form - Users can fill out a form with their existing prompt, expected outcome, and why they think it's not working.
- Email Submission - Users can email their prompt details, which are automatically parsed using Gemini AI.
All submissions are stored in a SQLite database and can be accessed through an admin panel where administrators can:
- View all prompt requests
- Create improved versions of user prompts
- Send the fixed prompts back to users via email
backend/
- Server-side codeindex.ts
- Main API server (Hono)database.ts
- SQLite database operationsemail-service.ts
- Email processing and sendingemail-handler.ts
- Email endpoint handler
frontend/
- Client-side codeindex.html
- Public submission formadmin.html
- Admin dashboard
shared/
- Common types and utilitiestypes.ts
- TypeScript interfaces and types
- Public HTML Form that collects:
- Email address
- Existing prompt
- Expected outcome
- Issue description
- Email Processing
- Extracts prompt information from emails
- Sends clarification emails when information is missing
- Admin Panel
- Secure login system
- View all submitted requests
- Create and send improved prompts to users
- SQLite Database for data storage
- Email Notifications
- To admins when new requests arrive
- To users when their improved prompt is ready
GET /api/health
- Health check endpointPOST /api/submit-form
- Submit a prompt request via web formPOST /api/process-email
- Process email submissionPOST /api/admin/login
- Admin authenticationGET /api/admin/requests
- Get all prompt requestsGET /api/admin/requests/:id
- Get a specific prompt requestPOST /api/admin/requests/:id/update
- Update a prompt with a fix and notify user
- Val Town Platform
- Hono (API framework)
- SQLite (database)
- OpenAI (for email processing)
- TailwindCSS (styling)
- JWT (authentication)