FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
charmaine
charmainefiberplaneHonoZodStarter
Remix of fiberplane/fiberplaneHonoZodStarter
Public
Like
fiberplaneHonoZodStarter
Home
Code
7
protected
1
routes
5
README.md
S
helpers.ts
H
index.ts
S
schema.ts
S
types.ts
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 miliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
3/13/2025
README.md

Example Hono-Zod-OpenAPI app with a Fiberplane API explorer.

For an example with regular-old Hono, see: https://www.val.town/v/fiberplane/fiberplaneHonoStarter

  1. Import @fiberplane/hono
Create val
import { createFiberplane } from "https://esm.sh/@fiberplane/hono@0.4.4";
  1. Expose your OpenAPI spec
Create val
app.doc("/doc", { openapi: "3.0.0", info: { title: "User Management API", version: "v1.0.0", }, });
  1. Mount the api explorer

This will mount it at the root /*, but you can mount it to another route, like /fp/* if you are using / for your main app. We recommend / if your Hono app is an API without a frontend.

Create val
app.use( "/*", createFiberplane({ openapi: { url: "/doc" }, }), );
  1. Visit your Val's root route to play with the API explorer!

How it Works

createFiberplane mounts Fiberpalne at the root route (/), which can be used to explore the api's routes and make requests. Think of it like an embedded, lightweight postman.

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.