FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
wolf
wolfVtStressTestProject
Remix of geoffreylitt/stevensDemo
Public
Like
VtStressTestProject
Home
Code
10
dailyBriefing
3
dashboard
4
dbUtils
4
importers
5
shared
1
.cursorrules
README.md
S
backstory.ts
S
memoryUtils.ts
S
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 miliseconds.
Sign up now
Code
/
dashboard
/
shared
/
README.md
Code
/
dashboard
/
shared
/
README.md
Search
…
README.md

Shared

It's common to have code and types that are needed on both the frontend and the backend. It's important that you write this code in a particularly defensive way because it's limited by what both environments support:

shapes at 25-02-25 11.57.13.png

For example, you cannot use the Deno keyword. For imports, you can't use npm: specifiers, so we reccomend https://esm.sh because it works on the server & client. You can use TypeScript because that is transpiled in /backend/index.ts for the frontend. Most code that works on the frontend tends to work in Deno, because Deno is designed to support "web-standards", but there are definitely edge cases to look out for.

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.