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

nbbaier

codesearch

Public
Like
1
codesearch
Home
Code
3
backend
1
shared
1
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
10/18/2025
Viewing readonly version of main branch: v3
View latest version
README.md

Val Town Code Search

A web application for searching through your Val Town vals using the Val Town API.

Features

  • Search through all your vals by name, content, or description
  • Filter by val type (HTTP, cron, email, script)
  • View val details including code content
  • Direct links to edit vals in Val Town
  • Real-time search with debouncing
  • Responsive design with TailwindCSS

Project Structure

├── backend/
│   ├── index.ts             # Main Hono server
│   └── routes/
│       └── api.ts           # Val Town API integration
├── frontend/
│   ├── index.html           # Main HTML template
│   ├── index.tsx            # React frontend entry point
│   └── components/
│       ├── App.tsx          # Main app component
│       ├── SearchBar.tsx    # Search input component
│       ├── ValCard.tsx      # Individual val display
│       └── FilterBar.tsx    # Type filters
└── shared/
    └── types.ts             # Shared TypeScript types

Setup

  1. Set your Val Town API token as an environment variable: VALTOWN_API_TOKEN
  2. The app will be available at the HTTP endpoint

API Endpoints

  • GET / - Serves the main application
  • GET /api/vals - Search vals with query parameters:
    • q - Search query (optional)
    • type - Filter by val type (optional)
    • limit - Number of results (default: 50)
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
© 2026 Val Town, Inc.