frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Duck-UI Embed – SQL-Powered React Dashboard Components with DuckDB-WASM

https://duckui.com/play/
1•caioricciuti•1h ago
Hi HN,

I built @duck_ui/embed — a set of React components that turn SQL queries into interactive dashboards, powered by DuckDB-WASM running entirely in the browser.

     `npm install @duck_ui/embed @duckdb/duckdb-wasm`

 The idea: pass your data (arrays, CSV, Parquet, JSON, or a fetch callback), write SQL, and get charts, tables, KPIs, and filters — no backend required.

     <DuckUIProvider data={{ sales: { url: "/sales.parquet", format: "parquet" } }}>
       <Dashboard columns={3}>
         <Dashboard.Panel>
           <KPICard sql="SELECT sum(revenue) as value FROM sales" label="Revenue" format="currency" />
         </Dashboard.Panel>
         <Dashboard.Panel span={2}>
           <Chart sql="SELECT month, sum(revenue) FROM sales GROUP BY 1" type="bar" />
         </Dashboard.Panel>
         <Dashboard.Panel span={3}>
           <DataTable sql="SELECT * FROM sales" pageSize={20} sortable />
         </Dashboard.Panel>
       </Dashboard>
     </DuckUIProvider>
What's under the hood:

- DuckDB-WASM boots in the browser, data loads into in-memory tables - SQL queries run against real DuckDB (full SQL support, window functions, CTEs) - Parquet files use HTTP range requests — only fetches needed row groups - FilterBar auto-detects column types and injects WHERE clauses via subquery wrapping - Connection pool (max 4), LRU query cache (100 entries, 5min TTL) - ~95KB bundled (ESM), tree-shakeable

Components: Chart (line/bar/area/scatter/pie), DataTable (paginated, sortable, resizable columns), KPICard (with sparkline + comparison), FilterBar (auto or manual config), Dashboard (responsive grid layout), ExportButton (CSV/JSON).

For connecting to external databases (Postgres, MySQL, etc.), there's a "gateway pattern" — your backend runs the SQL and returns JSON, the embed renders it via a fetch callback.

Built with: React 18+, DuckDB-WASM, uPlot, @tanstack/react-table, Zustand. Apache-2.0 licensed.

Live playground: https://duckui.com/play Docs: https://duckui.com/embed/docs npm: https://www.npmjs.com/package/@duck_ui/embed

This is part of the Duck-UI project (https://github.com/ibero-data/duck-ui), a browser-based SQL IDE for DuckDB with 525+ stars. The embed SDK lets you take the same DuckDB-powered analytics and drop them into any React app.

Would love feedback on the API design and what components/features you'd want next.

The Open Anonymity Project

https://openanonymity.ai/
1•jhalderm•1m ago•0 comments

Show HN: I built a minimal file organizer CLI and underestimated filesystem case

https://github.com/ChristianRincon/auto-organize
1•chris-corner•2m ago•0 comments

Claude Code Memory

https://code.claude.com/docs/en/memory
1•mfiguiere•2m ago•0 comments

Show HN: Praktor – Multi-agent Claude Code orchestrator with Docker isolation

https://github.com/mtzanidakis/praktor
1•mtzanidakis•3m ago•0 comments

Chaos Has a Market

https://blog.lpsz.org/posts/2026-02-26-zero/
1•abelgvidal•3m ago•0 comments

Show HN: HelioSim – Real-time N-body simulator in WebAssembly

https://koprolin.com/heliosim/
1•JustClemens•4m ago•0 comments

Statement from Dario Amodei on Our Discussions with the Department of War

https://www.anthropic.com/news/statement-department-of-war
5•qwertox•9m ago•1 comments

'Migaloo', a white humpback whale on Australia's east coast

https://www.migaloo.com.au/
1•bookofjoe•11m ago•0 comments

K-Search: LLM Kernel Generation via Co-Evolving Intrinsic World Model

https://arxiv.org/abs/2602.19128
1•matt_d•13m ago•1 comments

Dark Sky Creators Return with Acme Weather: A Fresh Take on Forecast Uncertainty

https://www.macstories.net/reviews/acme-weather-a-fresh-take-on-forecast-uncertainty/
1•thoughtpeddler•14m ago•0 comments

Show HN: Emergency kits – Their guide when you're not there to lead

https://hypervault.com/insights/new-release-emergency-kits
1•glennhv•15m ago•0 comments

Metacritic statement pledges to ban outlets that use AI-generated reviews

https://www.shacknews.com/article/148056/metacritic-statement-ai-reviews-banned
3•cratermoon•16m ago•0 comments

Jack Dorsey's Block to Lay Off 4k Employees in AI Remake

https://www.wsj.com/business/jack-dorseys-block-to-lay-off-4-000-employees-in-ai-remake-28f0d869
1•mraniki•16m ago•2 comments

Heptaconn: A framed TCP protocol separating admission and back end execution

https://github.com/newssourcecrawler/heptaconn
1•ismcanga•19m ago•0 comments

Sudo-rs enables password feedback by default

https://www.phoronix.com/news/sudo-rs-password-feedback
2•patal•20m ago•0 comments

Gucci criticised for 'AI slop' images ahead of major fashion show

https://www.bbc.co.uk/news/articles/cjwz6yzn5jqo
1•CrzyLngPwd•22m ago•0 comments

Midtraining Bridges Pretraining and Posttraining Distributions

https://arxiv.org/abs/2510.14865
1•matt_d•22m ago•0 comments

Steam Deck Plugin to Enable MTP File Transfer via USB DRD (Dual-Role Device)

https://github.com/dafta/DeckMTP
1•transpute•23m ago•0 comments

How do fintech platforms handle audit sampling of privileged actions?

1•leiishta•23m ago•0 comments

Warner Bros. Discovery deems Paramount offer superior to Netflix

https://www.cnbc.com/2026/02/26/warner-bros-discovery-paramount-skydance-deal-superior-netflix.html
2•pseudalopex•25m ago•0 comments

Show HN: InstallerStudio – Create MSI Installers Without InstallShield or WiX

https://www.ionline.com
2•pkailas•26m ago•0 comments

Hillary Clinton's Opening Statement to House Oversight and Gov Reform Committee

https://twitter.com/HillaryClinton/status/2027053057100693779
3•ZeroGravitas•27m ago•0 comments

Show HN: Visual Agents for Fitness: How to Enable Automated Exercise Feedback

https://jeremyparkphd.substack.com/p/daaee5d4-9fd9-40a4-8d03-19cf298c57dc
2•visioninmyblood•27m ago•0 comments

Show HN: The easiest way to run shell commands in plain English (no app needed)

https://github.com/iafan/at-command
1•iafan•27m ago•0 comments

Are there any AI video tools left that don't have aggressive safety filters?

https://unbound.video
1•gabrieln•28m ago•1 comments

Jack Dorsey's Block cuts nearly half of its staff in AI gamble

https://www.theverge.com/tech/885710/jack-dorsey-block-layoffs-job-cuts-ai
3•pavel_lishin•29m ago•1 comments

Claude for OSS

https://claude.com/contact-sales/claude-for-oss
4•zenoware•30m ago•1 comments

Deploycel (Vercel Alternative)

https://deploycel.org/
3•joshcsimmons•35m ago•0 comments

A red tide in South Africa is causing the mass deaths of crayfish

https://apnews.com/article/south-africa-ocean-marine-fish-environment-31f47d345d3811bd251abec88fe...
1•mooreds•35m ago•0 comments

Global Intelligence Crisis – Citadel Securities' Response

https://www.citadelsecurities.com/news-and-insights/2026-global-intelligence-crisis/
2•ceh123•35m ago•0 comments