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

alexwein

gridEdit5x5

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

4x4 Grid Visual Editor

A simple visual editor for creating and managing black and white 4x4 grids. Built with React, Hono, and Val Town.

Features

  • Visual Grid Editor: Click cells to toggle between black and white
  • Text Representation: Automatically generates a textual representation showing black cell indices and white cell count
  • Save Functionality: Save grids to persistent storage (grids can only be saved once)
  • Saved Grids View: Browse all previously saved grids in a read-only format
  • Copy to Clipboard: Easy copying of text representations

Project Structure

This app is broken up into three folders, corresponding to where the code in those folders run:

  • backend/ - runs on Val Town serverless infrastructure in Deno
  • frontend/ - runs in the user's browser
  • shared/ - runs in both the frontend and backend

The entrypoint of this app is backend/index.ts, which is the Hono HTTP server, which serves the HTML, CSS, and JS, which run client-side.

Storage

Uses Val Town's blob storage to persist saved grids. The storage key savedGrids contains an array of all saved grid objects.

You can click into each of those folders to view their respective READMEs.

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