| Title: | Serve Static Files for DuckDB-Wasm via Go HTTP Server |
|---|---|
| Description: | Minimal package to serve static files (including CSVs) for DuckDB-Wasm web apps using Go HTTP server via goserveR. Automatically creates mtcars.csv in inst/static and deletes it on exit. Supports range requests and CORS. |
| Authors: | Sounkou Mahamane Toure [aut, cre] |
| Maintainer: | Sounkou Mahamane Toure <[email protected]> |
| License: | MIT |
| Version: | 0.1.0.9000 |
| Built: | 2026-05-28 14:33:32 UTC |
| Source: | https://github.com/sounkou-bioinfo/duckdb-wasm-html-js-simple |
Serve static files for DuckDB-Wasm web apps using Go HTTP server
server( static_dir = file.path(getwd(), "inst/static"), goserver_addr = "127.0.0.1:8081", prefix = "/static" )server( static_dir = file.path(getwd(), "inst/static"), goserver_addr = "127.0.0.1:8081", prefix = "/static" )
static_dir |
Directory to serve (default: inst/static in current working directory) |
goserver_addr |
Address to bind the server (default: "127.0.0.1:8081") |
prefix |
URL prefix for served files (default: "/static") |
None. Blocking call. Cleans up mtcars.csv on exit.