FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
stevekrouse

stevekrouse

reactHonoExample

Example with client-side React & Hono server
Public
Like
5
reactHonoExample
Home
Code
4
backend
2
frontend
5
shared
1
README.md
Branches
3
Pull requests
Remixes
21
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
2/25/2025
Viewing readonly version of main branch: v127
View latest version
README.md

React Hono Val Town Project Starter Template

This is a starter template for a full-stack app in a Val Town Project. The app itself is a simple persistent message board.

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

Backend

Hono

In this template, the backend uses Hono as the a server application framework. You can think of Hono as a replacement for ExpressJS that works in serverless environments like Val Town or Cloudflare Workers. If you come from Python or Ruby, Hono is also a lot like Flask or Sinatra, respectively.

SQLite

This app uses Val Town SQLite to manage data. Every Val Town account comes with a free SQLite database, hosted on Turso. In backend/database/migrations.ts, this app creates a new SQLite table reactHonoStarter_messages to store messages. This "migration" runs once on every app startup because it's imported in index.ts. You can comment this line out for a slight performance improvement on cold starts. It's left in so that users who fork this project will have the migration run correctly.

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.