@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";Functions
Section titled “Functions”| Name | Summary |
|---|---|
linksPanel |
Create a Bun-ready panel handler (fetch + core + openapi). |
linksRedirect |
Create a redirect handler for Bun.serve, falling through to fallback. |
Interfaces
Section titled “Interfaces”| Name | Summary |
|---|---|
BunLinksRedirect |
The Bun redirect handler. |
Type aliases
Section titled “Type aliases”| Name | Summary |
|---|---|
BunLinksRedirectOptions |
Options for linksRedirect. |
BunServerLike |
What Bun.serve passes as the second fetch argument (kept structural: no bun types needed). |
Re-exports
Section titled “Re-exports”| Name | Documented on |
|---|---|
CreateFetchHandlerResult |
@xtandard/links |
LinksPanelOptions |
@xtandard/links |