0.2.1 • Published 1 month ago

@rdub/duckdb v0.2.1

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
1 month ago

@rdub/duckdb

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

API

Examples

crashes.hudcostreets.org

Demo: plot constructed from two remote Parquet files:

npm.io

iRe/www (interactive reports for Jupyter notebooks):

npm.io

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)
0.2.1

1 month ago

0.2.0

1 month ago

0.1.0

2 months ago

0.0.2

2 months ago

0.0.1

4 months ago