HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
tc39
proposal-shadowrealm
HTML2018–2026
tc39 / proposal-shadowrealm

proposal-shadowrealm

ECMAScript Proposal, specs, and reference implementation for Realms

16Distinct people
16Mentions
0Explicit recommenders
1.6KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

ECMAScript Proposal, specs, and reference implementation for Realms

GitHub

Where it is used

No documented product use was verified in the last source check.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

Mentioned in the same Hacker News threads. That is not proof they are substitutes.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year16 dated mentions

Observed mentions: 2018-10-05 00:39:16 UTC to 2026-08-30 04:54:54 UTC.

012342018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments20182019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 4 mentions; 0 submissions, 4 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments20222023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2026-01-01 00:00:00 UTC to 2027-01-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments. Incomplete calendar period.2026*

* An incomplete calendar period is marked with an outlined bar. Its count is not directly comparable with a full period.

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC202
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC404
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC202
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC202
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC303
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC000
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC101
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC101
2026 (partial)2026-01-01 00:00:00 UTC2027-01-01 00:00:00 UTC110

What Hacker News says

16 sources
The most promising things I know of are Google Fuchsia (which is a mobile OS), and Goblins, which is a Scheme library for doing distributed programming. There is something called Realms which is being worked on for JS, but I haven't dug into it too deeply yet. It might provide a good foundation for building ocaps into the browser, though. https://github.com/tc39/proposal-realms https://en.wikipedia.org/wiki/Google_Fuchsia https://docs.racket-lang.org/goblins/index.html
In JWT should not be your default for sessions
Fairly certain you don't want to be throwing `eval` in your code. I'm also building a workflow engine on the side, but don't want to see you run into security issues :) Look into the realms TC39 proposal, the SES TC39 proposal, or running (no joke) a lightweight ES6 environment in webassembly to eval your code. https://github.com/tc39/proposal-realms/#ecmascript-spec-pro... https://github.com/tc39/proposal-ses https://github.com/justjake/quickjs-emscripten
In Evaluating JavaScript in the browser for a low code product
Ah, okay this is interesting. The entire notebook is one iframe, which lets you do more of the metaprogramming and sharing variables. Both printing (via console) and non-printing infinite loops crash the iframe until you close the page. And the reason my document.innerHTML = "" test was recoverable is that your notebook-top-button-container is not in the iframe (and it has that refresh button!). I'll have to look more into async stuff. Great eval article there. I've found these four lines to work for importing content[1]. I dove into realms[2] and the realms shim [3] a while ago after reading about Figma's engineering behind plugins [4] but I never figured out how I might use that for my system. You might take a look at how the codemirror author built his book [5] and editor [6] in this repo [7]. He implements the loop detection I derided
Read the rest
in my first comment. I shouldn't be so harsh, it's a good and simple idea. It's just not an answer, more of a hack. My interests align pretty well with the p5js editor audience[8], so some of the early issues there convey why the simple loop detection isn't ideal. I'll drop you a link soon! [1]: https://stackoverflow.com/a/5282268 [2]: https://github.com/tc39/proposal-realms [3]: https://github.com/Agoric/realms-shim [4]: https://www.figma.com/blog/how-we-built-the-figma-plugin-sys... [5]: https://eloquentjavascript.net/ [6]: https://eloquentjavascript.net/code/ [7]: https://github.com/marijnh/Eloquent-JavaScript/tree/master/h... [8]: https://github.com/processing/p5.js-web-editor/issues/174
In Show HN: Starboard – Fully in-browser literate notebooks like Jupyter Notebook
> web based programs that could allow third party add-ons The library in the current post, Seafox - cute name! - is "just" the parser, turning JavaScript code into an abstract syntax tree. One would need a sandboxed interpreter/evaluator/virtual machine to run it. You might be aware of Figma's efforts, where they compiled Fabrice Bellard's QuickJS engine (in C) to WASM, to use for their plugin system. https://www.figma.com/blog/how-we-built-the-figma-plugin-sys... https://www.figma.com/blog/an-update-on-plugin-security/ https://bellard.org/quickjs/ The first article describes an earlier system using Realms, a shim/polyfill for an ECMAScript proposal. https://github.com/agoric/realms-shim/ https://github.com/tc39/proposal-realms
In A fast 100% spec compliant, self-hosted JavaScript parser
When we talk about sandboxing dependencies, we're talking about sandboxing at an API level, not an OS level -- in some languages (particularly memory-unsafe languages) that's difficult, but in general the intention isn't to put dependencies in a separate process; it's to restrict access to dangerous APIs like network requests. Sandboxing might be something like, "I'm importing a function, and I'm going to define a scope, and within that scope, it will have access to these methods, and nothing else." Imagine the following pseudo-code in a fictional, statically typed, rigid langauge. import std from 'std'; import disk from 'io'; import request from 'http'; //This dependency (and its sub-dependencies) can //only call methods in the std library, nothing else. //I can call special_sort anywhere I want and I *know* //it can't mak
Read the rest
e network requests or access the disk. //All it can do is call a few core std libraries. import (std){ special_sort } from 'shady_special_sort'; function save (data) { disk.write('output.log', data); } function safe_save (data) { if (!valid(data)) { return false; } save(data); } function main () { //An on-the-fly sandbox -- access to safe_save and request. (request, safe_save){ save('my_malware_payload'); //compile-time error disk.write('output.log', 'my_malware_payload'); //compile-time error safe_save('my_malware_payload'); //allowed } } We're not treating our dependencies or even our inline code as a service here -- we're not loading the code into a separate process or forcing ourselves to go through a connector to call into the API. We're just defining a static constraint that will stop our program from compiling if the code tries to do something we don't want, it's no different than a type-check. The difference between this and pure static analysis is that static analysis isn't something that's built into the language, and static analysis tries to guess intent. Static analysis says, "that looks shifty, let's alert someone." An language-level sandbox says, "I don't care about the intent, you have access to X and that's it." Even in a dynamic language like JS, when people talk about stuff like the Realms proposal[0][1], they're talking about a system that's a lot closer to the above than they are about creating standalone services that would live in their own processes or threads. This kind of style of thinking about security lends itself particularly well to functional languages and functional coding styles, but there's no reason it can't also work with more traditional class-based approaches as well -- you just have to be more careful about what you're passing around and what has access to what objects. class Dangerous () { unsafe_write (data) { //unvalidated disk access } } class Safe () { public Dangerous ref = new Dangerous(); safe_write (data) { validate(data); ref.unsafe_write(); } } function main () { Dangerous instance = new Dangerous(); (instance){ //I've just accidentally given my sandbox //access to `unsafe_write` because I left //a property public. } } Even with that concern, worrying about my own references is still way, way easier than worrying about an entire, separate codebase that I can't control. [0]: https://github.com/tc39/proposal-realms [1]: https://gist.github.com/dherman/7568885
In Two malicious Python libraries caught stealing SSH and GPG keys

Showing the 15 most recent of 16 sources. Enable JavaScript to search and browse every indexed mention.

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.