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 🙏

© 2026 – Pkg Stats / Ryan Hefner

snyct-ai

v1.0.7

Published

AI document extractor

Readme

Snyct AI Document Extraction SDK

Snyct is an AI-powered document extraction SDK that allows developers to automatically extract structured data from documents such as invoices, identity cards, forms, and PDFs.

The SDK analyzes uploaded files and returns clean JSON data based on fields defined by the developer.


Features

  • AI powered document data extraction
  • High accuracy structured data output
  • Supports multiple document formats (PDF, JPG, PNG, TIFF)
  • Field-level extraction instructions
  • Global extraction rules
  • Batch processing (up to 10 files)
  • Real-time processing
  • JSON response ready for integration

How It Works

  1. Define fields to extract
  2. Upload document files
  3. Receive structured JSON data

Example flow:

Define fields → Upload document → Get structured JSON output


Installation

Install via npm

npm install snyct-ai

Import SDK

ES Modules

import Snyct from "snyct-ai";

CommonJS

const Snyct = require("snyct-ai").default;

Quick Start Example

import Snyct from "snyct-ai";

const data = await Snyct.extract({
  apiKey: "YOUR_API_KEY",
  fields: {
    name: "",
    dob: "ISO format",
    aadharNumber: "Return only 12 digits without spaces",
    address: ""
  },
  instructions: "Return all names in Title Case format",
  files: [file1, file2]
});

Example Response

{
  "name": "Rahul Sharma",
  "dob": "2000-02-01T00:00:00Z",
  "aadharNumber": "123456789012",
  "address": "123 Main Street, Mumbai",
  "credits": {
    "deducted": 0.10,
    "remaining": 1.90
  },
  "usageId": "67c4213b8d4f2a1b3c5e7f9a"
}

API Endpoint

POST https://api.snyct.com/api/extract

Request Parameters

Parameter Type Required Description


apiKey String Yes API key used for authentication fields Object Yes Fields to extract from document files File / Array Yes Files to process (max 10 files) instructions String No Global instructions applied to fields


Field Instruction Examples

Date Fields

dob: "Return date in ISO UTC format like 2026-02-28T14:30:00Z"
issueDate: "Return as YYYY-MM-DD only"
expiryDate: "Return as DD/MM/YYYY"

Identity Fields

aadharNumber: "Return only the 12 digit number without spaces"
panNumber: "Return in uppercase format ABCDE1234F"
passportNumber: "Return alphanumeric without spaces"

Financial Fields

totalAmount: "Return as number with 2 decimal places"
gstNumber: "Return GST format 22AAAAA0000A1Z5"

Node.js / Express Example

const express = require("express");
const multer = require("multer");
const Snyct = require("snyct-ai").default;

const app = express();
const upload = multer({ dest: "uploads/" });

app.post("/extract", upload.single("document"), async (req, res) => {
  try {
    const result = await Snyct.extract({
      apiKey: process.env.SNYCT_API_KEY,
      fields: {
        name: "",
        documentNumber: "",
        date: ""
      },
      files: req.files,
      instructions: "Extract all text fields"
    });

    res.json(result);
  } catch (error) {
    res.status(500).json({ error: error.message });
  }
});

app.listen(3000);

Error Codes

Error Code Status Description


API_KEY_REQUIRED 401 API key missing INVALID_API_KEY 403 Invalid API key INSUFFICIENT_CREDITS 403 Not enough credits INVALID_FIELDS 400 Invalid fields object FILE_TOO_LARGE 400 File exceeds size limit TOO_MANY_FILES 400 More than 10 files uploaded


Supported Use Cases

  • KYC verification
  • Invoice data extraction
  • Identity document processing
  • Healthcare forms
  • Educational certificates
  • Application forms

Best Practices

  • Specify exact formatting instructions
  • Use field-level instructions for better accuracy
  • Use global instructions for common formatting rules
  • Test with multiple document samples

Version

SDK Version: v1.0.7

repositories

Documentation: https://github.com/bangeradeepu/snyct-documentation Dashboard: https://github.com/bangeradeepu/snyct-docs SDK: https://github.com/bangeradeepu/snyct-sdk