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

jigsawstack

v0.0.10

Published

JigsawStack - The AI SDK for Typescript and Javascript

Downloads

38

Readme

JigsawStack AI SDK

The JigsawStack AI SDK is a Typescript/Javascript library that allows you to interact with powerful AI services to build AI-powered applications in any framework like Next.js, React, Vue, Svelte, and more that supports JS.

  • 🧩 Powerful AI services all in one SDK
  • 🧑‍💻 Native JS/TS SDK
  • ▲ Supports Next.js, React, Vue, Svelte, Node.js, Bun, Deno, and more
  • ⌨️ Fully typed parameters and responses
  • 📡 Built in Webhook support for long-running tasks
  • 📦 Built in file system for easy file uploads
  • 🍃 Lightweight and blazing fast, built ont native fetch with isomorphic-fetch for maximum compatibility

Learn more

To learn more about all available JigsawStack AI services, view the Documentation or Website.

All APIs

| Category | APIs | |----------|----------| | 👉 General | Translation, Summarization, Sentiment Analysis | | 🌐 Web | AI Web Scraping, AI Web Search | | 🎵 Audio | Text to Speech, Speech to Text (Whisper large v3) | | 👀 Vision | vOCR, Object Detection | | 🧠 LLMs | Prompt Engine | | 🖼️ Generative | AI Image (SD, SDXL-Fast & more), HTML to Any | | 🌍 Geo | Location search, Timezone, IP Geolocation & more | | ✅ Validation | Email, NSFW images, profanity & more | | 📁 Store | Simple File Storage, KV Encryption store |

Learn more of about each category in the API reference

Installation

You will need Node.js 18+ on your local development machine.

npm install jigsawstack
# or
yarn add jigsawstack

Setup

First, get your API key from the JigsawStack Dashboard

Then, initialize the SDK:

import { JigsawStack } from "jigsawstack";

const jigsaw = JigsawStack({ apiKey: "your-api-key" });

Usage

AI Scraping Example:

const resp = await jigsaw.web.ai_scrape({
    url: "https://www.amazon.com/Cadbury-Mini-Caramel-Eggs-Bulk/dp/B0CWM99G5W",
    element_prompts: ["prices"],
});

Text to Speech Example:

const resp = await jigsaw.audio.text_to_speech({
    text: "Hello, how are you doing?",
});

Upload a file to use across any API example:

const file = /*reference to file blob or buffer*/

await jigsaw.store.upload(file,{
    filename: "receipt.png",
});

// Now you can use the file_key in any API call
const ocrResp = await jigsaw.vision.vocr({
    file_store_key: "receipt.png",
});

const objectDetectionResp = await jigsaw.vision.object_detection({
    file_store_key: "receipt.png",
});

Community

Join JigsawStack community on Discord to connect with other developers, share ideas, and get help with the SDK.

Related Projects

Contributing

JigsawStack AI SDK is open-source and welcomes contributions. Please open an issue or submit a pull request with your changes. Make sure to be as descriptive as possible with your submissions, include examples if relevant.