{"id":49928177,"url":"https://github.com/dylan-sutton-chavez/edge-python","last_synced_at":"2026-06-02T05:00:59.753Z","repository":{"id":343648763,"uuid":"1178583507","full_name":"dylan-sutton-chavez/edge-python","owner":"dylan-sutton-chavez","description":"Single-pass SSA compiler and bytecode VM for a sandboxed Python subset. NaN-boxed values, dual inline caching (scalar + instance-dunder), super-instruction fusion, pure-function memoization, mark-sweep GC; classes with inheritance and dunder protocol, stackful coroutines with async/await, pattern matching, and packages.json imports. 170 KB WASM.","archived":false,"fork":false,"pushed_at":"2026-05-30T02:52:22.000Z","size":2770,"stargazers_count":216,"open_issues_count":0,"forks_count":11,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-30T04:21:59.554Z","etag":null,"topics":["bytecode","compiler","garbage-collector","inline-caching","interpreter","memoization","nan-boxing","no-std","python","python-compiler","python-interpreter","rust","sandbox","ssa","static-single-assignment","virtual-machine","wasm","webassembly"],"latest_commit_sha":null,"homepage":"http://demo.edgepython.com/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dylan-sutton-chavez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-11T06:52:28.000Z","updated_at":"2026-05-30T02:52:25.000Z","dependencies_parsed_at":"2026-03-13T15:02:01.362Z","dependency_job_id":null,"html_url":"https://github.com/dylan-sutton-chavez/edge-python","commit_stats":null,"previous_names":["dylan-sutton-chavez/tinypy-infra","dylan-sutton-chavez/tiny-python_infrastructure","dylan-sutton-chavez/edge-python"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dylan-sutton-chavez/edge-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylan-sutton-chavez%2Fedge-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylan-sutton-chavez%2Fedge-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylan-sutton-chavez%2Fedge-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylan-sutton-chavez%2Fedge-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dylan-sutton-chavez","download_url":"https://codeload.github.com/dylan-sutton-chavez/edge-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylan-sutton-chavez%2Fedge-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33806987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bytecode","compiler","garbage-collector","inline-caching","interpreter","memoization","nan-boxing","no-std","python","python-compiler","python-interpreter","rust","sandbox","ssa","static-single-assignment","virtual-machine","wasm","webassembly"],"created_at":"2026-05-17T01:14:39.265Z","updated_at":"2026-06-02T05:00:59.739Z","avatar_url":"https://github.com/dylan-sutton-chavez.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://edgepython.com/\" target=\"_blank\"\u003e\n    \u003cpicture\u003e\n      \u003cimg width=\"300\" src=\"docs/public/static/banner.svg\" alt=\"Edge Python Logo\"\u003e\n    \u003c/picture\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cbr/\u003e\n\nEdge is a sandboxed subset of Python, compiled to a less than 200 KB WebAssembly binary and built in Rust to run on Cloudflare Workers and in the browser. Embed your full business logic, run LLMs client-side, build frontend apps and serverless workloads.\n\n- Secure by default. No file, network, or environment access, unless explicitly enabled by the [host](https://edgepython.com/reference/packages#host-libraries).\n- Less than 200 KB footprint. The full compiler and runtime ship as a single WASM binary.\n- Compile-time imports. Every module resolves at parse time no dynamic loading, no runtime surprises.\n- No AST, source compiles directly to bytecode in a single pass: o(n)\n\n## More about it\n\n- Demo: [demo.edgepython.com](https://demo.edgepython.com/)\n- Docs: [edgepython.com](https://edgepython.com/)\n\n## Repository layout\n\nCargo workspace; commands work from any directory.\n\n```text\n├── cli\n├── compiler\n├── demo\n├── docs\n├── host\n├── runtime\n├── std\n├── target\n├── wasm-abi\n└── wasm-pdk\n```\n\n```bash\ncargo wasm # release .wasm (the distributed artifact)\ncargo build --release # host .rlib + cdylib for Rust embedders\ncargo test --release --no-default-features # run the compiler test suite\n```\n\n*`--no-default-features` disables the `prebuilt` feature, which otherwise triggers a `build.rs` download of `compiler.wasm` from the GitHub release: that download is only needed by external Rust crates that consume this library, not when developing locally.*\n\nNative modules ship via three delivery paths (CDN `.wasm`, host capability, JS host module), see [Writing modules](https://edgepython.com/reference/writing-modules).\n\n## Quick start\n\n### CLI\n\ndownload it to your machine ([reference docs](https://edgepython.com/reference/cli)):\n\n```bash\ncurl -fsSL https://cdn.edgepython.com/cli/install.sh | sh\n\nedge -h # List all commands\n```\n\n`edge` hosts the runtime in a headless Chromium provisioned by `install.sh` (apt, dnf, pacman, zypper, apk, or brew on macOS) for `serve`, `repl`, `build` and `uninstall`.\n\n### Browser\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n  \u003cmeta charset=\"UTF-8\"\u003e\n  \u003cscript type=\"module\" src=\"https://cdn.edgepython.com/runtime/src/element.js\"\u003e\u003c/script\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n  \u003cedge-python entry=\"./app/main.py\" packages=\"./app/packages.json\"\u003e\u003c/edge-python\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\nThe runtime spawns a Web Worker that pre-fetches imports, dispatches native calls, and streams `print()` output back.\n\n### Rust host / server / edge runtimes\n\nEdge Python is a `cdylib`: your host instantiates `compiler.wasm` and calls its exports (Wasmtime, Wasmer, Cloudflare Workers, Fastly Compute, Spin). The same `.wasm` served to browsers is the server-side artifact; the host owns I/O. Declaring `edge-python` as a Cargo dependency fetches the matching release `.wasm` automatically, see [`compiler/README.md`](compiler/README.md).\n\n## What it is\n\nEdge Python targets sandboxed edge computing: a dynamic, multi-paradigm Python subset with classes, async/await, structural pattern matching, and compile-time module resolution. There is no bundled stdlib, modules are external artifacts.\n\nFull language reference, scope, and what intentionally isn't supported: [What Edge Python is](https://edgepython.com/getting-started/what-it-is). Architecture details: [`compiler/README.md`](compiler/README.md).\n\n## CI/CD\n\nOne workflow [`.github/workflows/main.yml`](.github/workflows/main.yml) that runs the complete CI/CD, where each package is a steps in a composite action under [`.github/actions/`](.github/actions).\n\nOn pushes to `main` it deploys three Cloudflare Pages projects: `edge-python-cdn` (the bundled package artifacts), `edge-python-demo`, and `edge-python-docs` (served at `edgepython.com`). \n\n## License\n\nMIT OR Apache-2.0\n\n## Sponsors \n\n- [PyneSys](https://pynesys.io/), since May 2026\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylan-sutton-chavez%2Fedge-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdylan-sutton-chavez%2Fedge-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylan-sutton-chavez%2Fedge-python/lists"}