npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

kyte-api-nodejs

v1.0.4

Published

Kyte API Client Library

Downloads

36

Readme

kyte-api-nodejs

Node.js CI

Description

This repository contains the Node.js API for Kyte, designed to provide seamless integration and efficient management of Kyte's core features. Whether you're looking to automate tasks, handle complex user data, or offer real-time interactions, kyte-api-nodejs provides the necessary endpoints.

Features

  • User Authentication: Securely manage user sessions and data.
  • Real-time Data Processing: Handle and process data in real-time.
  • Scalable Architecture: Designed to scale effortlessly with your needs.

Installation

To get started with kyte-api-nodejs, clone the repository and install the dependencies.

git clone https://github.com/keyqcloud/kyte-api-nodejs.git
cd kyte-api-nodejs
npm install

Testing

To run the tests, you need to have the necessary environment variables set up. You can use a .env file to manage these variables locally. Create a .env file in the root of the project with the following content:

PUBLIC_KEY=your-public-key
PRIVATE_KEY=your-private-key
KYTE_ACCOUNT=your-kyte-account
KYTE_IDENTIFIER=your-kyte-identifier
KYTE_ENDPOINT=your-kyte-endpoint
KYTE_APP_ID=your-kyte-app-id
KYTE_TEST_MODEL=your-test-model

Run the tests using the following command:

npm test

Example Usage

Example GET Call

Here's an example of how to make a GET request using the KyteClient:

const KyteClient = require('kyte-api-nodejs');

// Load environment variables from .env file
require('dotenv').config();

// Replace these placeholders with actual values from your .env file
const publicKey = process.env.PUBLIC_KEY;
const privateKey = process.env.PRIVATE_KEY;
const kyteAccount = process.env.KYTE_ACCOUNT;
const kyteIdentifier = process.env.KYTE_IDENTIFIER;
const kyteEndpoint = process.env.KYTE_ENDPOINT;
const kyteAppId = process.env.KYTE_APP_ID;

const client = new KyteClient(publicKey, privateKey, kyteAccount, kyteIdentifier, kyteEndpoint, kyteAppId);

async function testGetCall() {
  try {
    const model = 'MODEL_NAME'; // replace with actual model
    const field = null; // Can be null if not needed
    const value = null; // Can be null if not needed
    const headers = {}; // Add any headers if needed

    const response = await client.get(model, field, value, headers);
    console.log('GET call response:', response);
  } catch (error) {
    console.error('Error making GET call:', error);
  }
}

testGetCall();

License

This project is licensed under the MIT License - see the LICENSE.md file for details.