Show HN: Belgie – Run TypeScript from Python in an Embedded Deno Sandbox

https://github.com/mplemay/belgie
by mplemay97 • 17 days ago
5 1 17 days ago

Hi HN! I built Belgie, a Python library that embeds Deno, allowing Python applications to run JavaScript and TypeScript without requiring Node.js or Deno to be installed on the host system. It supports the features you’d expect from Deno (npm, JSR, and URL imports, isolated package environments, etc.), plus:

- Pass JSON-safe values seamlessly between Python and JavaScript.

- Agentic code generation with typed interfaces, similar to Pydantic’s Monty.

- Manage dependencies programmatically or from the CLI.

Related Stories

Loading related stories...

Source preview

github.com