• Townie
    AI
  • Blog
  • Docs
  • Pricing
Log inSign up
vtTestLocal

vtTestLocal

a8b48747537_

Public
Like
a8b48747537_
Home
Code
32
dailyBriefing
3
dashboard
4
dbUtils
4
importers
5
shared
1
.cursorrules
README.md
backstory.ts
file0-ff16522a-ef01-4704-92e2-c7c4b3a58a78.txt
file1-6d86a22b-adf1-44b7-ab32-2f108e3533d6.txt
file10-c1f3a535-4716-49a6-8e59-7dbc46c8d847.txt
file11-c9ed8182-11c4-4585-bc06-7267745027f6.txt
file12-dcac3b57-aa43-481a-b4e9-90bd767b425b.txt
file13-3d080379-8ef9-4085-ac29-03234c6f5bdc.txt
file14-bbcf5104-5169-49f2-8e74-070fe18196fb.txt
file15-7b3f991a-2b5d-4699-beab-842031ea1f8a.txt
file16-565de4f7-174f-41d4-8e43-7828c0b42ce5.txt
file17-421a8a0d-5b2e-4f0e-8a23-7826088d42d2.txt
file18-1534a541-5f95-44c2-8ca0-1cc581b56e67.txt
file19-5abbff7e-1a4f-4a57-9942-103988917714.txt
file2-78563ff5-2c21-4862-829e-e527d00b65ed.txt
file20-0a10269a-e220-4bda-8ef2-5692edb6d5de.txt
file21-29320260-5171-4f31-a1f6-4b29d617f324.txt
file3-06cd3555-dd80-44b4-abf9-2947c0fd59c0.txt
file4-0e073133-7bd8-48c0-8c1d-d1b68c642c9c.txt
file5-151d31e1-2629-4ecf-b752-d405c188ed12.txt
file6-ffacf80d-7a26-4dbd-92bc-4da3cf9c21fc.txt
file7-6d65e70e-bac1-41b9-be8d-d886ad0a8847.txt
file8-4493f3c5-6b30-4425-b2dc-b67a72073e4d.txt
file9-11aadbb4-7f7b-4ec2-8dd0-561d9b23a71e.txt
memoryUtils.ts
populateDemo.ts
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
/
dashboard
/
frontend
/
README.md
Code
/
dashboard
/
frontend
/
README.md
Search
5/12/2025
Viewing readonly version of main branch: v71
View latest version
README.md

Frontend

This template is a classic client-side-only React app.

index.html

The entrypoint for the frontend is /frontend/index.html. This is the HTML page that is returned at the root from /backend/index.ts.

This HTML file imports /frontend/style.css from /public/style.css and /frontend/favicon.svg from /frontend/favicon.svg. Everything in /frontend/ is mapped to /public by /backend/index.ts. This is just a convention. You could import & serve everything out of the same folder name.

This HTML file has a <div id="root"></div>, which is where we mount the React app.

This HTML file imports /frontend/index.tsx from /public/index.tsx, which is the entrypoint for all frontend JavaScript, including all the React. It is not a problem that it imports a file with a .tsx extension becaues browsers ignore file extensions. They only pay attention to content-types, which is great, because all these files will be returned as transpiled JS with the appropriate JS content type by stevekrouse/utils/serve-public.)

index.tsx

This file is the entrypoint for frontend JavaScript. It imports the React app from /frontend/components/App.tsx and mounts it on <div id="root"></div>.

It also looks for bootstrapped JSON data at window.__INITIAL_DATA, and passes that only to the <App />.

favicon.svg

As of this writing Val Town only supports text files, which is why the favicon is an SVG and not an .ico or any other binary image format. If you need binary file storage, check out Blob Storage.

components/

This directory is where the React components are stored. They're pretty standard client-side React components.

FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.