🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

ednl-liftstatus-web-components

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ednl-liftstatus-web-components

The EDNL LiftStatus web components

latest
Source
npmnpm
Version
1.43.3
Version published
Weekly downloads
683
267.2%
Maintainers
1
Weekly downloads
 
Created
Source

EDNL LiftStatus Web Components

The EDNL LiftStatus web components for use in web applications.

Installation

Copy or clone the repo and run npm install.

To get live data, you need an access token to put in the <ls-data> component inside index.html.

How to get an access token

For the time being, navigate to https://next.liftstatus.nl/ and login. On the left, click on "liften".

In the address bar you can append the url with a lift ID like so: https://next.liftstatus.nl/lifts/31901.

The below Lift ID's are great for testing.

Lift IDUsefulness
31901Has a lot of movement
32386Has a lot of movement
32383Has a lot of movement
31981Has a lot of movement
49234Good for testing status messages and has a back door
55040Good for testing status messages
33137Good for testing status messages

Once on the selected elevator page, open the developer tools and navigate to the network tab. From here, filter on WS and select the request to api.liftstatus.nl/socket.io. You can find the token in the headers of this request.

Note: if you do not see a request, you might need to refresh the browser with the network tab open.

Start developing

Copy the access token and give it as a parameter in the <ls-data> component inside of index.html.

After that you can run npm run start to run the project. It should open to localhost:3000.

Demo

https://ednl-ls-web-components-demo.web.app/

UNPKG

https://unpkg.com/browse/ednl-liftstatus-web-components/dist/ednl-liftstatus-web-components/

Implementation manual (docs)

https://springtree.github.io/ednl-liftstatus-web-components/

To edit it you can run npm run docs.

i18n

  • Library: i18next (single shared instance in src/utils/i18n.ts).
  • Supported locales: nl and en.
  • Default + fallback locale: nl.

What is translated:

  • UI copy and error messages (ui:*, errors:* in src/utils/translations.ts).
  • Sensor labels / short labels / mapped sensor values (sensorLabels, sensorLabelsShort, sensorValues).
  • Locale-aware formatting used in components (for example percentages and relative time labels).

What is not translated:

  • Raw API/socket payload values.
  • Status code descriptions from src/stores/status-codes.json (used as-is).

Data flow:

  • language is set on <ls-data> (nl / en).
  • <ls-data> normalizes it via getLocale() and stores it in store.state.locale.
  • Components read translations through store helpers (store.t(...)) and/or locale utilities.
  • Components subscribe to locale changes (watchStoreLocale), so changing language at runtime updates connected components.
  • Locale scope is per installation (id-key), so multiple instances can run different locales on the same page.

Naming conventions

We use Conventional Commits.

Format: <type>(optional-scope): <short description>

Common types: build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test

Examples:

  • feat(ls-date-picker): add support for selecting custom ranges
  • fix(ls-data): prevent reconnect loop when token is missing
  • docs(readme): document local development setup
  • refactor(store): simplify idKey resolution for publish

FAQs

Package last updated on 20 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts