Skip to content

@xtandard/links/elysia

Elysia 1.x adapter: linksPanel() to mount the panel as a plain handler, linksElysia(), a typed plugin whose admin routes Eden treaty can see, and linksRedirect(), a plugin answering short links before routing.

import { … } from "@xtandard/links/elysia";
Name Summary
linksElysia Typed Elysia plugin exposing the admin API so the Eden client can call it with full path/method/param typing. Routes are declared for the typed surface; every handler delegates to the shared fetch pipeline (auth, authorization, viewer scoping, error mapping reused). A catch-all also serves the bundled UI. The panel’s core is on plugin.decorator.linksCore.
linksPanel Create a panel handler suitable for Elysia.mount(path, handler).
linksRedirect Plugin answering short links before routing (onRequest); requests that are not short links continue to your routes. handler is the underlying redirect handler (core, close(), …).
Name Summary
ElysiaLinksHandler A web-standard fetch handler with core + openapi() attached.
LinksElysiaOptions Options for linksElysia.
Name Summary
LinksElysiaPlugin The typed plugin linksElysia returns: an Elysia instance whose route table (every admin route with its params and body schema) is what Eden treaty infers from typeof app.
LinksRedirectInput Options or a prebuilt handler (share one with other mounts).
Name Documented on
LinksPanelOptions @xtandard/links