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

impactify-sdk

v1.1.0

Published

TypeScript SDK for the Impactify Public API

Readme

Impactify SDK

A TypeScript SDK for the Impactify Public API.

Installation

npm install impactify-sdk
# or
yarn add impactify-sdk
# or
pnpm add impactify-sdk

Usage

Basic Setup

import { ImpactifyClient } from 'impactify-sdk';

const client = new ImpactifyClient({
  baseURL: 'https://impactify.ro/api/rest/v1',
  apiKey: 'your-api-key',
  timeout: 10000,
});

Chat Messages

// Get all chat messages
const messages = await client.listChatMessages();
console.log(messages.data);

Events

// Get event details
const event = await client.getEvent();
console.log(event.data);

// Update event
const updatedEvent = await client.updateEvent({
  title: 'Updated Event Title',
  livestreamLink: 'https://example.com/stream',
  location: {
    latitude: 40.7128,
    longitude: -74.0060,
  },
});

Widgets

// Create an INFO widget
const infoWidget = await client.createWidget({
  type: 'INFO',
  text: 'This is an information widget',
});

// Create a MARKDOWN widget
const markdownWidget = await client.createWidget({
  type: 'MARKDOWN',
  title: 'Documentation',
  content: '# Welcome\n\nThis is **markdown** content.',
});

// Create a POLL widget
const pollWidget = await client.createWidget({
  type: 'POLL',
  question: 'What is your favorite programming language?',
  options: [
    { id: '1', text: 'TypeScript', voterIds: [] },
    { id: '2', text: 'JavaScript', voterIds: [] },
    { id: '3', text: 'Python', voterIds: [] },
  ],
  isActive: true,
});

// Get a specific widget
const widget = await client.getWidget('widget-id');

// Update a widget
const updatedWidget = await client.updateWidget('widget-id', {
  type: 'INFO',
  text: 'Updated information',
});

// Delete a widget
await client.deleteWidget('widget-id');

// List all widgets
const widgets = await client.listWidgets();

Health Check

// Check API health
const health = await client.health();
console.log(health.data);

Error Handling

try {
  const event = await client.getEvent();
  console.log(event.data);
} catch (error) {
  if (error.status === 404) {
    console.log('Event not found');
  } else if (error.status === 401) {
    console.log('Unauthorized');
  } else {
    console.log('Error:', error.message);
  }
}

Authentication

// Set authentication token
client.setAuthToken('your-new-token');

// Remove authentication token
client.removeAuthToken();

// Set request timeout
client.setTimeout(15000);

API Reference

ImpactifyClient

The main client class for interacting with the Impactify API.

Constructor Options

  • baseURL (string, optional): API base URL. Default: https://impactify.ro/api/rest/v1
  • apiKey (string, optional): API authentication key
  • timeout (number, optional): Request timeout in milliseconds. Default: 10000
  • headers (object, optional): Additional headers to include in requests

Methods

Chat
  • listChatMessages(): Get all chat messages
Events
  • getEvent(): Get event details
  • updateEvent(eventData): Update event information
Widgets
  • createWidget(widgetData): Create a new widget
  • getWidget(widgetId): Get a specific widget
  • updateWidget(widgetId, widgetData): Update a widget
  • deleteWidget(widgetId): Delete a widget
  • listWidgets(): Get all widgets
Health
  • health(): Check API health status
Utility
  • setAuthToken(token): Set authentication token
  • removeAuthToken(): Remove authentication token
  • setTimeout(timeout): Set request timeout

Types

The SDK includes comprehensive TypeScript types for all API entities:

  • ChatMessage
  • Event
  • Widget
  • WidgetData (union of InfoWidgetData, MarkdownWidgetData, PollWidgetData)
  • Location
  • Pricing
  • PollOption
  • UpdateEventRequestBody
  • CreateWidgetRequestBody
  • ApiResponse<T>
  • ApiError
  • ImpactifyConfig

Development

Setup

pnpm install

Build

pnpm run build

Test

pnpm run test
pnpm run test:watch

Lint

pnpm run lint
pnpm run lint:fix

Type Check

pnpm run type-check

License

MIT

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request