Skip to content

@xtandard/links/bun

Bun adapter: linksPanel() returns the web-standard panel handler for Bun.serve({ fetch }), and linksRedirect() answers short links and falls through to a fallback (your app, or the panel).

import { … } from "@xtandard/links/bun";
Name Summary
linksPanel Create a Bun-ready panel handler (fetch + core + openapi).
linksRedirect Create a redirect handler for Bun.serve, falling through to fallback.
Name Summary
BunLinksRedirect The Bun redirect handler.
Name Summary
BunLinksRedirectOptions Options for linksRedirect.
BunServerLike What Bun.serve passes as the second fetch argument (kept structural: no bun types needed).
Name Documented on
CreateFetchHandlerResult @xtandard/links
LinksPanelOptions @xtandard/links