FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
charmaine
charmaineGlancer_Test
Remix of glance/Glimpse
Public
Like
Glancer_Test
Home
Code
9
.vscode
1
backend
4
frontend
6
shared
1
.cursorrules
.vtignore
INSTRUCTIONS.md
README.md
deno.json
Branches
1
Pull requests
Remixes
History
Environment variables
5
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Sign up now
Code
/
backend
/
routes
/
api
/
README.md
Code
/
backend
/
routes
/
api
/
README.md
Search
6/18/2025
README.md

/api

This directory holds the endpoints that serve JSON for the /demo, and a few other endpoints that handle POSTS and GETs from the /frontend.

Conventions

As with other directories in /routes, the convention in this directory is that the file in the directory that has same name as the directory handles routing in this directory; i.e., /api/api.ts handles routing that directs a request from /api/cobrowse to the file that does the work: /api/cobrowse.ts.

(If you're wondering why the file that handles routing in this directory isn't an index.ts file... Glad you asked! The reason is that when you have a bunch of files open in your IDE called index.ts, it's impossible to know without clicking in to each file which one is which. Similar issue with debugging server logs.)

Get started with a template:
stevekrouse/markdownBlogStarter
Starter template for a markdown blog
std/reactHonoStarter
Starter template with client-side React & Hono server
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.