Installations
npm install fastify-piscina
Developer Guide
Typescript
Yes
Module System
CommonJS, ESM
Node Version
18.14.2
NPM Version
9.5.0
Score
51
Supply Chain
80.4
Quality
77.9
Maintenance
100
Vulnerability
100
License
Contributors
Unable to fetch Contributors
Languages
JavaScript (85.16%)
TypeScript (14.84%)
Developer
piscinajs
Download Statistics
Total Downloads
16,139
Last Day
4
Last Week
229
Last Month
695
Last Year
8,396
GitHub Statistics
64 Stars
34 Commits
8 Forks
3 Watching
3 Branches
9 Contributors
Package Meta Information
Latest Version
5.0.0
Package Id
fastify-piscina@5.0.0
Unpacked Size
17.96 kB
Size
6.84 kB
File Count
19
NPM Version
9.5.0
Node Version
18.14.2
Publised On
03 Dec 2023
Total Downloads
Cumulative downloads
Total Downloads
16,139
Last day
-84.6%
4
Compared to previous day
Last week
44%
229
Compared to previous week
Last month
10.7%
695
Compared to previous month
Last year
100%
8,396
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
Dev Dependencies
7
fastify-piscina - A Piscina plugin for Fastify
Example
1const fastify = require('fastify')(); 2const { resolve} = require('path'); 3 4fastify.register(require('fastify-piscina'), { 5 // Piscina Options object. See Piscina docs for details 6 filename: resolve(__dirname, 'worker.js') 7}); 8 9// Declare a route 10fastify.get('/', async (request, reply) => { 11 reply.send({ hello: `world [${await fastify.runTask({ a: 1, b: 2 })}]` }); 12}); 13 14// Run the server! 15fastify.listen(3000, function (err, address) { 16 if (err) { 17 fastify.log.error(err); 18 process.exit(1); 19 } 20 fastify.log.info(`server listening on ${address}`); 21});
Once registered, the plugin decorates the fastify
instance
with two new properties:
fastify.piscina
{Piscina
} The Piscina instance.fastify.runTask()
{Function
} The Piscina runTask function.
See the Piscina docs for more information.
The Team
- James M Snell jasnell@gmail.com
- Anna Henningsen anna@addaleax.net
- Matteo Collina matteo.collina@gmail.com
Acknowledgements
Piscina development is sponsored by NearForm Research.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Warn: project license file does not contain an FSF or OSI license.
Reason
Found 5/15 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/ci.yml:1
- Info: no jobLevel write permissions found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/piscinajs/fastify-piscina/ci.yml/current?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/piscinajs/fastify-piscina/ci.yml/current?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/piscinajs/fastify-piscina/ci.yml/current?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/piscinajs/fastify-piscina/ci.yml/current?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/piscinajs/fastify-piscina/ci.yml/current?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/ci.yml:23
- Warn: npmCommand not pinned by hash: .github/workflows/ci.yml:55
- Info: 0 out of 5 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 2 npmCommand dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 22 are checked with a SAST tool
Score
4.1
/10
Last Scanned on 2024-12-16
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More