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

alexwein

gridEdit5x5

Remix of stevekrouse/reactHonoExample
Public
Like
1
gridEdit5x5
Home
Code
4
backend
4
frontend
6
shared
2
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
/
shared
/
README.md
Code
/
shared
/
README.md
Search
7/7/2025
README.md

Shared

This folder contains 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 recommend 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.

Grid Types and Utilities

This folder contains:

  • Grid interface: TypeScript type for grid objects
  • GRID_SIZE and TOTAL_CELLS constants
  • gridToText(): Converts grid state to textual representation
  • createEmptyGrid(): Creates a new empty (all white) grid

These utilities are used by both the frontend React components and the backend API handlers.

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.