Skip to main content
Home

Built and signed on GitHub Actions

Serve pages and APIs - simple and optimized

This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
JSR Score
100%
Published
6 months ago (0.1.5)

default

Classic server

c
Asset

Data that can be stored and retrieved on-demand

T
BuildableOptions

Declares behavior on build and runtime restoration

f
declareLayout

Declare a layout

c
DeclareMethod

Method declaration as a buildable handler

v
declareMutation

Declare a mutation

f
declarePage

Declare a page

c
Exported

Interact with buildable exported code.

T
HandlerResult

Union of acceptable request hanlder return types (async Response or nothing)

v
httpGET

Declare an HTTP GET handler

v
httpMethod

Declare an HTTP handler

v
httpPOST

Declare an HTTP POST handler

T
Method

Known HTTP methods

c
RequestContext

API to set and get request-level arbitrary context

T
RouteParams

Statically extract dynamic parameters from an URI

f
specifierToUrl

Convert a project-specific specifier to an URL

T
TypedRequest

Request but typed with parameter groups

f
urlToSpecifier

Convert an URL to a project-specific specifier when possible

f
useFetch

Fetch a Response in current server's context

f
useMatchedPattern

Use current request's matched router pattern

f
useNext

Execute next middlewares immediately to work on returned Response.

v
useParams

Use current request's matched parameter groups

f
useRedirect

Redirects to requested path, preferrably softly when current request comes from classic router.

f
useRequest

Retrieves the active Request from current context

asset-serve

Declare assets at build time to be available at run time.

c
ServedAsset

Static asset to serve

build

Build server

c
BuildServer

File routing system from provivded base path

bundle

Build and serve JavaScript modules

c
Bundle

Represents a JS bundle

f
bypassResolution

Bypass module resolution in bundles built in cb

css

Compile and serve style sheets on the fly

v
styled
No documentation available

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.