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

shipreporting-api

v1.1.0

Published

## A - LIVE DATA SERVICES:

Readme

Shipreporting APIs - List of services

A - LIVE DATA SERVICES:

  1. Active trips:
http://<REMOTE_IP>:3000/activeTripsNow?id_portinformer=<id_portinformer>
  1. Roadstead now:
http://<REMOTE_IP>:3000/roadsteadNow?id_portinformer=<id_portinformer>&id_activity=2
  1. Moored now:
http://<REMOTE_IP>:3000/mooredNow?id_portinformer=<id_portinformer>&id_activity=5
  1. Arrivals now:
http://<REMOTE_IP>:3000/arrivalsNow?id_portinformer=<id_portinformer>
  1. Departures now:
http://<REMOTE_IP>:3000/departuresNow?id_portinformer=<id_portinformer>
  1. Arrival previsions:
http://<REMOTE_IP>:3000/arrivalPrevisionsNow?id_portinformer=<id_portinformer>
  1. Shipped goods:
http://<REMOTE_IP>:3000/shippedGoodsNow?id_portinformer=<id_portinformer>
  1. RO/RO + RO/PAX:
http://<REMOTE_IP>:3000/trafficListNow?id_portinformer=<id_portinformer>
  1. Shifting previsions:
http://<REMOTE_IP>:3000/shiftingPrevisionsNow?id_portinformer=<id_portinformer>
  1. Departure previsions:
http://<REMOTE_IP>:3000/departurePrevisionsNow?id_portinformer=<id_portinformer>

B - ARCHIVE DATA SERVICES:

  1. Trips archive [global recap, one row per trip]:
http://<REMOTE_IP>:3000/tripsArchive?id_portinformer=<ID_PORTINFORMER>
  1. Trips archive [global recap, one row per commercial operation]:
http://<REMOTE_IP>:3000/tripsArchiveMultiRows?id_portinformer=<ID_PORTINFORMER>
  1. Trip data archive [shipreport core]:
http://<REMOTE_IP>:3000/shipReportList?id_portinformer=<ID_PORTINFORMER>
  1. Trip data archive detailed [shipreport]:
http://<REMOTE_IP>:3000/shipReportDetails?id_portinformer=<ID_PORTINFORMER>
  1. Arrivals archive:
http://<REMOTE_IP>:3000/arrivalsArchive?id_portinformer=<id_portinformer>
  1. Departures archive:
http://<REMOTE_IP>:3000/departuresArchive?id_portinformer=<id_portinformer>
  1. Shipped goods archive:
http://<REMOTE_IP>:3000/shippedGoodsArchive?id_portinformer=<id_portinformer>
  1. Traffic list archive:
http://<REMOTE_IP>:3000/trafficListArchive?id_portinformer=<id_portinformer>

C - DAILY REGISTER SERVICES:

  1. Arrivals:
http://<REMOTE_IP>:3000/registerArrivals?id_portinformer=<ID_PORTINFORMER>
  1. Moored:
http://<REMOTE_IP>:3000/registerMoored?id_portinformer=<ID_PORTINFORMER>
  1. Roadstead:
http://<REMOTE_IP>:3000/registerRoadstead?id_portinformer=<ID_PORTINFORMER>
  1. Departures:
http://<REMOTE_IP>:3000/registerDepartures?id_portinformer=<ID_PORTINFORMER>
  1. Shiftings:
http://<REMOTE_IP>:3000/registerShiftings?id_portinformer=<ID_PORTINFORMER>
  1. Arrival previsions:
http://<REMOTE_IP>:3000/registerPlannedArrivals?id_portinformer=<ID_PORTINFORMER>
  1. Shipped goods:
http://<REMOTE_IP>:3000/registerShippedGoods?id_portinformer=<ID_PORTINFORMER>
  1. RO/RO + RO/PAX:
http://<REMOTE_IP>:3000/registerTrafficList?id_portinformer=<ID_PORTINFORMER>

D - BUSINESS INTELLIGENCE SERVICES:

  1. Shiftings/maneuverings [per quay/berth]:
http://<REMOTE_IP>:3000/tripsManeuverings?id_portinformer=<ID_PORTINFORMER>
  1. Shipped goods recap:
http://<REMOTE_IP>:3000/shippedGoodsRecap?id_portinformer=<ID_PORTINFORMER>
  1. RO/RO + RO/PAX recap:
http://<REMOTE_IP>:3000/trafficListRecap?id_portinformer=<ID_PORTINFORMER>

E - METEO DATA

  1. Meteo data archive:
http://<REMOTE_IP>:3000/meteoArchive?id_portinformer=<ID_PORTINFORMER>

Deploy, start & stop server:

$ cat /lib/systemd/system/shipreporting.service 
[Unit]
Description=Shipreporting service middleware
Documentation=https://github.com/deeper-x/shipreporting-api
After=network.target

[Service]
Environment=NODE_PORT=3000
Type=simple
User=<YOUR_USER>
WorkingDirectory=/home/<YOUR_USER>/shipreporting-api
ExecStart=/usr/bin/npm start
Restart=on-failure

[Install]
WantedBy=multi-user.target

Create database and set configuration data:

$ vim settings/db_auth.js 

Then:

$ sudo systemctl start shipreporting.service
$ sudo systemctl stop shipreporting.service

Local deploy [on dev environment]:


$ npm install
[...omissis]
$ npm start

> [email protected] start /home/<YOUR_USER>/NodeProjects/shipreporting-api
> ./node_modules/nodemon/bin/nodemon.js index.js

[nodemon] 1.18.9
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node index.js`
running on http://0.0.0.0:3000...