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 🙏

© 2026 – Pkg Stats / Ryan Hefner

kamburga-services

v1.0.0

Published

Kamburga API Services Client

Readme

Kamburga Services

A client library for interacting with the Kamburga API services.

Installation

npm install kamburga-services

Usage

const KamburgaServices = require('kamburga-services');

// Initialize with your API key
const client = new KamburgaServices('your-api-key');

// Example: Chat completion
async function getCompletion() {
  try {
    const response = await client.chat.completions.create({
      messages: [
        { role: 'user', content: 'Hello, how are you?' }
      ],
      model: 'gpt-3.5-turbo',
      max_tokens: 100
    });
    
    console.log(response.choices[0].message.content);
  } catch (error) {
    console.error('Error:', error.message);
  }
}

getCompletion();

Turkish Function Names

The library provides Turkish function names for signature purposes:

const KamburgaServices = require('kamburga-services');
const client = new KamburgaServices('your-api-key');

// Using Turkish function names
async function turkceOrnek() {
  try {
    const yanit = await client.kamburga.tamamlamalar.olustur({
      messages: [
        { role: 'user', content: 'Merhaba, nasilsin?' }
      ],
      model: 'gpt-3.5-turbo',
      max_tokens: 100
    });
    
    console.log(yanit.choices[0].message.content);
  } catch (hata) {
    console.error('Hata:', hata.message);
  }
}

turkceOrnek();

Available Turkish functions:

  • client.kamburga.tamamlamalar.olustur() - Create chat completions
  • client.kamburga.modeller.listele() - List models
  • client.kamburga.modeller.getir() - Retrieve a model
  • client.kamburga.sohbetOturumu() - Create a chat session
  • client.kamburga.yapilandirma() - Get configuration
  • client.kamburga.ornek() - Get examples
  • client.kamburga.lisansDogrula() - Validate license

Using Chat Sessions

const KamburgaServices = require('kamburga-services');

// Initialize with your API key
const client = new KamburgaServices('your-api-key');

// Create a chat session
const chatSession = client.createChatSession()
  .withModel('gpt-3.5-turbo')
  .withMaxTokens(150)
  .withTemperature(0.7);

// Add a system message
chatSession.addSystemMessage('You are a helpful assistant.');

// Send a message and get a response
async function chat() {
  try {
    const response = await chatSession.sendMessage('Hello, what can you do?');
    console.log('Assistant:', response);
    
    // Send another message in the same conversation
    const response2 = await chatSession.sendMessage('Tell me more about that.');
    console.log('Assistant:', response2);
  } catch (error) {
    console.error('Error:', error.message);
  }
}

chat();

API Reference

KamburgaServices

Constructor

const client = new KamburgaServices(apiKey, options);
  • apiKey (string, required): Your Kamburga API key
  • options (object, optional):
    • baseURL (string, optional): Base URL for the API (default: 'http://89.47.113.4:3022/api')

Methods

  • validateLicense(): Validate the API key
  • getExample(language): Get usage examples for a specific language (python, nodejs, curl)
  • getConfig(): Get hosting configuration
  • createChatSession(): Create a chat session for maintaining conversation history

Chat API

client.chat.completions.create(options)
  • options (object):
    • messages (array, required): Array of messages in the conversation
    • model (string, optional): The model to use (default: 'gpt-3.5-turbo')
    • max_tokens (number, optional): Maximum tokens to generate (default: 100)
    • temperature (number, optional): Sampling temperature (default: 0.7)

Models API

client.models.list()
client.models.retrieve(modelId)

License

MIT