
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
fastify-msgpack
Advanced tools
Fastify and MessagePack, together at last. Uses @msgpack/msgpack by default.
Provides transparent middleware that can be used to support clients requesting Accept: application/msgpack from endpoints using res.json or sending Content-Type: application/msgpack to any endpoint. You can continue to use req.body and res.json and fastifyMsgpack will handle the conversion in the background using @msgpack/msgpack.
$ npm install --save fastify-msgpack
// or
$ yarn add fastify-msgpack
$ npm test
const fastifyMsgpack = require("fastify-msgpack");
// ...
// custom plugin
fastify.register(fastifyMsgpack)
'use strict'
const fastify = require('fastify')({
logger: true
})
// custom plugin
fastify.register(require('fastify-msgpack'))
fastify.post('/decode', (req, reply) => {
// http POST http://localhost:5000/decode Accept:application/msgpack Content-Type:application/msgpack @msgpack\package-msgpack.dat
const body = req.body
return body
})
fastify.get('/encode', (req, reply) => {
// http http://localhost:5000/encode Accept:application/msgpack
reply.send({ hello: 'fastify-plugin' })
})
const start = async () => {
try {
await fastify.listen(5000)
} catch (err) {
fastify.log.error(err)
process.exit(1)
}
}
start()
FAQs
A simple fastify-plugin to serialize binary data to msgpack
The npm package fastify-msgpack receives a total of 6 weekly downloads. As such, fastify-msgpack popularity was classified as not popular.
We found that fastify-msgpack 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.