Skip to main content
Home

@murat/yelix@0.1.47
Built and signed on GitHub Actions

Yelix is a powerful web server library built specifically for Deno, leveraging the Hono framework in the background. Including built-in data validation, OpenAPI 3.1 support, and auto-generated backend documentation.

This package works with Deno
This package works with Deno
JSR Score
82%
Published
2 months ago (0.1.47)
type alias ReferenceConfiguration

Properties

optional
theme: ThemeId

A string to use one of the color presets

optional
layout: "modern" | "classic"

The layout to use for the references

The Swagger/OpenAPI spec to render

deprecated
optional
proxy: string

URL to a request proxy for the API client

optional
proxyUrl: string

URL to a request proxy for the API client

Whether the spec input should show

Whether to show the sidebar

Whether to show models in the sidebar, search, and content.

Whether to show the “Download OpenAPI Document” button

Whether to show the “Test Request” button

Whether to show the sidebar search bar

Whether dark mode is on or off initially (light mode)

optional
forceDarkModeState: "dark" | "light"

forceDarkModeState makes it always this state no matter what

Whether to show the dark mode toggle

optional
searchHotKey:
"a"
| "b"
| "c"
| "d"
| "e"
| "f"
| "g"
| "h"
| "i"
| "j"
| "k"
| "l"
| "m"
| "n"
| "o"
| "p"
| "q"
| "r"
| "s"
| "t"
| "u"
| "v"
| "w"
| "x"
| "y"
| "z"

Key used with CTRL/CMD to open the search modal (defaults to 'k' e.g. CMD+k)

optional
favicon: string

Path to a favicon image

Custom CSS to be added to the page

optional
onSpecUpdate: (spec: string) => void

onSpecUpdate is fired on spec/swagger content change

The baseServerURL is used when the spec servers are relative paths and we are using SSR. On the client we can grab the window.location.origin but on the server we need to use this prop.

We’re using Inter and JetBrains Mono as the default fonts. If you want to use your own fonts, set this to false.

By default we only open the relevant tag based on the url, however if you want all the tags open by default then set this configuration option :)

optional
_integration:
null
| "adonisjs"
| "docusaurus"
| "dotnet"
| "elysiajs"
| "express"
| "fastapi"
| "fastify"
| "go"
| "hono"
| "html"
| "laravel"
| "litestar"
| "nestjs"
| "nextjs"
| "nitro"
| "nuxt"
| "platformatic"
| "react"
| "rust"
| "vue"

Specifies the integration being used. This is primarily for internal purposes and should not be manually set.

It’s used to:

  1. Display debug information in the console.
  2. Show a custom logo when importing OpenAPI documents in the Scalar App.

Each supported integration has a unique identifier (e.g., 'express', 'nextjs', 'vue').

To explicitly disable this feature, you can pass null.

Whether to show the client button from the reference sidebar and modal

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:@murat/yelix

Import symbol

import { type ReferenceConfiguration } from "@murat/yelix";
or

Import directly with a jsr specifier

import { type ReferenceConfiguration } from "jsr:@murat/yelix";