Skip to main content
Home
This release is 18 versions behind 0.20.0 — the latest version of @storybooker/core. Jump to latest

StoryBooker platform agnostic router core.

This package works with Cloudflare Workers, Node.js, Deno, Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
47%
Published
a month ago (0.13.2)

StoryBooker Core

The core contains the routing logic and UI for StoryBooker. The core can be extended to be used with any platform that supports standard fetch (Request+Response).

Core Docs: https://storybooker.js.org/docs/core

Running on basic Node server

import { createServer } from "node:http";
import { createRequestListener } from "@remix-run/node-fetch-server";
import { createRequestHandler } from "@storybooker/core";
import {
  LocalFileDatabase,
  LocalFileStorage,
} from "@storybooker/core/adapters";

const handler = createRequestHandler({
  database: new LocalFileDatabase(),
  storage: new LocalFileStorage(),
});

const server = createServer(createRequestListener(handler));

server.listen(8000, () => {
  console.log("Server running at http://localhost:8000");
});

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:@storybooker/core

Import symbol

import * as core from "@storybooker/core";
or

Import directly with a jsr specifier

import * as core from "jsr:@storybooker/core";

Add Package

pnpm i jsr:@storybooker/core
or (using pnpm 10.8 or older)
pnpm dlx jsr add @storybooker/core

Import symbol

import * as core from "@storybooker/core";

Add Package

yarn add jsr:@storybooker/core
or (using Yarn 4.8 or older)
yarn dlx jsr add @storybooker/core

Import symbol

import * as core from "@storybooker/core";

Add Package

vlt install jsr:@storybooker/core

Import symbol

import * as core from "@storybooker/core";

Add Package

npx jsr add @storybooker/core

Import symbol

import * as core from "@storybooker/core";

Add Package

bunx jsr add @storybooker/core

Import symbol

import * as core from "@storybooker/core";