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

@serovaai/sdk

v0.2.0

Published

Official Serova SDK for Node.js - API client and AI agent tools

Readme

@serovaai/sdk

Official Serova SDK for Node.js - API client and AI agent tools.

Installation

npm install @serovaai/sdk
# or
pnpm add @serovaai/sdk
# or
yarn add @serovaai/sdk

Quick Start

import { SerovaClient } from '@serovaai/sdk';

const client = new SerovaClient({
  apiKey: process.env.SEROVA_API_KEY!,
  defaultContextId: 'your-community-context-id',
});

// Search for recommendations
const results = await client.awareness.searchRecommendations({
  query: 'plumbers',
  limit: 10,
});

console.log(results.recommendations);

Using with OpenAI Agents SDK

The SDK includes pre-built tool definitions for OpenAI's function calling:

import { SerovaClient, allTools, createToolExecutor } from '@serovaai/sdk';
import OpenAI from 'openai';

const client = new SerovaClient({
  apiKey: process.env.SEROVA_API_KEY!,
  defaultContextId: process.env.SEROVA_CONTEXT_ID!,
});

const openai = new OpenAI();
const executor = createToolExecutor(client);

// Register Serova tools with your agent
const tools = allTools.map((t) => ({ type: 'function' as const, function: t }));

// Create a chat completion with tools
const response = await openai.chat.completions.create({
  model: 'gpt-4',
  messages: [{ role: 'user', content: 'Can you recommend a plumber?' }],
  tools,
});

// Handle tool calls
for (const toolCall of response.choices[0].message.tool_calls ?? []) {
  const result = await executor(
    toolCall.function.name,
    JSON.parse(toolCall.function.arguments)
  );
  console.log(result);
}

Available Tools

| Tool Name | Description | |-----------|-------------| | serova_get_recommendations | Search for service recommendations | | serova_get_sentiment_stats | Get community sentiment statistics | | serova_get_categories | List available recommendation categories |

API Reference

SerovaClient

Main client for interacting with the Serova API.

const client = new SerovaClient({
  apiKey: string;           // Required: Your API key
  baseUrl?: string;         // Optional: API base URL (default: https://api.serova.ai)
  defaultContextId?: string; // Optional: Default context for queries
  timeout?: number;         // Optional: Request timeout in ms (default: 30000)
});

Awareness API

client.awareness.searchRecommendations(query)

Search for recommendations by query string.

const results = await client.awareness.searchRecommendations({
  query: 'italian restaurants',
  limit: 10,
});

client.awareness.getRecommendations(query)

Get paginated recommendations with filters.

const results = await client.awareness.getRecommendations({
  category: 'home services',
  sentiment: 'positive',
  limit: 20,
  offset: 0,
});

client.awareness.getCategories()

Get available recommendation categories.

const categories = await client.awareness.getCategories();
// ['home services', 'food', 'healthcare', ...]

client.awareness.getSentimentStats(query)

Get sentiment statistics for a context.

const stats = await client.awareness.getSentimentStats({
  startDate: '2024-01-01',
  endDate: '2024-12-31',
});
// { positive: 150, neutral: 80, negative: 20, total: 250 }

License

MIT