
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@axiomhq/nextjs
Advanced tools
The @axiomhq/nextjs
package allows you to send data from a Next.js app to Axiom.
// lib/axiom/server.ts
import axiomClient from '@/lib/axiom/axiom';
import { Logger, ConsoleTransport, AxiomJSTransport } from '@axiomhq/logging';
import { createAxiomRouteHandler, serverContextFieldsFormatter } from '@axiomhq/nextjs';
export const logger = new Logger({
transports: [
new AxiomJSTransport({ axiom: axiomClient, dataset: process.env.NEXT_PUBLIC_AXIOM_DATASET! }),
new ConsoleTransport({ prettyPrint: true }),
],
formatters: [serverContextFieldsFormatter],
});
export const withAxiom = createAxiomRouteHandler(logger);
// api/route.ts
import { withAxiom } from '@/lib/axiom/server';
export const GET = withAxiom(async () => {
logger.info('Hello World!');
return new Response('Hello World!');
});
npm install @axiomhq/js @axiomhq/logging @axiomhq/nextjs @axiomhq/react
For more information about how to set up and use the @axiomhq/nextjs
package, see the axiom.co/docs/send-data/nextjs.
FAQs
The official Next.js package for Axiom
We found that @axiomhq/nextjs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.