• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
w3b

w3b

untitled-1234

Public
Like
untitled-1234
Home
Code
3
README.md
H
index.ts
H
new-file-1360.tsx
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
/
Code
/
Search
https://w3b--df349e16358811f0b6d69e149126039e.web.val.run
README.md

Val Town Documentation Scraper

This Val Town project scrapes the content from the Val Town documentation website and displays it as markdown.

Features

  • Crawls all documentation pages from docs.val.town
  • Converts HTML content to Markdown format
  • Provides a combined view of all documentation
  • Allows downloading the entire documentation as Markdown
  • Supports viewing individual pages

How to Use

View All Documentation

  1. Access the main endpoint without parameters to view all documentation pages combined
  2. The crawler will fetch up to 100 pages and combine them into a single document

View a Specific Page

  1. Use the path query parameter to view a specific documentation page
    • Example: ?path=/getting-started

Download as Markdown

  1. Add the format=markdown query parameter to download the content as raw markdown
    • Example: ?format=markdown or ?path=/getting-started&format=markdown

Implementation Details

  • Uses a custom HTML to Markdown converter
  • Implements a crawler to visit all documentation pages
  • Extracts main content from each page
  • Combines all content into a single document
  • Renders markdown using the marked library

Limitations

  • Limited to crawling 100 pages to avoid timeouts
  • Some formatting might not be perfectly preserved in the markdown conversion
  • Images and other assets are still referenced from the original source
  • The crawler might need adjustments if the structure of the docs.val.town website changes

Future Improvements

  • Add caching to improve performance
  • Implement a search functionality
  • Add a table of contents for easier navigation
  • Support for dark mode
  • Improve markdown conversion accuracy
HTTP
  • index.ts
    w3b--df…9e.web.val.run
  • new-file-1360.tsx
    w3b--7c…9e.web.val.run
Code
README.md
H
index.ts
H
new-file-1360.tsx
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.