Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@arcjet/next
Advanced tools
@arcjet/next
Arcjet helps developers protect their apps. Installed as an SDK, it provides a set of core primitives such as rate limiting and bot protection. These can be used independently or combined to create a set of layered defenses, such as signup form protection.
This is the Arcjet SDK for the Next.js framework.
Visit docs.arcjet.com to get started.
npm install -S @arcjet/next
import arcjet from "@arcjet/next";
import { NextApiRequest, NextApiResponse } from "next";
const aj = arcjet({
key: "ajkey_yourkey",
rules: [],
});
export default async function handler(
req: NextApiRequest,
res: NextApiResponse,
) {
const decision = await aj.protect(req);
if (decision.isDenied()) {
return res
.status(403)
.json({ error: "Forbidden", reason: decision.reason });
}
res.status(200).json({ name: "Hello world" });
}
Reference documentation is available at docs.arcjet.com.
Licensed under the Apache License, Version 2.0.
FAQs
Arcjet SDK for the Next.js framework
The npm package @arcjet/next receives a total of 2,383 weekly downloads. As such, @arcjet/next popularity was classified as popular.
We found that @arcjet/next demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.