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

lagerkoll-nodejs-sdk

v0.1.1

Published

SDK-wrapper for Lagerkoll-API in NodeJS. Check the test-implementation in TestSDK.js to get you started

Downloads

40

Readme

This SDK wraps the API of Lagerkoll (www.lagerkoll.com).

Url to API: http://www.lagerkoll.com/capi-doc/v1/

To get started: The SDK has been implemented in TestSDK.js. Check there for reference to callback-methods and usage of the methods

Create an instance of DataManager:

var dataManager = new DataManager(BASE_URL, API_KEY, MAIN_STORE_ID, CALLBACK_URL, CALLBACK_PORT, CALLBACK_METHOD);

BASE_URL: is the base-url of the API (http://www.lagerkoll.com/capi/v1) API_KEY: is used to validate the requests and can be fetched from where the API is activated on Lagerkoll.com MAIN_STORE_ID: if you only have one stock/store, this is the id for that stock/store. If you have more than one, this should point to the main one (the one created when you registered to Lagerkoll) CALLBACK_URL: If you'd like Lagerkoll to let you know when something has been updated on their server-side you can start a server, listening on a specific endpoint and port CALLBACK_PORT: If you'd like Lagerkoll to let you know when something has been updated on their server-side you can start a server, listening on a specific endpoint and port CALLBACK_METHOD: This is the interface that will receive the callbacks. See below for an implementation of the interface

Callback-interface:

var callback = function() { this.onArticleCreated = function(storeId, article) {} this.onArticleUpdated = function(storeId, article) {} this.onArticleDeleted = function(storeId, articleId) {}

this.onStoreCreated = function(storeId) {}
this.onStoreUpdated = function(storeId) {}
this.onStoreDeleted = function(storeId) {}

this.onPricelistCreated = function(storeGroupId, pricelist) {}
this.onPricelistUpdated = function(storeGroupId, pricelist) {}
this.onPricelistDeleted = function(storeGroupId, pricelistId) {}

this.onPriceCreated = function(storeGroupId, price) {}
this.onPriceUpdated = function(storeGroupId, price) {}
this.onPriceDeleted = function(storeGroupId, pricelistId, articleId, fromQuantity) {}

this.onCurrencyUpdated = function(storeId, response) {}

this.onCustomerCreated = function(storeId, customer) {}
this.onCustomerUpdated = function(storeId, customer) {}
this.onCustomerDeleted = function(storeId, customerId) {}

this.onCustomerDeliveryTermCreated = function(storeId, customerDeliveryTerm) {}
this.onCustomerDeliveryTermUpdated = function(storeId, customerDeliveryTerm) {}
this.onCustomerDeliveryTermDeleted = function(storeId, code) {}

this.onWayOfDeliveryCreated = function(storeId, wayOfDelivery) {}
this.onWayOfDeliveryUpdated = function(storeId, wayOfDelivery) {}
this.onWayOfDeliveryDeleted = function(storeId, code) {}

this.onPaymentTermCreated = function(storeId, paymentTerm) {}
this.onPaymentTermUpdated = function(storeId, paymentTerm) {}
this.onPaymentTermDeleted = function(storeId, code) {}

this.onCustomerOrderCreated = function(storeId, customerOrder) {}
this.onCustomerOrderUpdated = function(storeId, customerOrder) {}
this.onCustomerOrderDeleted = function(storeId, customerOrderId) {}

this.onSupplierCreated = function(storeId, supplier) {}
this.onSupplierUpdated = function(storeId, supplier) {}
this.onSupplierDeleted = function(storeId, supplierId) {}

this.onSupplierDeliveryTermCreated = function(storeId, supplierDeliveryTerm) {}
this.onSupplierDeliveryTermUpdated = function(storeId, supplierDeliveryTerm) {}
this.onSupplierDeliveryTermDeleted = function(storeId, code) {}

};