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

ewired

RandomWikiPage

Public
Like
RandomWikiPage
Home
Code
3
backend
1
frontend
3
README.md
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
/
README.md
Code
/
README.md
Search
5/23/2025
Viewing readonly version of main branch: v5
View latest version
README.md

C2 Wiki Random Page Viewer

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.

Features

  • 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

Structure

  • backend/index.ts - Hono server that serves the frontend and provides API endpoints
  • frontend/index.html - Main HTML template
  • frontend/app.js - Frontend JavaScript for fetching and displaying content
  • frontend/style.css - Styling for the application

API Endpoints

  • GET / - Serves the main application
  • GET /api/random - Fetches a random wiki page and returns rendered HTML

Usage

The application automatically loads a random page on startup. Click "Get Random Page" to fetch a new random page.

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
© 2025 Val Town, Inc.