Public
Like
RandomWikiPage
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: v1View latest version
A Val Town application that fetches and displays random pages from the C2 Wiki (https://wiki.c2.com) using their FedWiki endpoint and markup renderer.
- Fetches random pages from C2 Wiki's FedWiki endpoint
- Renders wiki markup using the official C2 markup.js module
- Clean, responsive interface for reading wiki content
- Easy navigation to get new random pages
backend/index.ts- Hono server that serves the frontend and provides API endpointsfrontend/index.html- Main HTML templatefrontend/app.js- Frontend JavaScript for fetching and displaying contentfrontend/style.css- Styling for the application
GET /- Serves the main applicationGET /api/random- Fetches a random wiki page and returns rendered HTML
The application automatically loads a random page on startup. Click "Get Random Page" to fetch a new random page.