@rankmyseo/server-hono
v1.0.2
Published
Hono adapter for RankMySEO server handler
Downloads
708
Readme
@rankmyseo/server-hono
Hono adapter for RankMySEO — mounts the full @rankmyseo/server API as a Hono app in a few lines. Requires Node.js ≥ 20.
Install
npm i @rankmyseo/server-hono @rankmyseo/core @rankmyseo/storage honohono is a peer dependency.
Usage
import { defineConfig } from "@rankmyseo/core";
import { createStore } from "@rankmyseo/storage";
import { createRankMySeoApp } from "@rankmyseo/server-hono";
const store = createStore("sqlite:///path/to/db.sqlite");
const config = defineConfig({
databaseUrl: "sqlite:///path/to/db.sqlite",
tenantId: "tenant-a",
projectId: "project-1",
dataSources: [{ provider: "fixture", default: true }],
});
export default createRankMySeoApp(store, { config });Pass basePath through options when mounting under a subpath (same as createHandler):
createRankMySeoApp(store, { config, basePath: "/api/rankmyseo" });Documentation
See the Wiki → Getting Started.
License
Apache-2.0
