{"id":19501233,"url":"https://github.com/acryps/vlsandbox","last_synced_at":"2026-06-11T13:31:23.624Z","repository":{"id":57393493,"uuid":"408520446","full_name":"acryps/vlsandbox","owner":"acryps","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-15T10:01:59.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T19:15:56.002Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/acryps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-20T16:35:05.000Z","updated_at":"2023-02-22T15:26:08.000Z","dependencies_parsed_at":"2023-01-29T02:46:08.099Z","dependency_job_id":null,"html_url":"https://github.com/acryps/vlsandbox","commit_stats":null,"previous_names":["vlvtin/vlsandbox"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/acryps/vlsandbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acryps%2Fvlsandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acryps%2Fvlsandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acryps%2Fvlsandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acryps%2Fvlsandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acryps","download_url":"https://codeload.github.com/acryps/vlsandbox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acryps%2Fvlsandbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34201840,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T22:11:59.120Z","updated_at":"2026-06-11T13:31:23.606Z","avatar_url":"https://github.com/acryps.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version](http://badge.acryps.com/npm/vlsandbox)](http://badge.acryps.com/go/npm/vlsandbox)\n\n# vlsandbox Scoped Sandbox\nNeed to run external code (e.g. Plugins) in your application, without exposing `globalThis` object? Try vlsandbox\n\n```\nconst sandbox = new Sandbox(`\n    alert(message);\n`);\n\nsandbox.run(); // will throw an error, as alert and message are exposed to the sandbox\n\nsandbox.expose(\"alert\"); // allow access to window.alert\nsandbox.expose(\"message\", \"Hello World\"); // pass custom variable\n\nsandbox.run(); // will show a alert \"Hello World\"\n```\n\n## Security and implications\n\u003e Do NOT use this framework as a end-all-be-all solution to encapsulating external code. vlsandbox will not prevent you from exposing a objected containing a window reference! Never expose HTML-Elements to sandboxes!\n\nYou can't use the classic function declaration within sandboxes, because `globalThis` can be obtained as demonstrated in this example:\n```\nconsole.log(() =\u003e this); // will return {} or whatever you passed to run(scope?)\nconsole.log(function() { return this }) // will return globalThis\n```\n\n## Sponsoring and support\nThis project is sponsored and supported by [VLVT.IN GmbH](https://vlvt.in), [luucy AG](https://luucy.ch) and [inter allied crypsis / ACRYPS](https://acryps.com).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facryps%2Fvlsandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facryps%2Fvlsandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facryps%2Fvlsandbox/lists"}