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

@requesty/llamaindex

v0.1.2

Published

Requesty adapter for LlamaIndex.TS - Use, monitor and scale any LLM provider

Downloads

8

Readme

LlamaIndex Requesty Provider

A LlamaIndex.TS provider to use with Requesty - a gateway that makes it easier to integrate, manage and scale AI.

🚀 Features

  • Use any model from any provider: OpenAI, Anthropic, Gemini, Deepseek, xAI, and any other model provider via a single API.
  • Support for all features: Streaming, tools, structured output and thinking across all providers.
  • Powerful telemetry and analytics: Monitor and analyze your AI usage via the Requesty platform.

📦 Installation

# For pnpm
pnpm add @requesty/llamaindex

# For npm
npm install @requesty/llamaindex

# For yarn
yarn add @requesty/llamaindex

🔧 Basic Usage

Find the complete list of models here.

import { requesty } from "@requesty/llamaindex";

const llm = requesty({
  model: "openai/gpt-4o-mini",
  apiKey: process.env.REQUESTY_API_KEY
});

// Use with any LlamaIndex.TS component
const response = await llm.chat({
  messages: [{ role: "user", content: "Hello!" }]
});

🤖 Agent Workflows

Perfect for building agents with tool calling:

import { requesty } from "@requesty/llamaindex";
import { agent } from "@llamaindex/workflow";
import { tool } from "llamaindex";
import { z } from "zod";

const llm = requesty({
  model: "openai/gpt-4o-mini",
  apiKey: process.env.REQUESTY_API_KEY
});

const searchTool = tool({
  name: "search",
  description: "Search the web for information",
  parameters: z.object({
    query: z.string().describe("Search query")
  }),
  execute: async ({ query }) => {
    // Your search implementation
    return `Results for: ${query}`;
  }
});

const searchAgent = agent({
  name: "SearchAgent",
  description: "Helpful search assistant",
  tools: [searchTool],
  llm,
});

const result = await searchAgent.run("Find information about TypeScript");

🏗️ Multi-Agent Systems

import { multiAgent } from "@llamaindex/workflow";

const researchAgent = agent({
  name: "ResearchAgent",
  tools: [wikipediaTool],
  llm,
});

const writerAgent = agent({
  name: "WriterAgent",
  tools: [saveFileTool],
  canHandoffTo: [researchAgent],
  llm,
});

const workflow = multiAgent({
  agents: [researchAgent, writerAgent],
  rootAgent: researchAgent,
});

const events = workflow.runStream("Write a blog post about AI");
for await (const event of events) {
  console.log(event);
}

🎯 Structured Outputs

Support for Zod schemas and JSON response formats:

import { z } from "zod";

const PersonSchema = z.object({
  name: z.string(),
  age: z.number(),
  occupation: z.string()
});

const response = await llm.chat({
  messages: [{
    role: "user",
    content: "Tell me about a fictional character"
  }],
  responseFormat: PersonSchema
});

// Response will be typed and validated
const person = response.message.content; // Type: { name: string, age: number, occupation: string }

🔄 Streaming

const stream = await llm.chat({
  messages: [{ role: "user", content: "Write a story" }],
  stream: true
});

for await (const chunk of stream) {
  process.stdout.write(chunk.delta);
}

🛠️ Tool calling

const toolResponse = await llm.chat({
  messages: [{ role: "user", content: "Search for TypeScript tutorials" }],
  tools: [searchTool]
});

if (toolResponse.message.options?.toolCall) {
  for (const toolCall of toolResponse.message.options.toolCall) {
    console.log(`Calling ${toolCall.name} with:`, toolCall.input);
  }
}

⭐ Support

If this package helps you, please consider giving it a star on GitHub!