frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Sandboxing untrusted code using WebAssembly

https://github.com/mavdol/capsule
16•mavdol04•1h ago
Hi everyone,

I built a runtime to isolate untrusted code using wasm sandboxes.

Basically, it protects your host system from problems that untrusted code can cause. We’ve had a great discussion about sandboxing in Python lately that elaborates a bit more on the problem [1]. In TypeScript, wasm integration is even more natural thanks to the close proximity between both ecosystems.

The core is built in Rust. On top of that, I use WASI 0.2 via wasmtime and the component model, along with custom SDKs that keep things as idiomatic as possible.

For example, in Python we have a simple decorator:

  from capsule import task

  @task(
      name="analyze_data", 
      compute="MEDIUM",
      ram="512mb",
      allowed_files=["./authorized-folder/"],
      timeout="30s", 
      max_retries=1
  )
  def analyze_data(dataset: list) -> dict:
      """Process data in an isolated, resource-controlled environment."""
      # Your code runs safely in a Wasm sandbox
      return {"processed": len(dataset), "status": "complete"}
And in TypeScript we have a wrapper:

  import { task } from "@capsule-run/sdk"

  export const analyze = task({
      name: "analyzeData", 
      compute: "MEDIUM", 
      ram: "512mb",
      allowedFiles: ["./authorized-folder/"],
      timeout: 30000, 
      maxRetries: 1
  }, (dataset: number[]) => {
      return {processed: dataset.length, status: "complete"}
  });
You can set CPU (with compute), memory, filesystem access, and retries to keep precise control over your tasks.

It's still quite early, but I'd love feedback. I’ll be around to answer questions.

GitHub: https://github.com/mavdol/capsule

[1] https://news.ycombinator.com/item?id=46500510

Comments

koolala•25m ago
It seems import to highlight these more. Aren't all the limitations of using this based around their limitations?

componentize-py – Python to WebAssembly Component compilation

+

jco – JavaScript toolchain for WebAssembly Components

I'm curious how Wasi 3.0 cross language components will go for something like this.

avaer•9m ago
I agree; this project looks impressive, but I'm guessing there are some rough edges in the transpilation "magic" that should be called out.

That's the crux of how usable this is going to be for people's use cases, and it's better to document the limitations upfront.

gregpr07•10m ago
Why go this route? Why Python is more powerful than JS is mostly because of third party plugins like pandas which are excplicitly not supported (C bindings, is this possible to fix?)...

At that point it might be just easier to convince the model to write JS directly

Many Victorian cities grew by tenfold in a century

https://www.worksinprogress.news/p/many-victorian-cities-grew-by-tenfold
1•ortegaygasset•1m ago•0 comments

Easily install OpenClaw with a beautiful GUI

https://twitter.com/xadisingh/status/2018695029204693204
1•adisinghyc•2m ago•0 comments

Qwen3-coder-next: SOTA open source coding model

https://huggingface.co/Qwen/Qwen3-Coder-Next
1•binsquare•2m ago•0 comments

Launch HN: Modelence (YC S25) – App Builder with TypeScript / MongoDB Framework

1•eduardpi•3m ago•0 comments

DragonFire (Weapon)

https://en.wikipedia.org/wiki/DragonFire_(weapon)
1•thunderbong•3m ago•0 comments

From Data Federation to AI-Ready Analytics with Virtual Schemas

https://www.exasol.com/blog/from-data-federation-to-continuous-intelligence-how-virtual-schemas-p...
1•exagolo•3m ago•0 comments

Show HN: Lite security tool for Windows endpoints with network utilities

https://github.com/secuditor/secuditor-lite
1•mennylevinski•4m ago•0 comments

How I'm Writing Code in 2026

https://www.coryzue.com/writing/coding-2026/
1•coloneltcb•4m ago•0 comments

Why does Windows keep your BIOS clock on local time? (2004)

https://devblogs.microsoft.com/oldnewthing/20040902-00/?p=37983
1•ryukoposting•4m ago•0 comments

From Digital Nomad to Baklava Salesman

https://theunplannedpivot.substack.com/p/from-digital-nomad-to-baklava-salesman
1•herbertl•4m ago•0 comments

Qwen3-Coder-Next

https://qwen.ai/blog?id=qwen3-coder-next
1•danielhanchen•5m ago•1 comments

Single Executable Applications in Node.js (v25. 5.0)

https://nodejs.org/api/single-executable-applications.html
1•nthypes•5m ago•0 comments

Majority of books in Amazon's 'Success' self-help genre likely written by AI

https://san.com/cc/majority-of-books-in-amazons-success-self-help-genre-likely-written-by-ai-study/
1•pseudolus•7m ago•0 comments

Show HN: Metaswarm: Production-ready agent swarms, MIT license

https://dsifry.github.io/metaswarm/
1•dsifry•7m ago•0 comments

ICE Begins Buying 'Mega' Warehouse Detention Centers Across US

https://www.bloomberg.com/news/features/2026-01-29/us-spends-hundreds-of-millions-on-warehouses-f...
9•Flip-per•7m ago•2 comments

Pip is no longer in the top packages downloaded from PyPI

https://pypistats.org/top
1•zahlman•7m ago•1 comments

Most and Least Expensive Supermarkets

https://www.consumerreports.org/money/prices-price-comparison/most-and-least-expensive-supermarke...
1•speckx•8m ago•0 comments

Show HN: Vesper – What Happens When an AI Designs Its Own Memory System

https://github.com/fitz2882/vesper-memory
1•fitz2882•9m ago•1 comments

Show HN: Turn fuzzy ideas into build-ready plans with AI

https://www.agiloop.ai
1•schart01•10m ago•0 comments

Claude Code Is Down

https://old.reddit.com/r/ClaudeCode/comments/1quv6qz/is_claude_code_down/
2•vintagedave•10m ago•1 comments

Treating documentation as an observable system in RAG-based products

https://alexanderfashakin.substack.com/p/docs-observability-why-your-ai-isnt
1•alex_fash•11m ago•1 comments

Local Access vs. Edge Compute

https://asadk.com/edge/
1•asadk•11m ago•0 comments

Show HN: Knowns – Give your AI persistent project memory

https://github.com/knowns-dev/knowns
1•howznguyen•12m ago•1 comments

The Frutiger Aero Archive

https://frutigeraeroarchive.org/
2•Gualdrapo•12m ago•0 comments

MichiAI: A 530M Full-Duplex Speech LLM with ~75ms Latency Using Flow Matching

https://ketsuilabs.io/blog/introducing-michi-ai
1•kwazar90•13m ago•0 comments

All Video Downloader

https://fastvideodl.com/
1•kaporalix•13m ago•0 comments

Reasoning Models Generate Societies of Thought

https://arxiv.org/abs/2601.10825
1•PaulHoule•14m ago•0 comments

AI Didn't Break Copyright Law, It Just Exposed How Broken It Was

https://www.jasonwillems.com/technology/2026/02/02/AI-Copyright/
2•at1as•14m ago•0 comments

Show HN: Spend.watch – The cash flow app I needed

https://spend.watch/app/main
1•splurk•14m ago•0 comments

I built an AI party planner with 100 themes, checklists, menus, and playlists

https://partygeniusai.com
1•baljeet_•14m ago•2 comments