mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-19 16:41:18 +00:00
08dd43795275a51082ec0a93d65eedb226a139f2
Add lastFeed() method that returns cached FeedResult within a configurable TTL (default 5 min). refresh() always fetches fresh data and updates the cache. Periodic auto-refresh via recursive setTimeout when engine is started. Reactive updates reset the timer to avoid redundant fetches. Co-authored-by: Ona <no-reply@ona.com>
aris
To install dependencies:
bun install
Packages
@aris/source-tfl
TfL (Transport for London) feed source for tube, overground, and Elizabeth line alerts.
Testing
cd packages/aris-source-tfl
bun run test
Fixtures
Tests use fixture data from real TfL API responses stored in fixtures/tfl-responses.json.
To refresh fixtures:
bun run fetch-fixtures
Description
Languages
TypeScript
97.4%
Shell
1.3%
JavaScript
0.8%
Dockerfile
0.3%
CSS
0.2%