
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@appsignal/koa
Advanced tools
 
@appsignal/koa
The AppSignal for Node.js integration for Koa (koa
) v2.0.0+.
⚠️ This package is no longer required for AppSignal for Node.js version 3.0. If you use version 3.0 or newer in your app, please remove this package from your package.json
file.
First, sign up for an AppSignal account and add both the @appsignal/nodejs
and @appsignal/koa
packages to your package.json
. Then, run yarn install
/npm install
.
You can also add these packages to your package.json
on the command line:
yarn add @appsignal/nodejs @appsignal/koa
npm install --save @appsignal/nodejs @appsignal/koa
You can then import and use the package in your app.
The module includes an AppSignal intrumentation plugin for automatically instrumenting the middlewares or routes of your application.
// AT THE VERY TOP OF THE ENTRYPOINT OF YOUR APPLICATION...
const { Appsignal } = require("@appsignal/nodejs");
const appsignal = new Appsignal({
active: true,
name: "<YOUR APPLICATION NAME>",
pushApiKey: "<YOUR API KEY>"
});
appsignal.instrument(require("@appsignal/koa"));
// ...ALL THE REST OF YOUR IMPORTS AND CODE GO HERE!
const Koa = require("koa");
const Router = require("@koa/router"); // @koa/router is also supported out of the box!
const app = new Koa();
// Add error handling
app.on("error", (error) => {
appsignal
.tracer()
.setError(error)
});
Note that generator-based middleware was deprecated in Koa version 2.x, and the next major Koa version will remove support for them entirely.
Our instrumentation does not instrument generator-based middleware. The Koa 2.x migration guide explains how you can use the koa-convert
library to convert them to new-style async middleware.
Thinking of contributing to this repo? Awesome! 🚀
Please follow our Contributing guide in our documentation and follow our Code of Conduct.
Also, we would be very happy to send you Stroopwafles. Have look at everyone we send a package to so far on our Stroopwafles page.
Contact us and speak directly with the engineers working on AppSignal. They will help you get set up, tweak your code and make sure you get the most out of using AppSignal.
FAQs
 
The npm package @appsignal/koa receives a total of 33 weekly downloads. As such, @appsignal/koa popularity was classified as not popular.
We found that @appsignal/koa demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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
/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.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.