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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@workwayco/integrations

v0.2.0

Published

Official WORKWAY integrations - concrete implementations of the SDK patterns

Readme

@workwayco/integrations

Official WORKWAY integrations - concrete implementations of the SDK patterns.

Installation

pnpm add @workwayco/integrations

Available Integrations

| Integration | Status | OAuth Required | |-------------|--------|----------------| | Gmail | Stable | Yes | | Slack | Stable | Yes | | Notion | Stable | Yes | | Stripe | Stable | Yes | | Google Sheets | Stable | Yes | | Workers AI | Beta | No |

Usage

Gmail

import { Gmail } from '@workwayco/integrations/gmail';

const gmail = new Gmail({ accessToken: tokens.access_token });

// List emails
const emails = await gmail.listEmails({ maxResults: 10 });
if (emails.success) {
  for (const email of emails.data) {
    console.log(email.snippet);
  }
}

// Send email
const sent = await gmail.sendEmail({
  to: '[email protected]',
  subject: 'Hello',
  body: 'Message content',
});

Notion

import { Notion } from '@workwayco/integrations/notion';

const notion = new Notion({ accessToken: tokens.access_token });

// Search pages
const results = await notion.search({ query: 'Project' });

// Create page in database
const page = await notion.createPage({
  parent: { database_id: 'abc123' },
  properties: {
    Name: { title: [{ text: { content: 'New Task' } }] },
    Status: { select: { name: 'In Progress' } },
  },
});

Slack

import { Slack } from '@workwayco/integrations/slack';

const slack = new Slack({ accessToken: tokens.access_token });

// Send message
await slack.sendMessage({
  channel: '#general',
  text: 'Hello from WORKWAY!',
});

// List channels
const channels = await slack.listChannels({ limit: 100 });

Stripe

import { Stripe } from '@workwayco/integrations/stripe';

const stripe = new Stripe({ apiKey: process.env.STRIPE_SECRET_KEY });

// List payments
const payments = await stripe.listPayments({ limit: 10 });

// Create customer
const customer = await stripe.createCustomer({
  email: '[email protected]',
  name: 'John Doe',
});

Google Sheets

import { GoogleSheets } from '@workwayco/integrations/google-sheets';

const sheets = new GoogleSheets({ accessToken: tokens.access_token });

// Read values
const values = await sheets.getValues({
  spreadsheetId: 'abc123',
  range: 'Sheet1!A1:D10',
});

// Append row
await sheets.appendValues({
  spreadsheetId: 'abc123',
  range: 'Sheet1!A:D',
  values: [['New', 'Row', 'Data', 'Here']],
});

ActionResult Pattern

All integrations return ActionResult<T> for consistent error handling:

const result = await gmail.listEmails({ maxResults: 10 });

if (result.success) {
  // TypeScript knows result.data exists
  console.log(result.data);
} else {
  // Handle error
  console.error(result.error.code, result.error.message);
}

Development

Running Tests

pnpm test

Building

pnpm build

License

Apache-2.0