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 🙏

© 2025 – Pkg Stats / Ryan Hefner

navision-proxy-api

v1.7.7

Published

Api for alex andersen web apps.

Downloads

3

Readme

Introduction

Navision proxy api for both SOAP and REST navision clients.

Currently typescript version is available for bookings api. Bookings api is used for Webook app. API stores data about users, quick forms, bookings templates. Also it fetches and extends data from navision api.

Also this API have endpoints for terminal app (data about loads in vehicles) and for parking app (vehicles and drivers data) which was put on hold.

Getting Started

You can find full application documentation in docs/index.html file.

There is an API documentation in /docs/modules/lib_api_booking.html file.

Install node dependencies with npm install and than you can run API with npm start command.

Migrations

If you changing models you probably will need to create migration to make sure old data fit new models. You can find examples of migrations in lib/db/migrations folder. To run migration run export NODE_ENV=development or export NODE_ENV=production and then node --experimental-specifier-resolution=node --loader ts-node/esm ./lib/db/migrations/<NAME_OF_MIGRATION>.js

Local Development

  1. To local develop a project you need to provide an access to mongodb.

a) You would need to create a tunel to AWS EC2 instance where the you can get an access to development document db. To do so run ssh -i ec2.pem -f -N -L 27017:localhost:27017 [email protected]

b) Alternatively you can work with your local instance. You can do it with mongod --fork --syslog --dbpath lib/db/. Than you will also have to customise MONGO_DB_OPTIONS in lib/config.ts for your mongo client.

  1. When importing modules you always should use .js endings for files. TODO: setup this as a linter rule When developing localy you should first run the mongo db with npm run start-mongo and after run project with npm run start:local. Also you haave to be inside AA VPN.

When importing modules you always should use .js endings for files. TODO: setup this as a linter rule

https://stackoverflow.com/questions/62619058/appending-js-extension-on-relative-import-statements-during-typescript-compilat

Publishing

This app is stored as a package on Azure. In order to publish changes in types so it can be recognized in depending apps app needs to be authentificated. See https://dev.azure.com/alex-andersen/Alex%20Andersen/_artifacts/feed/navision-proxy-api/connect/npm. When you want to publish package update you need to run npm version patch|minor|major and than npm publish

Common issues

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'ts-node'

Dev dependecies not installed - switch to NODE_ENV=local or NODE_ENV=production

Invalid XML

Some unknown soap packaging issues. Should work with package-lock.json from commit ced87c33