0.4.3 • Published 2 months ago

@timing71/common v0.4.3

Weekly downloads
-
License
AGPL-3.0-or-later
Repository
github
Last release
2 months ago

Timing71 Common

AGPL v3.0 GitHub Workflow Status npm (scoped)

Timing71 is a motorsports live timing aggregation and analysis system. This package contains common functions used by the Timing71 website, command-line application and backend services.

  • messages/ contains generators for the messages that appear in the bottom third of the timing screen.
  • analysis/ defines the mobx-state-tree object that provides real-time analysis and statistics.
  • racing.js contains the enum-like classes Stat and FlagState used extensively throughout the other codebases.
  • replay.js contains functions to read replay files, as well as the createIFrame method used to help generate them.
  • services.js defines the main base class for all interfaces with upstream timing providers, Service, as well as a boilerplate HTTPPollingService class for simple cases. It also contains the main service provider registry; additional service provider classes should define a static property regex to define which source URLs should use that provider, then register themselves using the registerServiceProvider(clazz) method.
  • statExtractor.js defines the StatExtractor class, a helper to extract a given Stat for a car from a Common Timing Format frame.

Other files contain miscellaneous other pieces of shared code, such as time and date handling and formatting.

Test suite

A test suite using jest is provided and can be run using yarn run test.

0.4.3

2 months ago

0.4.1

10 months ago

0.4.2

6 months ago

0.4.0

11 months ago

0.3.0

1 year ago

0.3.1

12 months ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago

0.0.3

2 years ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.2

2 years ago

0.0.1

2 years ago