Portalis is a production-ready platform (v0.1.6) that translates Python codebases into Rust and compiles them to WebAssembly, featuring CPU SIMD optimization (AVX2, SSE4.2, NEON) and optional GPU acceleration via CUDA. Built on the Wassette runtime, it delivers up to 7.8× speedup through arena allocation, string interning, and object pooling. Supports Python 3.11+, Rust 1.75+, and outputs WASM, native binaries, or libraries. Released as an npm package (Node >=14.0.0) and cargo crate. Differentiators over similar tools include multi-tier acceleration, enterprise features (RBAC, SSO), and a complete pipeline with agent swarm architecture. Currently in active development with 137 tests and 35k+ LOC.
npm install portalisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates Python-to-WASM pipeline: translate Python factorial function to Rust, compile to WASM with SIMD, and execute using WassetteRuntime.
Add "type": "module" to package.json or rename files to .mjs.
Set { gpu: true } in translate/compile options and ensure CUDA environment is configured.Update import to 'portalis/runtime'.
Pass { simd: false } to translate or compile options.For new projects, set { runtimeVersion: 2 } to use the preview Wassette v2 runtime.Use import statement or dynamic import(). If using CommonJS, consider dynamic import: const portalis = await import('portalis');Ensure runtime.load() is awaited and the module exports are accessed after the promise resolves.
Install CUDA toolkit and drivers, or disable GPU: { gpu: false }.Use ESM: add "type": "module" in package.json or rename to .mjs.
No dependency data recorded yet.