
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
@axiomhq/axiom-node
Advanced tools
Axiom unlocks observability at any scale.
For more information check out the official documentation and our community Discord.
Install using npm install:
npm install @axiomhq/axiom-node
If you use the Axiom CLI, run eval $(axiom config export -f) to configure your environment variables.
Otherwise create a personal token in the Axiom settings and export it as AXIOM_TOKEN. Set AXIOM_ORG_ID to the organization ID from the settings page of the organization you want to access.
You can also configure the client using options passed to the constructor of the Client:
const client = new Client({
token: process.env.AXIOM_TOKEN,
orgId: process.env.AXIOM_ORG_ID,
});
Create and use a client like this:
import { Client } from '@axiomhq/axiom-node';
async function main() {
const client = new Client();
await client.ingestEvents('my-dataset', [
{ 'foo': 'bar'},
]);
const res = await client.query(`['my-dataset'] | where foo == 'bar' | limit 100`);
}
You can use Winston logger to send logs to Axiom. First, install the winston and @axiomhq/axiom-node packages, then
create an instance of the logger with the AxiomTransport.
import winston from 'winston';
import { WinstonTransport as AxiomTransport } from '@axiomhq/axiom-node';
const logger = winston.createLogger({
level: 'info',
format: winston.format.json(),
defaultMeta: { service: 'user-service' },
transports: [
new AxiomTransport({
dataset: 'my-dataset', // defaults to process.env.AXIOM_DATASET
token: 'my-token', // defaults to process.env.AXIOM_TOKEN
orgId: 'my-org-id', // defaults to process.env.AXIOM_ORG_ID
}),
],
});
For further examples, see the examples directory.
Distributed under the MIT License.
FAQs
The official NodeJS bindings for the Axiom API
The npm package @axiomhq/axiom-node receives a total of 2,693 weekly downloads. As such, @axiomhq/axiom-node popularity was classified as popular.
We found that @axiomhq/axiom-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.