Skip to content

tobilg/duckdb-wasm-static

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

duckdb-wasm-static

A minimal example of statically serving DuckDB-WASM with all dependencies stored and served locally.

Setup

Download all dependencies by running:

./download-dependencies.sh

Project Structure

├── index.html                 # Main HTML file with DuckDB example
├── download-dependencies.sh   # Script to download all dependencies
└── dist/
    ├── duckdb-browser.mjs           # DuckDB browser module
    ├── duckdb-mvp.wasm              # MVP bundle (broader compatibility)
    ├── duckdb-browser-mvp.worker.js # MVP worker
    ├── duckdb-eh.wasm               # EH bundle (exception handling)
    ├── duckdb-browser-eh.worker.js  # EH worker
    ├── apache-arrow.mjs             # Apache Arrow dependency
    ├── flatbuffers.mjs              # FlatBuffers dependency
    └── tslib.mjs                    # TypeScript helpers

Running Locally

Due to CORS restrictions, you need to serve the files via a local web server:

# Using Python
python3 -m http.server 8080

# Using Node.js (npx)
PORT=8080 npx serve .

# Using PHP
php -S localhost:8080

Then open http://localhost:8080 in your browser.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors