Skip to main content
Home

latest

TypeScript web router designed exclusively for Cloudflare Workers with file-system routing and streaming JSX

This package works with Cloudflare Workers, Node.js, DenoIt is unknown whether this package works with Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
76%
Published
a week ago (0.1.42)
T
action

Action function for non-GET requests (POST, PUT, DELETE, etc.).

I
ctx

Context object passed to loaders, actions, and headers functions.

I
Env

Environment bindings interface. Extend this interface to add your Cloudflare Workers bindings.

f
T
fragment
No documentation available
T
FragmentArgs
No documentation available
T
headers

Headers function to set response headers based on request context and loader data.

T
Html

Html type for streaming HTML content with async generation support.

N
JSX

JSX namespace containing type definitions for JSX elements and attributes.

I
JSX.BaseTag
No documentation available
I
JSX.DataTag
No documentation available
T
JSX.Element
No documentation available
I
JSX.ElementChildrenAttribute
No documentation available
I
JSX.HtmlBrowserButtonTag
No documentation available
I
JSX.HtmlCanvasTag
No documentation available
I
JSX.HtmlDataListTag
No documentation available
I
JSX.HtmlDetailsTag
No documentation available
I
JSX.HtmlDialogTag
No documentation available
I
JSX.HtmlEmbedTag
No documentation available
I
JSX.HtmlFeDisplacementMapTag
No documentation available
I
JSX.HtmlFieldSetTag
No documentation available
I
JSX.HtmlHtmlTag
No documentation available
I
JSX.HtmlLabelTag
No documentation available
I
JSX.HtmlLegendTag
No documentation available
I
JSX.HtmlLITag
No documentation available
I
JSX.HtmlMapTag
No documentation available
I
JSX.HtmlMenuTag
No documentation available
I
JSX.HtmlMetaTag
No documentation available
I
JSX.HtmlMeterTag
No documentation available
I
JSX.HtmlModTag
No documentation available
T
JSX.HtmlNode
No documentation available
I
JSX.HtmlOListTag
No documentation available
I
JSX.HtmlOptgroupTag
No documentation available
I
I
JSX.HtmlOutputTag
No documentation available
I
JSX.HtmlParamTag
No documentation available
I
I
JSX.HtmlProgressTag
No documentation available
I
JSX.HtmlQuoteTag
No documentation available
I
JSX.HtmlSourceTag
No documentation available
I
JSX.HtmlStyleTag
No documentation available
I
JSX.HtmlTableColTag
No documentation available
I
I
JSX.HtmlTableRowTag
No documentation available
I
JSX.HtmlTableSectionTag
No documentation available
I
JSX.HtmlTableTag
No documentation available
I
JSX.HtmlTimeTag
No documentation available
I
JSX.HtmlTrackTag
No documentation available
T
loader

Loader function for GET requests. Fetches data that will be passed to the component.

T
mod

Route module that can export loader, action, default component, and headers.

f
render

Renders an Html value to a string.

T
renderer

Component renderer function that returns JSX.

T
route

Route tuple containing a URLPattern and its associated fragments.

f
Router
No documentation available
T
router

Router interface with a handle method for processing requests.

f
bindContext

Captures the current store and returns a function that runs under it. Useful when scheduling async work that must see the same context.

f
Client

Injects the client runtime as a module script into the page.

f
createContext

Creates a new Context with the given default value.

T
CreatedContext

Context API returned by createContext.

T
Handler

Client handler signature for browser-dispatched events.

T
Ref

A small shared ref container used across hydration boundaries.

f
ref

Creates a new ref with the given initial value.

f
Resolve

Streams resolved Suspense content. Define once near the end of . If a strict CSP is used, supply a nonce so the defining script can run.

f
runWithContextStore

Runs a function with a fresh context storage Map. Use this to isolate a request or render pass.

f
Suspense
No documentation available
f
SuspenseProvider
No documentation available
T
AnimationEvent
No documentation available
T
ClientEvent
No documentation available
I
ClientEventInit
No documentation available
T
ClientEventList
No documentation available
T
ClipboardEvent
No documentation available
T
CompositionEvent
No documentation available
T
DragEvent
No documentation available
v
event

Dynamic registry of event helpers backed by the DOM event map.

T
EventOptions
No documentation available
f
events
No documentation available
T
EventTuple

Tuple representation for a client event binding.

T
FocusEvent
No documentation available
T
FormDataEvent
No documentation available
T
HandlerAssert

Ensures the default export conforms to the expected handler signature.

T
HandlerModule

Branded string representing a lazily loaded client handler module. The brand carries the handler type so event helpers can preserve this and event payload inference.

T
HandlerReference

Reference to a client handler, optionally rewritten by bundlers to a module URL.

T
InputEvent
No documentation available
T
KeyboardEvent
No documentation available
T
MouseEvent
No documentation available
T
PointerEvent
No documentation available
T
SubmitEvent
No documentation available
T
TargetedEvent
No documentation available
T
ToggleEvent
No documentation available
T
TouchEvent
No documentation available
T
TransitionEvent
No documentation available
T
UIEvent
No documentation available
T
WheelEvent
No documentation available
f
generate

Generates router and TypeScript types from a file-system based route structure.

f
escapeHtml

Escapes HTML special characters to prevent XSS attacks.

f
Fragment

Fragment component for grouping multiple elements without a wrapper.

f
into
No documentation available
f
jsx

Core JSX factory function that creates HTML elements or calls component functions.

f
jsxs

JSX factory for multiple children (same as jsx in this implementation).

f
swap
No documentation available
T
SwapInput
No documentation available
T
SwapMode
No documentation available
T
SwapModeHandler
No documentation available
T
SwapOptions
No documentation available
T
SwapResult
No documentation available
T
SwapTarget
No documentation available
T
InferActionArgs

Infers the argument type for action functions with typed route parameters.

T
InferComponentProps

Infers the props type for a component based on its module exports.

T
InferHeadersFunction

Infers the type for headers functions with typed parameters and loader data.

T
InferLoaderArgs

Infers the argument type for loader functions with typed route parameters.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.