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 in just a few lines of code. Implement rate limiting, bot protection, email verification & defend against common attacks.
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 { NextResponse } from "next/server";
const aj = arcjet({
// Get your site key from https://app.arcjet.com
// and set it as an environment variable rather than hard coding.
// See: https://nextjs.org/docs/app/building-your-application/configuring/environment-variables
key: process.env.ARCJET_KEY,
rules: [],
});
export async function GET(req: Request) {
const decision = await aj.protect(req);
if (decision.isDenied()) {
return NextResponse.json(
{ error: "Too Many Requests", reason: decision.reason },
{ status: 429 },
);
}
return NextResponse.json({ message: "Hello world" });
}
Reference documentation is available at docs.arcjet.com.
Licensed under the Apache License, Version 2.0.
1.0.0-alpha.8 (2024-02-09)
ARCJET_BASE_URL
to small set of allowed URLs (#83)ARCJET_BASE_URL
to small set of allowed URLs (#83) (d9184ea)@connectrpc/connect-web
from 1.2.0 to 1.2.1 (#101) (28f4a50)@connectrpc/connect-web
from 1.2.1 to 1.3.0 (#120) (289446d)@connectrpc/connect
from 1.2.0 to 1.2.1 (#100) (74013ef)ai
from 2.2.30 to 2.2.31 in /examples/nextjs-14-openai (#99) (be8c23b)eslint-config-turbo
from 1.11.2 to 1.11.3 (#107) (b01f418)openai
from 4.24.1 to 4.24.2 in /examples/nextjs-14-openai (#121) (705f871)@types/react
from 18.2.45 to 18.2.46 (#96) (fe666c6)@types/react
from 18.2.45 to 18.2.46 in /examples/nextjs-13-pages-wrap (#94) (c21a5e6)@types/react
from 18.2.45 to 18.2.46 in /examples/nextjs-14-app-dir-validate-email (#93) (90e1965)@types/react
from 18.2.45 to 18.2.46 in /examples/nextjs-14-openai (#98) (8c63a63)@types/react
from 18.2.45 to 18.2.46 in /examples/nextjs-14-pages-wrap (#95) (3ffec0d)@types/react
from 18.2.46 to 18.2.47 in /examples/nextjs-13-pages-wrap (#116) (1341acc)@types/react
from 18.2.46 to 18.2.47 in /examples/nextjs-14-app-dir-rl (#113) (7e8ae3c)@types/react
from 18.2.46 to 18.2.47 in /examples/nextjs-14-app-dir-validate-email (#111) (e160ce1)@types/react
from 18.2.46 to 18.2.47 in /examples/nextjs-14-openai (#110) (410d396)@types/react
from 18.2.46 to 18.2.47 in /examples/nextjs-14-pages-wrap (#118) (ab05d24)postcss
from 8.4.32 to 8.4.33 in /examples/nextjs-13-pages-wrap (#103) (a3cd7f0)postcss
from 8.4.32 to 8.4.33 in /examples/nextjs-14-app-dir-rl (#105) (e90fc74)postcss
from 8.4.32 to 8.4.33 in /examples/nextjs-14-app-dir-validate-email (#102) (b0df5a2)postcss
from 8.4.32 to 8.4.33 in /examples/nextjs-14-openai (#104) (2192e3e)postcss
from 8.4.32 to 8.4.33 in /examples/nextjs-14-pages-wrap (#108) (916402d)tailwindcss
from 3.4.0 to 3.4.1 in /examples/nextjs-13-pages-wrap (#115) (a9472c0)tailwindcss
from 3.4.0 to 3.4.1 in /examples/nextjs-14-app-dir-rl (#114) (5066c6d)tailwindcss
from 3.4.0 to 3.4.1 in /examples/nextjs-14-app-dir-validate-email (#112) (d8173b3)tailwindcss
from 3.4.0 to 3.4.1 in /examples/nextjs-14-openai (#109) (e44f829)tailwindcss
from 3.4.0 to 3.4.1 in /examples/nextjs-14-pages-wrap (#117) (6b65676)ttl
argument to expiresAt
in cache implementation (#218) (0414e10).wasm?module
(#217) (ee6f387)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.