frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

The browser is the sandbox

https://simonwillison.net/2026/Jan/25/the-browser-is-the-sandbox/
26•enos_feedler•1h ago

Comments

nezhar•44m ago
I like the perspective used to approach this. Additionally, the fact that major browsers can accept a folder as input is new to me and opens up some exciting possibilities.
augusteo•41m ago
The folder input thing caught me off guard too when I first saw it. I've been building web apps for years and somehow missed that `webkitdirectory` attribute.

What I find most compelling about this framing is the maturity argument. Browser sandboxing has been battle-tested by billions of users clicking on sketchy links for decades. Compare that to spinning up a fresh container approach every time you want to run untrusted code.

The tradeoff is obvious though: you're limited to what browsers can do. No system calls, no arbitrary binaries, no direct hardware access. For a lot of AI coding tasks that's actually fine. For others it's a dealbreaker.

I'd love to see someone benchmark the actual security surface area. "Browsers are secure" is true in practice, but the attack surface is enormous compared to a minimal container.

nezhar•31m ago
I see this as a way to build apps with agentic flows where the original files don't need manipulation; instead, you create something new. Whether it's summarizing, answering questions, or generating new documents, you can use a local/internal LLM and feel relatively safe when tool calling is also restricted.
stevefan1999•37m ago
We never say that it isn't. There is a reason Google developed NaCl in the first place that inspired WebAssembly to become the ultimate sandbox standard. Not only that, DOM, JS and CSS also serves as a sandbox of rendering standard, and the capability based design is also seen throughout many browsers even starting with the Netscape Navigator.

Locking down features to have a unified experience is what a browser should do, after all, no matter the performance. Of course there are various vendors who tried to break this by introducing platform specific stuff, but that's also why IE, and later Edge (non-chrome) died a horrible death

There are external sandbox escapes such as Adobe Flash, ActiveX, Java Applet and Silverlight though, but those external escapes are often another sandbox of its own, despite all of them being a horrible one...

But with the stabilization of asm.js and later WebAssembly, all of them is gone with the wind.

Sidenote: Flash's scripting language, ActionScript is also directly responsible for the generational design of Java-ahem-ECMAScript later on, also TypeScript too.

nezhar•37m ago
Related https://news.ycombinator.com/item?id=12098338
zephen•26m ago
An interesting technique.

The problems discussed by both Simon and Paul where the browser can absolutely trash any directory you give it is perhaps the paradigmatic example where git worktree is useful.

Because you can check out the branch for the browser/AI agent into a worktree, and the only file there that halfway matters is the single file in .git which explains where the worktree comes from.

It's really easy to fix that file up if it gets trashed, and it's really easy to use git to see exactly what the AI did.

modeless•24m ago
Last I looked (a couple of years ago), you could ask the user for read-write access to a directory in Chrome using the File System Access API, however you couldn't persist this access, so the user would have to manually re-grant permission every time you reloaded the tab. Has this been fixed yet? It's a showstopper for the most interesting uses of the File System Access API IMO.
benatkin•13m ago
Good time to surface the limitations of a Content Security Policy: https://github.com/w3c/webappsec-csp/issues/92
tdhz77•9m ago
I always find Simon Wilson’s post to be odd. He gets access to things, being tipped of things. Who is paying and why? Most of the posts are of little to no value to me. This might be the prime example. Webassembly is the sandbox. That is unless you disagree than you are being paid for your posts and not disclosing it.
cadamsdotcom•4m ago
Unfortunately sandboxing your computer from the browser won’t sandbox gullible agents away from your online banking.

Functioning Open Source Version of Lovable/Bolt/Replit

https://github.com/polterguy/magic
1•ainiro•5m ago•0 comments

Exhausting the Clang Preprocessor

https://blog.vursc.org/cpp-dos.html
1•isoow•6m ago•0 comments

Show HN: GLM-Image Dense-knowledge AI Generator

https://www.glmimage1.com
1•Zach_HE•8m ago•0 comments

How to think about Gas Town

https://steveklabnik.com/writing/how-to-think-about-gas-town/
1•wyldfire•11m ago•0 comments

Burhan (TruthCert): a fail-closed "ship gate" for LLM outputs

https://github.com/mahmood726-cyber/Burhan
1•mahmood726•12m ago•0 comments

Factorioctl: Claude Code Plays Factorio

https://github.com/MarkMcCaskey/factorioctl
1•maoeurk•14m ago•0 comments

My Talking Pet AI

https://mytalkingpet.ai/
1•Evan233•16m ago•1 comments

"Clean Code" a Timeless Truth or a Myth We Keep Telling Ourselves?

https://www.youtube.com/watch?v=OjW_0ZRdN5E
1•aivarsk•22m ago•0 comments

Show HN: A curated library of prompt patterns for Nano models

https://banana-prompts.com/
1•icstiss•23m ago•0 comments

Show HN: Privacy-first JSON/YAML toolkit – 100% client-side, no server

https://tools.pinusx.com
1•dbhariprakash•34m ago•1 comments

Show HN: We ran a test–92% of local businesses don't show up in AI answers

https://getchatalyst.com/
1•Chatalyst•34m ago•0 comments

Email Writer – a tiny AI tool to write better emails, instantly

https://tryemailwriter.com/
1•mddanishyusuf•36m ago•0 comments

Ask HN: Freelance Qt C++

2•shchess•38m ago•1 comments

India to slash tariffs on cars to 40% in trade deal with EU

https://www.reuters.com/world/india/india-slash-tariffs-cars-40-trade-deal-with-eu-sources-say-20...
1•petethomas•42m ago•0 comments

Am I the only one who switches between ChatGPT, Gemini, and Claude?

https://twitter.com/oswarld_oz/status/2015432998406226289
1•haebom•44m ago•2 comments

TurboKV: A fast, embedded key-value store in Rust

https://github.com/hanshiro-dev/turbokv
2•rgbimbochamp•45m ago•0 comments

Ask HN: Running UPDATEs in production always feels heavier than it should

2•Lucy_Bai•46m ago•1 comments

The Space Propulsion Tier List [video]

https://www.youtube.com/watch?v=KnLUxrLPSMk
1•chii•54m ago•0 comments

The Chip Technology That Gives Intel an Edge over TSMC

https://www.fool.com/investing/2026/01/21/the-chip-technology-that-finally-gives-intel-an-ed/
1•alhazrod•54m ago•1 comments

An open source service to manage Dismissible UI state

https://dismissible.io
1•crimsonronin•55m ago•1 comments

Openhouse.openai.org

https://openhouse.openai.org/
2•chowYunSlim•58m ago•0 comments

Show HN: Deploy backends without the hassle. An Open source alternative

https://www.shorlabs.com/
10•tarzenyinc•59m ago•0 comments

I fine-tuned a 0.5B LLM to classify support tickets for $10/month

https://silentworks.tech/test
1•molchanovartem•1h ago•1 comments

You Need to Clear Your Coding Agent's Context Window

https://willness.dev/blog/one-session-per-task
4•augusteo•1h ago•0 comments

Open Access vs. Open Excess

https://blog.doaj.org/2026/01/26/open-access-vs-open-excess-doaj-and-ai-scraper-bots/
1•jruohonen•1h ago•0 comments

The Oracle's Paradox – AI-Created Interactive Fiction

https://mkrolick.github.io/oracles-paradox/
1•mkrolick•1h ago•0 comments

What Is an AI/ML Success Architect?

https://yanirseroussi.com/2026/01/26/what-is-an-ai-ml-success-architect/
1•yanir•1h ago•0 comments

WhatsApp is working on a subscription plan to avoid ads in the Updates tab

https://wabetainfo.com/whatsapp-beta-for-android-2-26-3-9-whats-new/
2•tcfhgj•1h ago•0 comments

What's New in Pandas 3

https://datapythonista.me/blog/whats-new-in-pandas-3
2•datapythonista•1h ago•0 comments

India confirmed 5 cases of Nipah virus (mortality rate of up to 75%, no cure)

https://twitter.com/i/status/2015444837332574603
4•seinecle•1h ago•1 comments