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

@alternative-design-and-media/quick-api-connector

v0.1.0

Published

Type-safe quick API connector for Node.js and edge runtimes.

Readme

quick-api-connector

0.1.0

Type-safe TypeScript connector for the QUiCK API (v1 + v2) with native fetch, Cloudflare Worker compatibility, and strict endpoint typing derived from api.json.

Installation

npm install @alternative-design-and-media/quick-api-connector

Quick start

import { createQuickClient } from '@alternative-design-and-media/quick-api-connector';

const client = createQuickClient({
  apiToken: process.env.QUICK_API_TOKEN!,
  companyId: process.env.QUICK_COMPANY_ID,
  baseUrl: 'https://api.quick.local',
});

const expenses = await client.listExpensesV1({ page: 1, page_size: 50 });
const expense = await client.getExpenseV2(123, ['items', 'post_its']);

Authentication

API Token

createQuickClient({
  apiToken: 'your-api-token',
  companyId: 'optional-company-id',
});

Sends:

  • Authorization: Token <apiToken>
  • Quick-Company-Id: <companyId> (if provided)

OAuth2 Bearer

createQuickClient({
  bearerToken: 'oauth-access-token',
  companyId: 'required-company-id',
});

Sends:

  • Authorization: Bearer <bearerToken>
  • Quick-Company-Id: <companyId>

OAuth-only endpoints:

  • listCompanies()
  • getUserProfile()

Pagination

  • v1 list endpoints return { count, next, previous, results } and accept page / page_size.
  • v2 list endpoints return cursor-style responses with next / previous links and collection results.

API reference

Expenses

| Method | HTTP | Path | Description | | --- | --- | --- | --- | | listExpensesV1 | GET | /1/expenses | List expenses (v1) | | listExpensesV2 | GET | /2/expenses | List expenses (v2) | | getExpenseV1 | GET | /1/expenses/{expense_id} | Expense detail (v1) | | getExpenseV2 | GET | /2/expenses/{expense_id} | Expense detail (v2) | | updateExpenseV2 | PATCH | /2/expenses/{expense_id}/update | Update expense | | searchExpenseArtifact | POST | /2/expenses/artifact-search | Artifact search | | createExpenses | POST | /2/expenses/create | Create expenses | | bulkAcceptQuarantine | POST | /1/expenses/quarantine-accept | Accept quarantine expenses | | bulkApproveExpenses | POST | /1/expenses/approve | Approve expenses | | bulkUnapproveExpenses | POST | /1/expenses/unapprove | Unapprove expenses | | bulkCheckExpenses | POST | /1/expenses/check | Mark checked | | bulkUncheckExpenses | POST | /1/expenses/uncheck | Mark unchecked | | bulkExportExpenses | POST | /1/expenses/export | Mark exported |

Incomes & Artifacts

| Method | HTTP | Path | | --- | --- | --- | | listIncomes | GET | /1/incomes | | getIncome | GET | /1/incomes/{income_id} | | getExpenseArtifacts | POST | /1/artifacts/expense | | getIncomeArtifacts | POST | /1/artifacts/income |

Documents

listDocuments, listDocumentFiles, listDocumentTypes, getDocument, updateDocument, createDocuments, deleteDocuments, attachDocuments, detachDocuments, searchDocument

Accounting

listLedgerNumbers, createLedgerNumbers, updateLedgerNumber, deleteLedgerNumbers, listVatCategories, createVatCategories, updateVatCategory, deleteVatCategories

Taxes

listTaxCodes, listMonthlyTaxesV1, listMonthlyTaxesV2, createTaxesV1, createTaxesV2, updateTaxesV1, updateTaxesV2, deleteTaxesV1, deleteTaxesV2

Salaries

listMonthlySalariesV1, listMonthlySalariesV2, createSalariesV1, createSalariesV2, updateSalariesV1, updateSalariesV2, deleteSalariesV1, deleteSalariesV2

Companies, tags, and misc

  • Companies: listCompanies, getUserProfile
  • Tags: listTags, createTags, updateTags, deleteTags
  • Misc: listPartners, listAccounts, listPayments, pulse, uploadAuditXml, getCompanyInfo, updateCompanyInfo

Scripts

  • npm run typecheck
  • npm test
  • npm run build