⬢github JavaScript · 27 ★ +20 since we first saw it · pushed 8 d ago · MIT
SafeScript/safescript
Actually safe subset of Javascript, that can be embedded in many environments.
SafeScript is a strict, sandboxed subset of JavaScript — 'JSON for code' — designed for running untrusted logic safely. It removes eval, new, globals, and prototype access, compiles to plain JS and PHP, and lets scripts declare needed capabilities in .safe file headers. The compiler is tiny (~48 KB) and runs in Node or the browser.
Why now: It was just shared on Hacker News as a 'Show HN' post, sparking attention around its safe-by-construction approach to executing untrusted code.
Who it is for: Developers who need to execute user-submitted or AI-agent-provided logic safely, such as plugin hosts, web apps, and agent tool builders.
Stars over our 673 snapshots: 7 to 27, since 9 d ago.
Where people talked about it
API: https://socialmediatrends-api.osmike.com/v1/repos/SafeScript/safescript