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

@kernelminds/scailo-sdk

v0.1.19

Published

NPM module that provides access to Scailo's API

Readme

Welcome to the official SDK for the Scailo ERP API. This package provides a convenient way to interact with Scailo's gRPC services from any JavaScript or TypeScript application, supporting both Node.js and modern web browsers.

About Scailo

Scailo is a powerful, modern ERP solution designed to be the foundation for your business needs. It provides a wide range of customizable business applications that cover everything from e-commerce, accounting, and CRM to order management, manufacturing, and human resources. With Scailo, you can streamline operations and unify your business processes on a single, scalable platform.

To learn more about what Scailo can do for your business, visit scailo.com.

Installation

You can install the package using npm or yarn:

npm install @kernelminds/scailo-sdk

or

yarn add @kernelminds/scailo-sdk

Getting Started & Usage

To communicate with the Scailo API, you'll need to instantiate a client, authenticate to receive a token, and then include that token in the metadata of all subsequent API calls.

1. Create a Transport

  • For Web
import { createConnectTransport } from "@connectrpc/connect-web";

function getWebTransport(apiEndPoint: string = location.origin) {
    return createConnectTransport({
        baseUrl: apiEndPoint, useBinaryFormat: false, interceptors: []
    });
}
  • For Node
import { createConnectTransport } from "@connectrpc/connect-node";

function getNodeTransport(apiEndPoint: string) {
    return createConnectTransport({
        baseUrl: apiEndPoint, httpVersion: "1.1", useBinaryFormat: false, interceptors: []
    });
}

2. Authentication

Next, you need to call the login service to get an auth_token. This token is essential for authorizing other API requests.

import { getScailoClientForLoginService, UserLoginRequest } from "@kernelminds/scailo-sdk";

// The address of your Scailo instance
const upstreamAPI = "https://your-scailo-instance.com";
const username = "your-username";
const password = "your-password";

const transport = getWebTransport(upstreamAPI);

async function authenticate() {
    try {
        const client = getScailoClientForLoginService(transport)
        const loginResp = await client.loginAsEmployeePrimary(new UserLoginRequest({
            username: username,
            plainTextPassword: password,
            otp: otp,
            expiresIn: expiresIn || protoInt64.zero
        }), {
            headers: {}
        });
        return loginResp
    } catch (error) {
        console.error("Authentication failed:", error.message);
    }
}

authenticate();

3. Making Authenticated Requests

Once you have the authToken, you must include it in the metadata of your API calls. The following example demonstrates how to fetch purchase orders using the token you received.

import { getScailoClientForPurchasesOrdersService, PurchasesOrdersServiceFilterReq, BOOL_FILTER, SORT_ORDER } from "@kernelminds/scailo-sdk";
import { protoInt64 } from "@bufbuild/protobuf";

const transport = getWebTransport(upstreamAPI);

async function getPurchaseOrders(authToken: string) {
    try {
        const purchaseOrdersClient = getScailoClientForPurchasesOrdersService(transport);
        const resp = await purchaseOrdersClient.filter(new PurchasesOrdersServiceFilterReq({
            isActive: BOOL_FILTER.BOOL_FILTER_TRUE,
            count: protoInt64.parse(5),
        }), {
            headers: {
                "auth_token": authToken
            }
        });
        console.log("Successfully fetched purchase orders:", response.list);
        return response.list;

    } catch (error) {
        console.error("Failed to fetch purchase orders:", error.message);
    }
}

// Example usage:
async function run() {
    const loginResp = await authenticate();
    if (loginResp.authToken) {
        await getPurchaseOrders(loginResp.authToken);
    }
}

run();

API Use Cases

The Scailo API is extensive and allows you to build powerful integrations. Some common use cases include:

  • E-commerce Integration: Sync orders, customer data, and inventory levels between Scailo and platforms like Shopify or WooCommerce.

  • Automate Business Processes: Automatically transfer data from a CRM or Warehouse Management System (WMS) directly into the ERP.

  • Financial Management: Connect Scailo with accounting systems to automate invoice generation and financial reporting.

  • Custom Workflows: Build custom applications and workflows tailored to your specific business logic.

For more detailed information on what you can build, please see our API documentation.