{"id":48455357,"url":"https://github.com/wmakeev/vm-sandbox","last_synced_at":"2026-04-06T22:31:08.314Z","repository":{"id":69415946,"uuid":"449210227","full_name":"wmakeev/vm-sandbox","owner":"wmakeev","description":"JavaScript code sandbox based on node.js `vm` module","archived":false,"fork":false,"pushed_at":"2022-01-18T09:25:52.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T00:33:13.336Z","etag":null,"topics":["isolation","metavm","sandbox","testing","vm"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/wmakeev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-18T08:57:15.000Z","updated_at":"2022-01-18T08:58:50.000Z","dependencies_parsed_at":"2023-07-30T18:15:23.807Z","dependency_job_id":null,"html_url":"https://github.com/wmakeev/vm-sandbox","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"045c6eb7f08b54c3cac5550f9873a5ece14f2e62"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wmakeev/vm-sandbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmakeev%2Fvm-sandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmakeev%2Fvm-sandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmakeev%2Fvm-sandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmakeev%2Fvm-sandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wmakeev","download_url":"https://codeload.github.com/wmakeev/vm-sandbox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmakeev%2Fvm-sandbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31492751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T17:22:55.647Z","status":"ssl_error","status_checked_at":"2026-04-06T17:22:54.741Z","response_time":112,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["isolation","metavm","sandbox","testing","vm"],"created_at":"2026-04-06T22:31:06.493Z","updated_at":"2026-04-06T22:31:08.309Z","avatar_url":"https://github.com/wmakeev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vm-sandbox\n\n[![npm](https://img.shields.io/npm/v/@wmakeev/vm-sandbox.svg?maxAge=1800\u0026style=flat-square)](https://www.npmjs.com/package/@wmakeev/vm-sandbox)\n\n\u003e JavaScript code sandbox based on node.js `vm` module. Use for better testing and code isolation.\n\nInspired by [metavm](https://github.com/metarhia/metavm)\n\n## Install\n\n```bash\nnpm install @wmakeev/vm-sandbox\n```\n\n## Using\n\n```js\nconst src = `\n  const { mult, round } = api\n\n  const radius = 12\n\n  const s = round(mult(mult(2, PI), radius))\n\n  s\n`\n\nconst script = createScript('myScript', src, {\n  context: {\n    api: {\n      mult: (a, b) =\u003e a * b,\n      round: Math.round\n    },\n    PI: Math.PI\n  }\n})\n\nconsole.log(script.exports) // 75\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwmakeev%2Fvm-sandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwmakeev%2Fvm-sandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwmakeev%2Fvm-sandbox/lists"}