Code Monkey home page Code Monkey logo

axiom-node's Introduction

Axiom Node

Workflow Latest Release License

Alt


Table of Contents

  1. Introduction
  2. Installation
  3. Authentication
  4. Usage
  5. Documentation
  6. Contributing
  7. License

Introduction

Axiom Node is a NodeJS package for accessing the Axiom API.

Installation

Install using npm

npm i @axiomhq/axiom-node

Install from source

git clone https://github.com/axiomhq/axiom-node
cd axiom-node
npm install

Authentication

The client is initialized with the url of the deployment and an access token when using Axiom Selfhost or an access token and the users organization id when using Axiom Cloud.

The access token can be a personal token retrieved from the users profile page or an ingest token retrieved from the settings of the Axiom deployment.

The personal access token grants access to all resources available to the user on his behalf.

The ingest token just allows ingestion into the datasets the token is configured for.

Usage

// Export `AXIOM_TOKEN` and `AXIOM_ORG_ID` for Axiom Cloud
// Export `AXIOM_URL` and `AXIOM_TOKEN` for Axiom Selfhost

import Client from '@axiomhq/axiom-node';

const client = new Client();

// ...

For more sample code snippets, head over to the examples directory.

Documentation

You can find the Axiom and Axiom node documentation on the docs website.

The documentation is divided into several sections:

Contributing

The main aim of this repository is to continue developing and advancing Axiom Node, making it faster and simpler to use. Kindly check our contributing guide on how to propose bugfixes and improvements, and submitting pull requests to the project

License

© Axiom, Inc., 2021

Distributed under MIT License (The MIT License).

See LICENSE for more information.

axiom-node's People

Contributors

bahlo avatar cdeutsch avatar dependabot[bot] avatar lilakurse avatar lukasmalkmus avatar seiflotfy avatar thecraftman avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

rmzr7

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.