0.0.28 • Published 4 months ago

jigsawstack v0.0.28

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

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

CategoryAPIs
👉 GeneralTranslation, Summarization, Sentiment Analysis
🌐 WebAI Web Scraping, AI Web Search
🎵 AudioText to Speech, Speech to Text (Whisper large v3)
👀 VisionvOCR, Object Detection
🧠 LLMsPrompt Engine
🖼️ GenerativeAI Image (SD, SDXL-Fast & more), HTML to Any
🌍 GeoLocation search, Timezone, IP Geolocation & more
✅ ValidationEmail, NSFW images, profanity & more
📁 StoreSimple 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.

0.0.20

6 months ago

0.0.21

6 months ago

0.0.22

5 months ago

0.0.23

5 months ago

0.0.24

5 months ago

0.0.25

5 months ago

0.0.15

8 months ago

0.0.16

8 months ago

0.0.17

7 months ago

0.0.18

6 months ago

0.0.19

6 months ago

0.0.14

8 months ago

0.0.26

4 months ago

0.0.27

4 months ago

0.0.28

4 months ago

0.0.12

8 months ago

0.0.13

8 months ago

0.0.11

8 months ago

0.0.10

9 months ago

0.0.3

10 months ago

0.0.9

9 months ago

0.0.8

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago

1.0.0

10 months ago