Start with a Framework

bknd seamlessly integrates with popular frameworks, allowing you to use what you’re already familar with. The following guides will help you get started with your framework of choice.

Start with a Runtime

If you prefer to use a runtime instead of a framework, you can choose from the following options. These runtimes allow you to serve the API and UI in the runtime’s native server and serve the UI assets statically from node_modules.

Overview

Serving the backend (API)

Serve the backend as an API for any JS runtime or framework. The latter is especially handy, as it allows you to deploy your frontend and backend bundled together. Furthermore it allows adding additional logic in a way you’re already familar with. Just add another route and you’re good to go.

Here is an example of serving the API using node:

index.js
import { serve } from "bknd/adapter/node"
serve();

Serving the Admin UI

The admin UI allows to manage your data including full configuration of your backend using a graphical user interface. Using vite, your admin route looks like this:

admin.tsx
import { Admin } from "bknd/ui"
import "bknd/dist/styles.css";

export default function AdminPage() {
   return <Admin withProvider />
}