Security News
Combatting Alert Fatigue by Prioritizing Malicious Intent
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
@architect/sandbox
Advanced tools
Architect dev server: run full Architect projects locally & offline
@architect/sandbox
Architect dev server: run full Architect projects locally & offline in a sandbox
npm i @architect/sandbox
npx sandbox
sandbox.cli({ver}, callback)
Invokes sandbox.start()
to start a sandbox instance, passing the parameter object in. Then sets up a filesystem watcher for changes to:
src/shared/, src/views/
, etc.), in which case it will re-hydrate all functions with the new files, andhttp()
.Prints the specified ver
on init, or falls back to the version string defined in this project's package.json
.
sandbox.db.start(callback)
Starts a singleton local in-memory DynamoDB server, automatically creating any tables or indexes defined in the project manifest's @tables
pragma. Also creates a local session table.
Returns an object with a close([callback])
method that gracefully shuts the server down.
Invokes callback
once the DB is up and listening.
sandbox.events.start(callback)
If Architect project manifest defines @queues
or @events
, sets up interprocess communication between your events and queues via a tiny web server.
Returns an object with a close([callback])
method that gracefully shuts the server down.
Invokes callback
once the server is up and listening.
sandbox.http.start(callback)
If Architect project manifest defines defines @http
or [@websocket
][websocket] routes, starts the necessary servers and sets up routes as defined in the project manifest.
Invokes callback
once the server is up and listening.
sandbox.http.close([callback])
Closes any servers started via sandbox.http.start()
.
sandbox.start({port, options, quiet}, callback)
Initializes the sandbox; first checks that ports are available to consume, prints a banner, loading basic environment variables and necessary AWS credentials, and sets up any local DBs via sandbox.db.start()
, events or queues via sandbox.events.start()
, HTTP handlers via sandbox.http.start()
.
Invokes callback
once everything is ready, passing null
as the first parameter and sandbox.end
as the second parameter.
Return a promise
if callback
is falsy.
sandbox.end([callback])
Shuts down the sandbox, closing down all running servers and services. Returns a promise
if callback
is falsy.
let sandbox = require('@architect/sandbox')
[1.13.3] 2020-09-14
.arc-config
FAQs
Architect dev server: run full Architect projects locally & offline
The npm package @architect/sandbox receives a total of 2,833 weekly downloads. As such, @architect/sandbox popularity was classified as popular.
We found that @architect/sandbox demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.