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

@babylonjs-toolkit/bridge

v0.0.1

Published

Local companion that lets the browser-based app builder drive your Unity Editor over MCP.

Downloads

86

Readme

@babylonjs-toolkit/bridge

Lets the browser-based app builder drive your local Unity Editor with the platform's AI credits.

The app builder runs in a browser and the platform server can never reach your machine (it refuses private/loopback addresses by design). So the connection is made by the browser itself, to this companion running on 127.0.0.1. The AI orchestration, billing, and tool loop all stay on the platform; only the tool execution happens here, against your Editor.

Browser (app builder)  ──HTTP MCP──▶  companion (127.0.0.1)  ──▶  Unity MCP server  ──▶  Unity Editor

Setup

1. Install the Unity package (CoplayDev's MCP for Unity, MIT) in your Unity project — Package Manager → Add package from git URL:

https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#main

2. Install uv (provides uvx), unless you plan to run the Unity MCP server yourself and use --attach.

3. With the Unity Editor open, run the companion:

npx @babylonjs-toolkit/bridge

It prints a port and a pairing token. Paste both into the Connect Unity dialog in the app builder. That's it — the Unity tools appear in your project chat.

Options

| Flag | Default | Purpose | | --- | --- | --- | | --port <n> | 8080 | Port the browser connects to. | | --attach <n> | — | Use an already-running Unity MCP server on this port instead of launching one. | | --origin <url> | any | Only accept requests from this app origin. | | --token <secret> | random | Use a fixed pairing token instead of a fresh one per run. | | --server-command <cmd> | uvx --from mcpforunityserver mcp-for-unity | Override how the Unity MCP server is launched. |

If startup fails with the default command, upstream's published docs disagree about how HTTP mode is selected across versions. Start the Unity MCP server yourself in HTTP mode and use --attach <its port>, or override the whole invocation with --server-command.

Security

  • Binds 127.0.0.1 only. Never 0.0.0.0 — the upstream server's default would be reachable from your whole LAN; the companion is not.
  • Pairing token required. Every request must carry Authorization: Bearer <token>, compared in constant time. A fresh token is minted each run, so it never outlives the session it authorised. The preflight is intentionally exempt: browsers never attach credentials to a preflight.
  • CORS + Private Network Access. An HTTPS page reaching a loopback address needs an explicit Access-Control-Allow-Private-Network: true preflight answer; without it the browser reports a generic network error. Use --origin to restrict which app origin may connect.
  • Tools act on your Editor. They can create, modify, and delete assets in the open Unity project — the same power you'd give any MCP client. Run it against a project under version control.

Same machine, by design

Your browser must be on the same computer as the Unity Editor — the connection is to 127.0.0.1 and never leaves the machine. That is deliberate: your Editor is not reachable from your network, and no relay or tunnel is holding a credential on your behalf. Remote Unity is explicitly not supported.

Browser support

Chrome and Edge are the supported browsers. They treat loopback as a potentially-trustworthy origin, so an HTTPS page may reach http://127.0.0.1. Safari and Firefox block or restrict this in some versions.

Development

From the repository root:

pnpm companion --attach 8081   # run from source
cd companion && npm test       # node:test, zero dependencies

Publishing: cd companion && npm publish --access public.

License

MIT. Bundles nothing; launches CoplayDev/unity-mcp (MIT) via uvx at runtime.