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

wolf

FullstackStarter

Starter template with client-side React & Hono server
Public
Like
FullstackStarter
Home
Code
9
backend
3
frontend
4
shared
1
.vtignore
README.md
client.tsx
deno.json
routes.tsx
H
server.tsx
Branches
2
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
/
Code
/
Search
server.tsx
https://wolf--2628be28326a11f0a233569c3dd06744.web.val.run
README.md

Simple Number App with Server-Side Rendering

A minimal example demonstrating:

  • React Router for server-side rendering and client-side hydration
  • Hono RPC for data fetching with a Hono API
  • Simple in-memory number storage

Features

  • Server-Side Rendering: Initial HTML is rendered on the server
  • Client Hydration: App becomes interactive on the client
  • Home Page: Simple landing page with a button to navigate to the Number page
  • Number Page: View and update a number using Hono RPC (honorpc)

Project Structure

  • /routes: Contains all route components and loaders
    • /routes/index.tsx: Root layout and route definitions
    • /routes/home.tsx: Home page component
    • /routes/number.tsx: Number page component with loader
  • /client.tsx: Client-side hydration entry point
  • /server.tsx: Server-side rendering entry point
  • /backend/routes/data.ts: API endpoints for number operations

Implementation Details

  • Uses React Router's StaticRouter for server-side rendering
  • Uses React Router's BrowserRouter for client-side hydration
  • The backend stores a number in memory
  • The frontend uses Hono RPC to fetch and update the number
  • Routes and loaders are co-located in the routes directory
HTTP
  • server.tsx
    wolf--26…44.web.val.run
Code
backendfrontendshared.vtignoreREADME.mdclient.tsxdeno.jsonroutes.tsx
H
server.tsx
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.