What if you could query any REST API, GraphQL endpoint, or web page directly from DuckDB using SQL? No ETL pipelines, no intermediate files, no complex setup - just write a TypeScript script and use it as a table function.

In this post, I’ll show you how to combine DuckDB’s shellfs and arrow extensions with Bun’s zero-dependency scripts to create a powerful, flexible data pipeline that lets you query the world with SQL.

This post was inspired by Python Scripts as DuckDB Table Functions and Self-Contained TypeScript Programs Using Bun.

The “Magic”

The setup is surprisingly simple. DuckDB’s shellfs extension can read data from shell command output, and the …

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help