FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
matt_hallway
matt_hallwayhono-utils
Remix of pomdtr/hono-utils
Public
Like
hono-utils
Home
Code
4
static
2
README.md
H
example.http.ts
mod.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 milliseconds.
Sign up now
Code
/
Code
/
Search
example.http.ts
https://matt_hallway--1a84e73ab6174e33ab92b7e044f0b4d1.web.val.run
README.md

Hono Utils

Serving Static Files

Create val
import { Hono } from "jsr:@hono/hono@4.7.5" import { serveStatic } from "https://esm.town/v/pomdtr/hono-utils/mod.ts" const app = new Hono() app.use("*", serveStatic({ // alway use import.meta.resolve instead of a relative path root: import.meta.resolve("./static") })) export default app.fetch
HTTP
  • example.http.ts
    matt_hallway--1a…d1.web.val.run
Code
staticREADME.md
H
example.http.ts
mod.ts
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesCLIAI agentsCode intelligenceSlack integrationsGTMPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.