# jigsawstack

> JigsawStack - The AI SDK for Typescript and Javascript

Latest version **0.4.6** (published 2026-07-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install jigsawstack
pnpm add jigsawstack
yarn add jigsawstack
bun add jigsawstack
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.4.6 |
| Published | 2026-07-06 |
| First published | 2024-08-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 2 |
| Unpacked size | 128.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 27 |
| Maintainers | yoeven, hvkhurdula |
| Keywords | framework, ai, nextjs, react |

## Links

- npm: https://www.npmjs.com/package/jigsawstack
- Repository: https://github.com/JigsawStack/jigsawstack-js
- Homepage: https://jigsawstack.com
- Issues: https://github.com/JigsawStack/jigsawstack-js/issues
- npm.io page: https://npm.io/package/jigsawstack

## Dependencies (2)

- [zod](https://npm.io/package/zod.md) ^3.25.67
- [isomorphic-fetch](https://npm.io/package/isomorphic-fetch.md) ^3.0.0

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.4.6 (latest) — 2026-07-06
- 0.4.5 — 2026-06-03
- 0.4.4 — 2026-05-07
- 0.4.3 — 2026-03-27
- 0.4.2 — 2026-02-14
- 0.4.1 — 2026-02-11
- 0.4.0 — 2025-12-01
- 0.3.7 — 2025-10-10
- 0.3.6 — 2025-09-22
- 0.3.5 — 2025-09-16
- 0.3.4 — 2025-09-16
- 0.3.3 — 2025-09-09
- 0.3.2 — 2025-09-09
- 0.3.1 — 2025-08-29
- 0.3.0 — 2025-08-29
- … 40 more at https://npm.io/package/jigsawstack/versions

## 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](https://github.com/matthew-andrews/isomorphic-fetch) for maximum compatibility

## Learn more

To learn more about all available JigsawStack AI services, view the [Documentation](https://docs.jigsawstack.com) or [Website](https://jigsawstack.com).

## All APIs

| Category          | APIs                                               |
| ----------------- | -------------------------------------------------- |
| **👉 General**    | Translation, Summarization, Sentiment Analysis     |
| **🌐 Web**        | AI Web Scraping, AI Web Search                     |
| **🎵 Audio**      | Speech to Text                                     |
| **👀 Vision**     | vOCR, Object Detection                             |
| **🖼️ Generative** | AI Image (Flux, SD, SDXL-Fast & more), HTML to Any |
| **✅ Validation** | Email, NSFW images, profanity & more               |

Learn more of about each category in the [API reference](https://jigsawstack.com/docs/api-reference)

## Installation

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

```bash
npm install jigsawstack
# or
yarn add jigsawstack
# or
bun add jigsawstack
```

## Setup

First, get your API key from the [JigsawStack Dashboard](https://jigsawstack.com/dashboard)

Then, initialize the SDK:

```ts
import { JigsawStack } from "jigsawstack";

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

## Usage

AI Scraping Example:

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


Upload a file to use across any API example:

```ts
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](https://discord.gg/dj8fMBpnqd) to connect with other developers, share ideas, and get help with the SDK.

## Related Projects

- [Docs](https://jigsawstack.com/docs)
- [Python SDK](https://github.com/JigsawStack/jigsawstack-python)

## 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.

---
_Source: https://npm.io/package/jigsawstack · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
