kenneth 08dd437952 feat: add caching to FeedEngine
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>
2026-02-24 01:13:41 +00:00
2026-02-24 01:13:41 +00:00
2026-01-16 00:56:55 +00:00
2026-01-16 00:56:55 +00:00
2026-01-16 00:56:55 +00:00

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
No description provided
Readme 14 MiB
Languages
TypeScript 97.4%
Shell 1.3%
JavaScript 0.8%
Dockerfile 0.3%
CSS 0.2%