Skip to content
labirthermalPublic

About

Complete frontend toolset for work with IR recordings in web browser.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

Typescript tools for thermal imaging

Documentation and examples at https://labirthermal.github.io/web/.

TypeScript packages for working with thermal-camera recordings:

  • @labirthermal/core - the core functionality in pure TS
  • @labirthermal/webcomponents - webcomponents on top of @labirthermal/core
  • @labirthermal/react - React wrappers for @labirthermal/webcomponents

Other integrations:

  • thermal-display - a WordPress plugin using @labirthermal/webcomponents (see the plugin README)

Features

  • reads and displays multiple file formats
    • LRC files - documentation of the open LabIR Recording file format
    • FLIR jpegs - implementation is inspired by the Python library flyr
  • provides set of webcomponents that enables to build various and complex interfaces
  • capable to work with multiple files at once
  • optional integration to our server storage system
  • a WordPress plugin that brings the webcomponents to the publishing platform

Use the published packages

Install the package you need from npm:

npm install @labirthermal/core
npm install @labirthermal/webcomponents
npm install @labirthermal/react

See @labirthermal/core on npm and @labirthermal/webcomponents and @labirthermal/react on npm.

Development

Use PNPM package manager - this monorepo relies on its workspaces functionality.

The build and release process should be done from the workspace root. Do not build and publish packages individually - it might mess up version numbering (see below).

Installation

gh repo clone labirthermal/web
pnpm install

Development

Every /package/* has its own tests, build commands and devservers.

Documentation deployment

The Pages workflow builds the VitePress documentation on pushes to main or master, or via Actions > Deploy VitePress site to Pages > Run workflow.

Before the first deployment, select GitHub Actions under Settings > Pages > Build and deployment > Source. Alternatively, add a repository Actions secret named PAGES_TOKEN containing a fine-grained personal access token for this repository with Pages: Read and write permission; the workflow can then enable Pages automatically.

Once Pages is enabled, remove PAGES_TOKEN if it was used for setup. Subsequent deployments use the built-in GITHUB_TOKEN with the workflow's existing Pages permissions.

Release

The release needs to be done from the package root. Make sure you build & release all packages at once - not individually.

We use lerna to facilitate versioning and builds.

# 1. run lint in all packages
pnpm run lint

# 2. run tests in all packages
pnpm run test

# 3. build all packages
pnpm run build

# 4. commit the entire work
git add -A && git commit -m "..."

# 5. see the packages that has changed since the last release
pnpm run changed

# 6. use lerna to increment version of packages
pnpm run version

# 7. publish the packages
pnpm publish --recursive

License

MIT, except for the thermal-display WordPress plugin, which is licensed under GPL-2.0-or-later following the WordPress ecosystem convention.

About

Complete frontend toolset for work with IR recordings in web browser.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages