@rdub/duckdb

0.2.1 • Public • Published

@rdub/duckdb

DuckDB utilities for React apps: SSR and table querying from client and server

@rdub/duckdb NPM version

API

Examples

Demo: plot constructed from two remote Parquet files:

iRe/www (interactive reports for Jupyter notebooks):

Use with Next.js

Inspired by next.js#46493 / node.bcrypt.js#979, you probably want this Webpack config in order to access duckdb-lambda-x86 from a Next.js app:

 /** @type {import('next').NextConfig} */
 const nextConfig = {
   …,
+  webpack: (config) => {
+    config.externals = [...config.externals, 'duckdb', 'duckdb-lambda-x86'];
+    return config;
+  },
 };
 
 module.exports = nextConfig;

Otherwise you'll see errors like:

./node_modules/.pnpm/@mapbox+node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/index.html Module parse failed: Unexpected token (1:0)

Readme

Keywords

none

Package Sidebar

Install

npm i @rdub/duckdb

Weekly Downloads

6

Version

0.2.1

License

MIT

Unpacked Size

27.7 kB

Total Files

20

Last publish

Collaborators

  • rdub