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

@orgosync/sdk

v1.0.0

Published

Orgo Sync SDK — Real-time scheduling intelligence for sports platforms

Readme

@orgosync/sdk

The official Orgo Sync SDK. Real-time scheduling intelligence for sports platforms.

Replace your ICS link with a secure, real-time API. Three lines of code. One afternoon.

Install

npm install @orgosync/sdk

Quick Start

import { OrgoSync } from "@orgosync/sdk";

const orgo = new OrgoSync({ apiKey: "sk_live_xxx" });
await orgo.publish({
  events: [{
    action: "created",
    source: "json",
    payload: yourScheduleData,
  }],
});

API

new OrgoSync(options)

| Option | Type | Required | Description | | --------- | -------- | -------- | -------------------------------------------- | | apiKey | string | Yes | Your API key (sk_live_* or sk_test_*) | | baseUrl | string | No | API base URL (defaults to https://api.orgosync.com) |

Core Methods

orgo.publish(input)Promise<PublishResponse>

Publish schedule events. Subscribers are notified via webhook in real-time.

const result = await orgo.publish({
  events: [{
    action: "created",
    source: "json",
    payload: {
      title: "U12 Soccer vs Eagles",
      start: "2026-04-05T10:00:00-05:00",
      end: "2026-04-05T11:30:00-05:00",
      location: "Riverside Athletic Complex",
    },
  }],
});
// → { accepted: true, event_count: 1, subscribers_notified: 3, request_id: "..." }

orgo.enrich(input)Promise<EnrichResponse>

Enrich a single event with geocoding, drive time, weather, timeline, and conflict detection.

const result = await orgo.enrich({
  title: "U12 Soccer vs Eagles",
  start: "2026-04-05T10:00:00-05:00",
  end: "2026-04-05T11:30:00-05:00",
  location: "Riverside Athletic Complex, Austin TX",
  origin: { address: "456 Elm St, Austin TX" },
});

console.log(result.data.enrichment.timeline.depart_by);
console.log(result.data.enrichment.weather?.at_event_start.condition);

orgo.ingest(input)Promise<EnrichResponse | BatchJobResponse>

Ingest native JSON from a platform adapter (TeamSnap, ICS, raw JSON) and optionally enrich.

orgo.enrichBatch(input)Promise<BatchJobResponse>

Enrich up to 50 events asynchronously. Returns a job ID for polling.

orgo.parse(ics)Promise<ParseResponse>

Parse an ICS/iCal string into Orgo Canonical Events.

orgo.status(jobId)Promise<JobStatusResponse>

Check the status of an async batch enrichment job.

Webhook Subscriptions

orgo.createSubscription(input)Promise<SubscriptionCreateResponse>

Create a webhook subscription to receive real-time event notifications.

const sub = await orgo.createSubscription({
  publisher_id: "partner-uuid",
  endpoint_url: "https://myapp.com/webhooks/orgo",
  event_filters: ["event.created", "event.updated"],
});
console.log(sub.signing_secret); // use this to verify webhook signatures

orgo.listSubscriptions()Promise<SubscriptionListResponse>

orgo.getSubscription(id)Promise<SubscriptionDetailResponse>

orgo.updateSubscription(id, input)Promise<WebhookSubscription>

orgo.deleteSubscription(id)Promise<void>

orgo.testSubscription(id)Promise<{ success, delivery_id, message }>

Calendar Feeds

orgo.createFeed(options)Promise<CreateFeedResponse>

Create a real-time calendar feed consumers can subscribe to.

orgo.pushToFeed(feedId, events)Promise<PushToFeedResponse>

Push events to an existing feed.

Sandbox Mode

Use sk_test_* keys for development. Sandbox requests return instant mock responses without consuming API credits.

Error Handling

import { OrgoSync, OrgoSyncError } from "@orgosync/sdk";

try {
  await orgo.publish({ events: [/* ... */] });
} catch (error) {
  if (error instanceof OrgoSyncError) {
    console.error(error.code);       // e.g. "VALIDATION_ERROR"
    console.error(error.message);    // human-readable message
    console.error(error.statusCode); // HTTP status code
    console.error(error.details);    // additional context
  }
}

TypeScript

The SDK ships with full TypeScript declarations. All request/response types are exported:

import type {
  CanonicalEvent,
  PublishRequest,
  EnrichResponse,
  WebhookSubscription,
  OutboundWebhookPayload,
} from "@orgosync/sdk";

License

MIT