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

@novala/sdk

v0.1.0

Published

Official Node.js SDK for the Novala API — generate, deploy, and monitor AI-powered API integration flows.

Readme

@novala/sdk

Official Node.js SDK for the Novala API — generate, deploy, and monitor AI-powered API integration flows.

Installation

npm install @novala/sdk

Quick Start

import { Novala } from "@novala/sdk";

const novala = new Novala({ secretKey: "sk_live_..." });

// Generate a flow from natural language
const job = await novala.generate({
  url: "https://api.stripe.com",
  intent: "sync new customers to my CRM",
});

// Wait for generation to complete
const result = await job.done();
console.log("Flow created:", result.result?.flowId);

// Deploy the flow
const deployment = await novala.deploy({ flowId: result.result!.flowId });
console.log("Deployed at:", deployment.deployedAt);

// Check execution results
const executions = await novala.executions.list({
  flowId: deployment.flowId,
  limit: 5,
});
console.log("Executions:", executions);

Authentication

The SDK supports two key types:

| Key type | Prefix | Use case | |----------|--------|----------| | Secret key | sk_live_* | Server-side — full access | | Publishable key | pk_live_* | Client-side — read-only access |

// Server-side (recommended)
const novala = new Novala({ secretKey: "sk_live_..." });

// Client-side
const novala = new Novala({ publishableKey: "pk_live_..." });

Generation

Generate a flow from a target API URL and natural language intent:

const job = await novala.generate({
  url: "https://api.stripe.com",
  intent: "sync new customers to a webhook",
});

// Option 1: Await completion
const result = await job.done();

// Option 2: Poll with status updates
for await (const status of job.poll({ intervalMs: 1000, timeoutMs: 60000 })) {
  console.log(`${status.status} — ${status.progress}%`);
  if (status.status === "COMPLETED") {
    console.log("YAML:", status.result?.yaml);
  }
}

// Option 3: Real-time progress via WebSocket
job.onProgress((event) => {
  console.log(`${event.status}: ${event.message}`);
});
const final = await job.done();

Flows

Manage generated flows:

// List all flows
const flows = await novala.flows.list();

// Get flow details
const flow = await novala.flows.get("flow-id");

// Deploy a flow
const result = await novala.deploy({ flowId: "flow-id" });

// Delete a flow
await novala.flows.delete("flow-id");

Executions

Monitor flow execution history:

// List executions for a flow
const executions = await novala.executions.list({
  flowId: "flow-id",
  status: "failed",  // optional filter
  limit: 10,
  offset: 0,
});

// Get execution details (includes error info)
const execution = await novala.executions.get("execution-id");
if (execution.error) {
  console.error(`Failed at node ${execution.error.failedNodeId}: ${execution.error.message}`);
}

Webhooks

Manage webhook subscriptions for flow events:

// List webhooks for a flow
const hooks = await novala.webhooks.list("flow-id");

// Create a webhook
const hook = await novala.webhooks.create({
  flowId: "flow-id",
  url: "https://example.com/webhook",
  events: ["flow.executed.success", "flow.executed.failure"],
});

// Update a webhook
await novala.webhooks.update(hook.id, { active: false });

// Delete a webhook
await novala.webhooks.delete(hook.id);

Error Handling

The SDK throws typed errors for different failure scenarios:

| Error class | Status | When thrown | |-------------|--------|------------| | AuthenticationError | 401, 403 | Invalid or expired API key | | NotFoundError | 404 | Resource doesn't exist | | ValidationError | 422 | Invalid request parameters | | RateLimitError | 429 | Too many requests (includes retryAfterMs) | | TimeoutError | 408 | Request or poll timeout | | NovalaError | * | Base class for all API errors |

import { RateLimitError, NotFoundError } from "@novala/sdk";

try {
  await novala.flows.get("non-existent");
} catch (err) {
  if (err instanceof NotFoundError) {
    console.log("Flow not found");
  } else if (err instanceof RateLimitError) {
    console.log(`Rate limited — retry after ${err.retryAfterMs}ms`);
  }
}

The transport layer automatically retries on 429 and 5xx errors (up to 3 attempts) with exponential backoff. When a Retry-After header is present, it is used as the retry delay.

Configuration

const novala = new Novala({
  secretKey: "sk_live_...",
  baseUrl: "https://api.novala.ai",  // default
  timeout: 30000,                     // request timeout in ms (default: 30s)
});

Requirements

  • Node.js >= 18
  • Works in both ESM and CommonJS environments