FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
project logo
jxnblkhono-rpc-starter
Minimal Hono RPC starter example
Public
Like
hono-rpc-starter
Home
Code
3
README.md
client.tsx
H
main.tsx
Branches
1
Pull requests
Remixes
1
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
/
Code
/
Search
main.tsx
https://jxnblk--04c964b842db11f0977f76b3cceeab13.web.val.run
README.md

Hono RPC Starter

Minimal Hono RPC starter example

View demo

How it works

The main.tsx module is the main entrypoint and defines all routes for the Hono server. This module exports the AppType type based on the routes for the client.tsx module to use. The server HTML response includes a <script> that imports the client.tsx module.

The client.tsx module imports the AppType type along with hc from hono/client to create the client instance. This module demonstrats fetching all cats from the API, adding a new cat, and refetching the results.

This example DOES NOT include validation. See Hono RPC Zod Starter for an example with validation.

View more starters

HTTP
  • main.tsx
    jxnblk--04…13.web.val.run
Code
README.mdclient.tsx
H
main.tsx
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.