Val Town Public Vals Report

A tool that scrapes all public vals created in the past 30 days, uses GPT-4o mini to summarize what each val does, and presents it as a readable HTTP report feed.

Features

  • Fetches public vals from the past 30 days using Val Town SDK
  • Generates AI summaries of val code using GPT-4o mini
  • Caches results to avoid re-processing
  • Presents results as a clean HTML report
  • Automatically refreshes data periodically

Structure

  • backend/index.ts - Main HTTP endpoint and report generator
  • backend/scraper.ts - Val Town API scraping logic
  • backend/summarizer.ts - GPT-4o mini integration for code summarization
  • frontend/index.html - Report display template
  • shared/types.ts - Shared TypeScript interfaces

Setup

  1. Set up environment variables (if needed for enhanced API access)
  2. The tool will automatically create necessary database tables
  3. Access the report at the HTTP endpoint

Usage

Visit the HTTP endpoint to see the latest report of public vals with AI-generated summaries.