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 🙏

© 2025 – Pkg Stats / Ryan Hefner

itzam

v2.5.0

Published

Itzam SDK

Readme

Itzam SDK

npm version

Itzam provides tools for seamlessly integrating AI into your applications. With Itzam, you can manage AI workflows without mixing AI logic into your business code, allowing both technical and non-technical team members to control AI features through a simple dashboard interface.

Features

  • 🤖 Model Hot Swap - Change AI models or settings instantly without code changes
  • 💬 Prompt Hot Swap - Update prompts on the fly and compare outputs
  • 💳 Unified Billing - Manage all AI spending in one place
  • 🔌 Simple Integration - Add AI features with just a few lines of code
  • 📎 Multimodal Support - Send files, images, and documents as attachments
  • 🗃️ Context Management (coming soon) - Easily manage AI context including docs, images, and more
  • 📐 Custom Rules (coming soon) - Create automated rules for model switching and workflow management

Installation

npm install itzam
# or
yarn add itzam
# or
pnpm add itzam

Quick Start

  1. Create a workflow in the Itzam Dashboard
  2. Get your API key and workflow slug
  3. Integrate Itzam into your application:
import { Itzam } from "itzam";

// Initialize the client
const itzam = new Itzam("your-api-key");

// Or with custom base URL
const itzam = new Itzam("your-api-key", {
  basePath: "https://your-custom-api-url.com"
});

// Use your workflow
const response = await itzam.generateText({
  input: "Your input text here",
  workflowSlug: "your-workflow-slug",
});

console.log(response.output);

Working with Attachments

Send files, images, and documents with your requests:

// With base64 data
const response = await itzam.generateText({
  input: "What do you see in this image?",
  workflowSlug: "vision-workflow",
  attachments: [
    {
      file: "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==",
      mimeType: "image/png"
    }
  ]
});

// With URLs
const response2 = await itzam.generateText({
  input: "Analyze this document",
  workflowSlug: "document-analysis",
  attachments: [
    {
      file: "https://example.com/document.pdf",
      mimeType: "application/pdf"
    }
  ]
});

// With File objects (automatically converted to base64)
const fileInput = document.getElementById('fileInput') as HTMLInputElement;
const file = fileInput.files?.[0];

if (file) {
  const response3 = await itzam.generateText({
    input: "Process this file",
    workflowSlug: "file-processor",
    attachments: [
      {
        file: file, // SDK handles conversion automatically
        mimeType: file.type
      }
    ]
  });
}

Configuration

The Itzam SDK can be configured with the following options:

const itzam = new Itzam("your-api-key", {
  basePath: "https://your-custom-api-url.com" // Optional: Custom API base URL
});

Configuration Options

  • basePath (optional): Custom base URL for the API. Defaults to the NEXT_PUBLIC_APP_URL environment variable if not provided.

Example: Building an AI Support Chat

Here's how to create an AI-powered support chat using Itzam:

  1. Dashboard Setup

    • Create a "Support Chat" workflow in the Itzam Dashboard
    • Configure your preferred AI model (GPT, Claude, Gemini)
    • Set up your prompt and context
    • Get your workflow slug and API key
  2. Code Integration

import { Itzam } from "itzam";

const itzam = new Itzam("your-api-key");

// Handle user messages
const handleUserMessage = async (userInput: string) => {
  const response = await itzam.generateText({
    input: userInput,
    workflowSlug: "support-chat",
  });

  return response.output;
};

Why Itzam?

  • Separation of Concerns - Keep AI logic separate from your business logic
  • No-Code Management - Empower non-technical team members to manage AI workflows
  • Future-Proof - Easily switch between AI models as technology evolves
  • Instant Updates - Change prompts and settings without redeploying your application

Documentation

For detailed documentation, visit our official documentation.

Support