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

fiberplane

fiberplaneHonoZodStarter

Hono-Zod-OpenAPI with Fiberplane API Playground integration
Public
Like
2
fiberplaneHonoZodStarter
Home
Code
7
protected
1
routes
5
README.md
helpers.ts
H
index.ts
schema.ts
types.ts
Branches
1
Pull requests
Remixes
6
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
index.ts
https://fiberplane--985e32f4f5a511ef9a6c569c3dd06744.web.val.run
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.

HTTP
  • index.ts
    fiberplane--98…44.web.val.run
Code
protectedroutesREADME.mdhelpers.ts
H
index.ts
schema.tstypes.ts
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.