npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

coakka-v2-connector-bun

v2.1.1

Published

Bun connector for the polyglot, multi-language, multi-platform CoAkka Runtime ecosystem

Readme

CoAkka Runtime Connector For Bun

This is the Bun connector in the polyglot, multi-language, multi-platform CoAkka Runtime ecosystem. CoAkka is not a Bun-only runtime: this package adapts Bun applications to the same native core, public C ABI, target, request/reply, bounded-admission, and deadletter contract used by the JVM, Node.js, Python, Go, C#, Rust, Swift, and other connector lanes.

Kubernetes is supported but not required. Use the public Ecosystem Overview and Compatibility Matrix to select the exact package, OS, CPU, and release-channel tuple. Start with the CoAkka Documentation for concepts, integration paths, operations, and runnable samples.

New To CoAkka

CoAkka is a native-backed runtime and logger toolkit for application-owned work. It helps an app route work by target name, handle request/reply, deadletters, bounded queues, diagnostics, and native-backed logging without turning every internal boundary into another hand-written HTTP endpoint.

Use these public repositories to orient first:

| Repository | Use it for | Link | | --- | --- | --- | | coakka-samples | Runnable examples and code you can inspect first. | https://github.com/phuong-tran/coakka-samples | | coakka-publish | Released packages, native archives, manifests, checksums, compatibility matrix, and release notes. | https://github.com/phuong-tran/coakka-publish |

Run the matching sample:

git clone https://github.com/phuong-tran/coakka-samples.git
cd coakka-samples
bash run.sh runtime bun basic

No-checkout npm smoke: https://github.com/phuong-tran/coakka-samples/blob/main/docs/first-npm-smoke.md

Samples docs directory: https://github.com/phuong-tran/coakka-samples/tree/main/docs

That smoke starts from the same question most new users have: if the app currently creates fake backend HTTP only to call work owned by the same app or team, the CoAkka after shape is a runtime target such as samples.customer.store.create, not another private URL.

The Bun adapter remains deliberately thin:

  • it packages a Bun-named surface: coakka-v2-connector-bun
  • it exports BunRuntimeHost, BunConnectorOrchestrator, and BunRuntimeClient aliases
  • it compiles the shared JS runtime connector core during package build
  • it ships the exact native runtime payloads recorded by package metadata

Runtime semantics still belong to the native runtime and its public C ABI. Bun owns host ergonomics, package smoke, and compatibility evidence only.

The package now exposes the same capability, startup connection/TLS, structured apply, and atomic credential reload API as Node. See Connection Strategies, TLS and mTLS, and Troubleshooting.

Local Commands

export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"

bun run build
bun run verify
bash scripts/smoke-packaged-package.sh

Host-library consumer smoke:

COAKKA_V2_HOST_RUNTIME_LIB=/abs/path/to/libcoakka_runtime_v2.dylib \
  bun run smoke:packaged

The package smoke builds a tarball, installs it into a temporary Bun consumer, starts one embedded runtime, registers a local JSON handler, and proves request/reply through the native runtime.

Boundary

This lane currently reuses the shared JS runtime connector core because Bun can run the embedded native binding path. If that boundary stops holding, the replacement should be a narrow Bun binding shim, not a fork of runtime routing, request/reply, deadletter, or lifecycle semantics.

Contact: [email protected].

File Lane

FileLane.open(...) is available through a Bun-native FFI adapter. Its native wait blocks the calling event loop, so run waits in a Worker or dedicated process. See the shared file-lane contract.