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

@conta-studio/sdk

v0.20.0

Published

Official TypeScript SDK for Conta Studio public APIs (invoices, documents, bank transactions, webhooks).

Readme

@conta-studio/sdk

Official Conta Studio TypeScript SDK — profile conta-studio-public, version 0.20.0.

Public APIs for marketplace orders/stock, invoices, documents, bank transactions, and webhooks.

Install

npm install @conta-studio/sdk

Requires Node.js 18+.

Quick start

import { ContaStudioSDK } from '@conta-studio/sdk';

const sdk = new ContaStudioSDK('https://conta-studio.com', {
  auth: { token: process.env.CONTA_API_KEY },
});

const result = await sdk.orders.create({ /* MarketplaceCreateOrderRequest */ });
await sdk.invoices.list({ … });

Create an API key in Conta Studio (Settings → API keys) with the scopes you need, then pass it as auth.token.

Docs

API layout

Import ContaStudioSDK and call through nested properties. Request/response bodies use generated structs; query params are camelCase primitives.

| Call pattern | Example | |--------------|---------| | sdk.<service>.<method>() | sdk.invoices.list({ direction: 'incoming' }) | | sdk.<service>.<resource>.<method>() | sdk.stock.levels.list() |

Pass the company API key (csk_*) as auth.token. Wire JSON stays snake_case; the SDK maps camelCase ↔ snake_case.

Methods in this package

  • sdk.documents.get('…') → GET /api/public/v1/documents/{id}
  • sdk.documents.list({ … }) → GET /api/public/v1/documents
  • sdk.invoices.get('…') → GET /api/public/v1/invoices/{id}
  • sdk.invoices.list({ … }) → GET /api/public/v1/invoices
  • sdk.orders.create({ /* MarketplaceCreateOrderRequest */ }) → POST /api/public/v1/orders
  • sdk.orders.get('…') → GET /api/public/v1/orders/{id}
  • sdk.orders.list({ … }) → GET /api/public/v1/orders
  • sdk.orders.update('…', { /* MarketplaceUpdateOrderRequest */ }) → PUT /api/public/v1/orders/{id}
  • sdk.orders.invoiceExempt.patch('…', { /* MarketplaceInvoiceExemptPatch */ }) → PATCH /api/public/v1/orders/{id}/invoice-exempt
  • sdk.orders.paymentStatus.patch('…', { /* MarketplacePaymentStatusPatch */ }) → PATCH /api/public/v1/orders/{id}/payment-status
  • sdk.products.create({ /* MarketplaceProductInput */ }) → POST /api/public/v1/products
  • sdk.products.delete('…') → DELETE /api/public/v1/products/{id}
  • sdk.products.get('…') → GET /api/public/v1/products/{id}
  • sdk.products.list({ … }) → GET /api/public/v1/products
  • sdk.products.update('…', { /* MarketplaceProductUpdateRequest */ }) → PUT /api/public/v1/products/{id}
  • sdk.stock.adjustments.create({ /* MarketplaceStockAdjustRequest */ }) → POST /api/public/v1/stock/adjust
  • sdk.stock.levels.list() → GET /api/public/v1/stock/levels
  • sdk.stock.movements.list({ … }) → GET /api/public/v1/stock/movements
  • sdk.stock.warehouses.list() → GET /api/public/v1/warehouses
  • sdk.transactions.get('…') → GET /api/public/v1/transactions/{id}
  • sdk.transactions.list() → GET /api/public/v1/transactions
  • sdk.webhooks.subscriptions.create({ /* GatewayCreateWebhookRequest */ }) → POST /api/public/v1/webhooks
  • sdk.webhooks.subscriptions.delete('…') → DELETE /api/public/v1/webhooks/{id}
  • sdk.webhooks.subscriptions.list() → GET /api/public/v1/webhooks

Examples

Create a webshop order

TypeScript uses camelCase; the SDK serializes to snake_case on the wire.

import { ContaStudioSDK } from '@conta-studio/sdk';

const sdk = new ContaStudioSDK('https://conta-studio.com', {
  auth: { token: process.env.CONTA_API_KEY },
});

const order = await sdk.orders.create({
  extOrderId: 'WC-1042',
  customerName: 'Ion Popescu',
  currency: 'RON',
  total: 99.98,
  lines: [{ sku: 'SKU-001', name: 'Produs demo', qty: 2, unitPrice: 49.99, vatRate: 19 }],
});

List invoices

const sdk = new ContaStudioSDK('https://conta-studio.com', { auth: { token: process.env.CONTA_API_KEY } });
const body = await sdk.invoices.list({ direction: 'incoming' });
console.log(body.data);

Stock levels

const sdk = new ContaStudioSDK('https://conta-studio.com', { auth: { token: process.env.CONTA_API_KEY } });
const levels = await sdk.stock.levels.list();

Register a webhook

const sdk = new ContaStudioSDK('https://conta-studio.com', { auth: { token: process.env.CONTA_API_KEY } });
const created = await sdk.webhooks.subscriptions.create({
  url: 'https://example.com/hooks/conta',
  events: ['order.created', 'order.updated'],
});
// Store created.signingSecret once — it is not returned again.

Full API

Every operation in this profile is also available on typed service clients.

import { MarketplaceOrdersApi } from '@conta-studio/sdk';
import { createConfiguration } from '@conta-studio/sdk/entry';

const config = createConfiguration({
  baseUrl: 'https://conta-studio.com',
  accessToken: process.env.CONTA_API_KEY,
});
const orders = new MarketplaceOrdersApi(config);
await orders.listOrders({ limit: 10 });

License-gated endpoints return 402 LICENSE_INACTIVE, 403 FEATURE_NOT_IN_PLAN, or 429 QUOTA_EXCEEDED. The SDK forwards those responses as-is.

Services included

  • marketplace (marketplace)
  • api-gateway (gateway)

Authentication

Supported schemes: Company API key (Authorization: or Bearer )

Changelog

See CHANGELOG.md.