When run with Node.js, a version of 22 (LTS) or higher is required. Please verify your version by running node -v, and upgrade if necessary.
The serve function of the Node adapter makes sure to also serve the static files required for
the admin panel.
Copy
// index.jsimport { serve } from "bknd/adapter/node";// if the configuration is omitted, it uses an in-memory database/** @type {import("bknd/adapter/node").NodeAdapterOptions} */const config = { connection: { url: "file:data.db" }};serve(config);
For more information about the connection object, refer to the Database guide.Run the application using node by executing: