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

@uguratakan/corporatetools-client

v1.0.0

Published

TypeScript client library for Corporate Tools API

Readme

@uguratakan/corporatetools-client

TypeScript client library for Corporate Tools API. Standalone version that works without NestJS dependencies.

Installation

npm install @uguratakan/corporatetools-client
# or
yarn add @uguratakan/corporatetools-client
# or
pnpm add @uguratakan/corporatetools-client

Quick Start

import { CorporateToolsClient } from '@uguratakan/corporatetools-client';

const client = new CorporateToolsClient({
  apiUrl: 'https://api.corporatetools.com',
  accessKey: 'your-access-key',
  secretKey: 'your-secret-key',
  websiteUrl: 'https://your-website.com' // Your Provider for example www.registeredagentsinc.com 
});

// Use the client
const companies = await client.listCompanies();
const account = await client.getAccount();

Configuration

interface CorporateToolsConfig {
  apiUrl: string;           // Required: Corporate Tools API URL
  accessKey: string;        // Required: Your access key
  secretKey: string;        // Required: Your secret key
  websiteUrl: string;       // Required: Your Provider for example www.registeredagentsinc.com 
  timeout?: number;         // Optional: Request timeout in ms (default: 30000)
  logger?: {                // Optional: Custom logger
    log: (message: string) => void;
    error: (message: string) => void;
    debug: (message: string) => void;
  };
}

API Methods

Account

  • getAccount() - Get account information
  • getAccountDashpanel() - Get account dashboard data

Companies

  • listCompanies(params?) - List companies
  • getCompany(id) - Get company by ID
  • createCompany(company, options?) - Create a company
  • updateCompanies(payload) - Update companies

Documents

  • listDocuments(params?) - List documents
  • getDocument(id) - Get document by ID
  • getDocumentPageAsPng(id, pageNumber, dpi?) - Get document page as PNG
  • getDocumentPageUrl(id, pageNumber, dpi?) - Get document page URL
  • bulkDownloadDocuments(ids) - Bulk download documents
  • downloadDocumentPdf(id) - Download document as PDF
  • unlockDocument(id, paymentToken) - Unlock document

Invoices

  • listInvoices(params) - List invoices
  • getInvoice(id) - Get invoice by ID
  • payInvoices(paymentToken, invoiceIds) - Pay invoices

Services

  • listServices(params) - List services
  • createServices(payload) - Create services
  • requestServiceCancel(id) - Request service cancellation
  • getServiceInfo<T>(id) - Get service info
  • updateServiceInfo(id, info) - Update service info

Payment Methods

  • getPaymentMethods() - List payment methods
  • createPaymentMethod(payload) - Create payment method
  • updatePaymentMethod(id, payload) - Update payment method
  • deletePaymentMethod(id) - Delete payment method

Shopping Cart

  • addToShoppingCart(params) - Add item to cart
  • getShoppingCart(params?) - Get shopping cart
  • checkoutShoppingCart(params) - Checkout cart
  • deleteShoppingCartItem(itemIds) - Delete cart items

Order Items

  • listOrderItemsRequiringAttention(companyId?) - List order items requiring attention
  • updateOrderItemRequiringAttention(payload) - Update order item

Resources

  • listResources(params?) - List resources
  • getResource(id) - Get resource by ID
  • getResourcePageAsPng(id, pageNumber, dpi?) - Get resource page as PNG
  • downloadResourcePdf(id) - Download resource as PDF

Filing Products & Methods

  • listFilingProducts(params?) - List filing products
  • listRegisteredAgentProducts() - List registered agent products
  • listFilingMethods(options) - List filing methods
  • getFilingMethodShemas(companyId, filingMethodId) - Get filing method schemas
  • getFilingProductOfferings({companyId, jurisdiction}) - Get filing product offerings

Signed Forms

  • getSignedForms(params) - Get signed forms

Simple Products

  • listSimpleProducts() - List simple products

Websites

  • getWebsite() - Get website information

Compliance Events

  • listComplianceEvents(params) - List compliance events

Callbacks

  • listCallbacks() - List callbacks
  • createCallback(url) - Create callback
  • deleteCallback(id) - Delete callback

TypeScript Support

Full TypeScript support with comprehensive type definitions included. All types are exported from the package.

Examples

List Companies

const companies = await client.listCompanies({
  limit: 10,
  offset: 0,
});

Create Company

const company = await client.createCompany({
  name: 'My Company LLC',
  entity_type: 'Limited Liability Company',
  jurisdictions: [CTJurisdiction.Delaware],
});

Get Documents

const documents = await client.listDocuments({
  company_id: 'company-id',
  status: 'unread',
});

Custom Logger

const client = new CorporateToolsClient({
  apiUrl: 'https://api.corporatetools.com',
  accessKey: 'your-access-key',
  secretKey: 'your-secret-key',
  logger: {
    log: (msg) => console.log(`[INFO] ${msg}`),
    error: (msg) => console.error(`[ERROR] ${msg}`),
    debug: (msg) => console.debug(`[DEBUG] ${msg}`),
  },
});

License

MIT