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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@worksheets/sdk

v0.0.12

Published

> Stop integrating APIs and SDKs. Start integrating APPs.

Downloads

2

Readme

Introduction

Stop integrating APIs and SDKs. Start integrating APPs.

SDK Example

Worksheets.dev is a low-code integration platform built for developers to integrate applications into their code without having to learn the APIs or SDKs of those applications.

Features

  • Static typesafety for all applications and their inputs and outputs
  • No more dependency hell, use one light-weight SDK for all applications.
  • Instant analytics and insights for your application usage on Worksheets.dev

SDK Quick Start

Requirements

  • This SDK requires a Worksheets.dev account and API Key.
    • No credit card required.
    • All new users get 100 free daily executions.
  • Node.js v16 or higher.
  • TypeScript v5.0 or higher.

Usage

  1. Install the SDK
npm install @worksheets/sdk
  1. Import the SDK
import { newRegistry } from '@worksheets/sdk';
  1. Create a new Registry
const registry = newRegistry({
  credentials: {
    apiKey: 'API_KEY_FROM_WORKSHEETS.DEV',
  },
});
  1. Create an instance of the application you want to use
// note: some applications require credentials or metadata
const openai = registry.openai({ apiKey: 'YOUR_API_KEY' });
// note: you must manage your own OAuth tokens
const gmail = registry.gmail({ accessToken: 'OAUTH_ACCESS_TOKEN' });
  1. Execute the method
// note: full typesafety for all inputs and outputs
const result = await openai.createCompletion({
  // data payload
});
  1. Handle exceptions
import { Failure } from '@worksheets/sdk';

// ...

const math = registry.math();
try {
  const result = await math.calc({ op: '/', x: 0, y: 0 });
  console.log(result);
} catch (error) {
  if (error instanceof Failure) {
    // "[400] BAD_REQUEST: Cannot divide by zero"
    console.log(error.message);
    // 400
    console.log(error.code);
    // BAD_REQUEST
    console.log(error.reason);

    console.log(error.data);
    console.log(error.cause);
    console.log(error.stack);
  }
}
  1. Monitor your application usage and analytics on Worksheets.dev

Examples

Find sample code and examples on our doc site

Applications

View all applications available and their inputs and outputs in our Application Gallery

Support

Join our discord community for support and feedback

Or reach out to us via our contact methods on our website https://docs.worksheets.dev