Back to browse
GitHub Repository

A minimal, secure javascript runtime for python

1 starsRust

Belgie – Run TypeScript from Python in an Embedded Deno Sandbox

by mplemay97·Jul 6, 2026·5 points·0 comments

AI Analysis

●●SolidBig BrainNiche Gem

Embedded Deno sandbox beats PyExecJS for npm and JSR package support.

Strengths
  • Embeds Deno directly—no external Node.js or Deno installation required on host
  • JSON-safe value passing between Python and JavaScript with typed interfaces
  • Programmatic dependency management alongside CLI tooling
Weaknesses
  • Running JS from Python already solved by PyExecJS, js2py, and other tools
  • Only 1 star suggests limited real-world testing or adoption so far
Target Audience

Python developers who need JavaScript/TypeScript execution capabilities

Similar To

PyExecJS · js2py · PyV8

Post Description

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.

To get started: uv add belgie

Then install the library skills: uvx library-skills install

Similar Projects

AI/ML●●Solid

Lore – Cross-Agent Memory SDK (Python and TypeScript)

Local-first design — SQLite plus on-device ONNX embeddings — provides a small-footprint way to share operational lessons between agents, and automatic PII redaction is a thoughtful, tangible safeguard. The one-line publish/query API, cross-language SDKs (Python + TypeScript), and a planned FastAPI/Postgres+pgvector server show practical engineering trade-offs rather than vaporware.

Niche GemSolve My Problem
amit_paz
104mo ago