Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
fastify-auto-push-v3
Advanced tools
HTTP/2 auto-push middleware for fastify updated for Fastify V3
This is not an official Google product.
HTTP/2 is a major revision of the HTTP protocol. One of its differences from HTTP/1 is server push, which allows a server to pre-emptively send responses to a client in association with a previous client-initiated request. This can be useful when the server knows the client will need to have those responses available in order to fully process the response to the original request.
It sounds simple and easy but is quite tricky for service developers to manually figure out and configure what resources to push in association with another resource. There are also many pitfalls the implementors must know about. See Rules of Thumb for HTTP/2 Push for the details.
This project is for automating server push and getting rid of the need for
manual configurations from service developers. It is a
fastify plugin that serves static files and is
implemented on top of the
h2-auto-push
package. It can be
thought as a replacement of the
fastify-static
plugin that
supports automatic server-push.
For more details, see the h2-auto-push
package.
This package currently works only with Node >=9.4.0.
import * as fastify from 'fastify';
import {staticServe} from 'fastify-auto-push';
...
const app = fastify({https: {key, cert}, http2: true});
app.register(staticServe, {root: 'path/to/static'});
...
FAQs
HTTP/2 auto-push middleware for fastify updated for Fastify V3
The npm package fastify-auto-push-v3 receives a total of 0 weekly downloads. As such, fastify-auto-push-v3 popularity was classified as not popular.
We found that fastify-auto-push-v3 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.