api-client/packages/hoppscotch-js-sandbox
2022-01-17 19:20:30 +05:30
..
src fix: show an error when pre-request script fails (#1991) 2021-12-02 23:14:26 +05:30
.eslintrc.cjs chore: lint + bump deps 2021-11-04 18:23:50 +05:30
.gitignore refactor: bring js-sandbox project to the monorepo 2021-09-25 01:01:22 +05:30
.prettierignore refactor: bring js-sandbox project to the monorepo 2021-09-25 01:01:22 +05:30
.prettierrc.cjs chore: lint + bump deps 2021-11-04 18:23:50 +05:30
jest.config.js chore: lint + bump deps 2021-11-04 18:23:50 +05:30
jest.setup.ts chore: lint + bump deps 2021-11-04 18:23:50 +05:30
LICENSE refactor: bring js-sandbox project to the monorepo 2021-09-25 01:01:22 +05:30
package.json chore(deps): bump 2022-01-17 19:20:30 +05:30
README.md Update js-sandbox README 2021-09-26 11:27:46 +05:30
tsconfig.json chore: lint 2022-01-05 10:17:23 +05:30

Hoppscotch JavaScript Sandbox ALPHA

This package deals with providing a JavaScript sandbox for executing various security sensitive external scripts.

How does this work?

This package makes use of quickjs-empscripten for building sandboxes for running external code on Hoppscotch.

Currently implemented sandboxes:

  • Hoppscotch Test Scripts
  • Hoppscotch Pre Request Scripts

Development

  1. Clone the repository
git clone https://github.com/hoppscotch/hoppscotch
  1. Install the package dependencies
pnpm install
  1. Navigate to the package folder
cd hoppscotch/packages/hoppscotch-js-sandbox
  1. Try out the demo src/demo.ts using:
npm run demo

Versioning

This project follows Semantic Versioning but as the project is still pre-1.0. The code and the public exposed API should not be considered to be fixed and stable. Things can change at any time!

License

This project is licensed under the MIT License - see LICENSE for more details.



built with ❤︎ by the Hoppscotch Team and contributors.