Skip to main content
Home
This release is 12 versions behind 0.0.16 — the latest version of @asgard/heimdall. Jump to latest

Built and signed on GitHub Actions

A modern TypeScript framework for building type-safe API endpoints with a focus on developer experience and cross-platform compatibility

This package works with Node.js, DenoIt is unknown whether this package works with Cloudflare Workers, Bun, Browsers
It is unknown whether 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
64%
Published
a week ago (0.0.4)
class HeimdallHonoServer

Constructors

new
HeimdallHonoServer(
app: Hono,
services: HermodServiceRecord<TServices>,
)

Type Parameters

TServices extends HermodServiceConstructor[] = []

Static Methods

createGenericResolver<S>(resolver: (schema: any) => any): HeimdallSchemaResolver<S>

Creates a generic resolver function for the schema.

createServer<
TServices extends HermodServiceConstructor[],
TSchemaResolver extends HeimdallSchemaResolver<unknown>,
>
(options: HeimdallHonoServerOptions<TServices, TSchemaResolver>): Promise<HeimdallHonoServer<TServices>>

Creates a new Heimdall Hono server.

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.

Add Package

deno add jsr:@asgard/heimdall

Import symbol

import { HeimdallHonoServer } from "@asgard/heimdall/hono";
or

Import directly with a jsr specifier

import { HeimdallHonoServer } from "jsr:@asgard/heimdall/hono";

Add Package

pnpm i jsr:@asgard/heimdall
or (using pnpm 10.8 or older)
pnpm dlx jsr add @asgard/heimdall

Import symbol

import { HeimdallHonoServer } from "@asgard/heimdall/hono";

Add Package

yarn add jsr:@asgard/heimdall
or (using Yarn 4.8 or older)
yarn dlx jsr add @asgard/heimdall

Import symbol

import { HeimdallHonoServer } from "@asgard/heimdall/hono";

Add Package

npx jsr add @asgard/heimdall

Import symbol

import { HeimdallHonoServer } from "@asgard/heimdall/hono";

Add Package

bunx jsr add @asgard/heimdall

Import symbol

import { HeimdallHonoServer } from "@asgard/heimdall/hono";