Public
Like
deleteLater
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.
Viewing readonly version of main branch: v10View latest version
This Val Town project generates fake but plausible vinyl record releases with a single click. Each generated release includes:
- Artist name
- Album title
- Genre tags (3-5 tags)
- Release year (between 1955 and 2023)
- Record label
- A brief but interesting backstory about the album
/vinyl-generator-api.ts- HTTP endpoint that uses OpenAI to generate fake vinyl releases/vinyl-generator-ui.ts- Frontend interface with a button to trigger generation
- When the "Generate Vinyl Release" button is clicked, the UI makes a request to the API
- The API uses OpenAI to generate a plausible vinyl release with all required information
- If OpenAI is unavailable, the API falls back to a set of pre-defined vinyl releases
- The generated data is returned to the UI and displayed in a visually appealing format
The application includes robust error handling:
- Fallback data if OpenAI API is unavailable
- Detailed error messages displayed to the user
- Retry functionality for failed requests
- OpenAI API for generating the vinyl release data
- Twind (Tailwind CSS in JS) for styling
- Vanilla JavaScript for the frontend functionality
Simply visit the UI endpoint and click the "Generate Vinyl Release" button to get a new vinyl release.
UI URL: https://vinyl-generator-ui.web.val.run API URL: https://vinyl-generator-api.web.val.run