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

icelist-sdk

v0.1.0

Published

JavaScript/TypeScript client library for the ICE List Wiki API

Readme

ICE List Wiki JavaScript/TypeScript SDK

JavaScript/TypeScript client library for the ICE List Wiki API.

Installation

npm install @icelist/sdk
# or
yarn add @icelist/sdk

Quick Start

TypeScript

import { IceListClient } from "@icelist/sdk";

const client = new IceListClient();

// Search for content
const results = await client.search("Timothy Donahue");
results.forEach((result) => {
  console.log(`${result.title}: ${result.snippet}`);
});

// Get a specific page
const page = await client.getPage("Main_Page");
console.log(page.title);
console.log(page.extract);

// Get full page content
const content = await client.getPageContent("Main_Page");
console.log(content.wikitext);
console.log(content.html);

// List category members
const agents = await client.getCategoryMembers("Agents", 50);
agents.forEach((agent) => {
  console.log(agent.title);
});

// Get recent changes
const changes = await client.getRecentChanges(10);
changes.forEach((change) => {
  console.log(`${change.title} - ${change.timestamp}`);
});

JavaScript (CommonJS)

const { IceListClient } = require("@icelist/sdk");

const client = new IceListClient();

async function main() {
  const results = await client.search("agents");
  console.log(results);
}

main();

Browser

<script type="module">
  import { IceListClient } from "https://cdn.skypack.dev/@icelist/sdk";

  const client = new IceListClient();
  const results = await client.search("incidents");
  console.log(results);
</script>

API Reference

new IceListClient(options?)

Create a new client instance.

Options:

  • baseUrl?: string - Base URL of the wiki (default: https://wiki.icelist.is)
  • userAgent?: string - Custom user agent string
  • timeout?: number - Request timeout in milliseconds (default: 30000)

client.search(query, limit?): Promise<SearchResult[]>

Search for pages matching a query.

Returns: Array of search results with title, snippet, timestamp, etc.

client.getPage(title): Promise<PageInfo>

Get basic information about a page.

Returns: Page metadata including title, extract, and URL.

client.getPageContent(title): Promise<PageContent>

Get full page content in both wikitext and HTML.

Returns: Object with wikitext and rendered HTML.

client.getCategoryMembers(category, limit?, namespace?): Promise<CategoryMember[]>

List all pages in a category.

Returns: Array of pages in the category.

client.getRecentChanges(limit?): Promise<RecentChange[]>

Get recent changes to the wiki.

Returns: Array of recent changes with metadata.

Error Handling

import {
  IceListClient,
  IceListAPIError,
  PageNotFoundError,
  NetworkError,
  InvalidParameterError,
} from "@icelist/sdk";

const client = new IceListClient();

try {
  const page = await client.getPage("NonexistentPage");
} catch (error) {
  if (error instanceof PageNotFoundError) {
    console.log(`Page not found: ${error.title}`);
  } else if (error instanceof IceListAPIError) {
    console.log(`API error: ${error.code} - ${error.message}`);
  }
}

Development

# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test

# Run tests with coverage
npm run test:coverage

# Lint
npm run lint

# Format
npm run format

Requirements

  • Node.js 14+
  • TypeScript 4+ (for TypeScript projects)

License

MIT License