Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
gatsby-parallel-runner
Advanced tools
This is an early WIP version of a runner for gatsby that can parallelize tasks like image processing.
This is an early WIP version of a runner for gatsby that can parallelize tasks like image processing.
When gatsby is started from a parent process with the environment variable ENABLE_GATSBY_EXTERNAL_JOBS
set,
it will communicate some jobs up to the parent process via ipc, instead of running them in it's own internal
queue.
This allows a parent process to orchestrate certain task for better paralelization with cloud functions, etc.
This WIP will paralelize the sharp plugin image transformations to a Google Cloud Function via Google PubSub.
There's currently no versioning of the sharp plugin and no real error handling, but the basics are working.
Install in your gatsby project:
npm i gatsby-parallel-runner
Set relevant env variables in your shell:
export GOOGLE_APPLICATION_CREDENTIALS=~/path/to/your/google-credentials.json
export TOPIC=parallel-runner-topic
export WORKER_TOPIC=function-worker-topic
Deploy the cloud function:
./node_modules/.bin/gatsby-parallel-runner deploy
To run a Gatsby build:
./node_modules/.bin/gatsby-parallel-runner
FAQs
Gatsby plugin that allows paralellization of external tasks
The npm package gatsby-parallel-runner receives a total of 20 weekly downloads. As such, gatsby-parallel-runner popularity was classified as not popular.
We found that gatsby-parallel-runner demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.