Public
Like
lightweight
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: v13View latest version
A simple API built with Hono that returns JSON data, including a list of Val Town vals with "lightweight" in the title.
GET /- Returns a JSON response with:- A welcome message, status, and timestamp
- A list of Val Town vals with "lightweight" in the title
- Count of total vals found and lightweight vals found
- Hono - Lightweight, ultrafast web framework
- TypeScript - For type safety and better developer experience
- Val Town API - For fetching val data
This API is deployed on Val Town and can be accessed via HTTP requests.
Example response from the root endpoint:
{ "message": "Hello from Hono API", "status": "success", "timestamp": "2023-07-01T12:34:56.789Z", "valtownfornotion": { "description": "combining val.town and notion" }, "lightweightProjects": [ { "id": "abc123", "name": "My Lightweight Project", "readme": "A lightweight implementation of...", "author": "username" } ], "totalValsFound": 100, "lightweightValsFound": 3 }
To modify this API:
- Edit the
index.tsfile to change the endpoints or response data - Add new routes by using the Hono app instance
- For more complex applications, consider organizing routes in separate files
This application uses the Val Town Search API to find vals. The search is limited to the most recent 100 vals by default.