Skip to content

Latest commit

 

History

History
66 lines (49 loc) · 2.43 KB

README.md

File metadata and controls

66 lines (49 loc) · 2.43 KB

SQLNB for DuckDB

SQL notebooks in your browser, backed by your local DuckDB session. Open and save notebook files, run queries, and work with tables and charts.

This repository contains the native extension: a local HTTP server, notebook file and history management, and an optional MCP server. SQL runs through Quack. The Sidequery notebook UI is developed separately and downloaded on first launch; you don't need to build the frontend to use the extension.

Install and start

Use DuckDB 2.0 with a matching published SQLNB build for your platform. Register Sidequery's signed extension repository once:

set allow_extension_repositories = 'allowed';
create extension repository sidequery
    with prefix 'https://extensions.sidequery.dev';

Then install and open the notebook:

install sqlnb from sidequery;
load sqlnb from sidequery;
select sqlnb_start();

Keep DuckDB running while you use the browser. SQLNB loads the official Quack, httpfs, and icu dependencies from DuckDB core automatically. The first launch needs an internet connection to download the UI; subsequent launches can use a verified cached copy.

Use select sqlnb_status(); to see the local URL and select sqlnb_stop(); to stop the server. Restart the server to pick up UI updates.

Configuration

Choose a notebook directory or port, and control whether startup opens a browser:

select sqlnb_start(
    notebook_root := '~/Documents/notebooks',
    port := 4567,
    open_browser := false
);

To connect an MCP client, start with mcp := true and follow the MCP setup guide. MCP is disabled by default.

Development and reference

License

The native extension is MIT licensed. The separately hosted Sidequery UI is not included in this repository or covered by its license.