Nelgifka Reference

API Reference Documentation

Comprehensive guide to the Nelgifka API, including classes, methods, and usage examples.

📦 Installation 📘 Core API

Installation

Using NPM

npm install @nelgifka/core

The core SDK for integrating with Nelgifka in your JavaScript projects.

Using CDN

<script src="https://cdn.nelgifka.com/v1/core.js"></script>

For HTML projects without a module bundler.

Core API Reference

Categories

Authentication

Methods for API key authentication and token management

See Documentation →

Data Processing

Tools for handling and transforming data structures

See Documentation →

Authentication API

AuthClient

const client = new AuthClient({
  apiKey: 'your_api_key',
  timeout: 5000
});
login() - Generate authenticated session
tokenExpires() - Check token validity status

Data Processing API

DataTransformer

const transformer = new DataConverter();
const result = transformer.convert({
  type: 'json',
  input: raw_data
});
convertToCSV() - Convert JSON to CSV format
cleanData() - Sanitize input data

Code Examples

Basic Usage

const Nelgifka = require('@nelgifka/core');

const client = new Nelgifka.Client({
  auth: {
    apiKey: 'your-api-key'
  },
  baseURL: 'https://api.nelgifka.com/v1'
});

client.authenticate()
  .then(token => console.log('Authenticated!'));

Endpoints

/auth/login - POST User authentication
/data/transform - POST Data processing

Response Format

{
  "status": "success",
  "data": { ... },
  "meta": {
    "timestamp": "2025-08-24T14:30:00Z"
  }
}