bungibindies

Gleam bindings to the Bun runtime API’s.

Package Version Hex Docs

WARNING:

Please note, only the utils part is finished so far. I published it so that I could try it out though.

gleam add bungibindies@1
import bungibindies/bun
import bungibindies/bun/serve

pub fn main() {
  bun.serve(fn () {
  serve.fetch(req: Request) {
    Response("Success!")
  },
})
}

(This is a rough sketch cuz I’m just making code up rn)

Further documentation can be found at https://hexdocs.pm/bungibindies.

Development

gleam run   # Run the project
gleam test  # Run the tests

Dependencies

I try to not use anything else than Bun itself, but I do use gleam/javascript to use non-bun-specific JavaScript stuff.

Implementation

Boxes are checked when the implementation is usable, if it’s not complete but checked, should be in the skipped section along with possibly the reason for skipping.

Skipped

Some implementations were skipped for now. Here is a little list of what I skipped. If you want to help, feel free to implement them and make a PR, or wait until I get to them :)

Search Document