The elegant type-safe module composable library
Yet another DI library when Awilix and Inversify already exist.
TypeScript library for injecting time and timers with adapters for multiple date libraries.
Scoped time injection beats jest.useFakeTimers() global patching.
TypeScript developers writing testable code
jest · sinon · fake-timers
So for this purpose I built a small library (@time-provider) tailored for js/node environment.
Obviously the goal is to both avoid using global monkey-patching with fake-timers or re-writing your clock interface... and still use your date library (native or custom).
I propose four clock strategies: system (real time), fixed manual (advance time explicitly), and sequential (replay of a sequence of timestamps).
I also benchmarked slightly better performances than jest / sinon.
The project is still young, so the API may still receive refinements as real usage appears.
I would be happy to hear feedback on this ! Take care.
You can check it out on GitHub: https://github.com/jaenyf/time-provider
Jaenyf
Yet another DI library when Awilix and Inversify already exist.
No reflect-metadata, Stage 3 decorators, and compile-time type safety without the dance.
npm-style versioning for AI system prompts, but unclear if it solves real pain.
Compile-time DI via AST—zero reflection, zero runtime cost, Go idioms intact.
Human-in-the-loop agent injection with WebGPU models running entirely in-browser.
Purpose-built LLM security linter covers OWASP Top 10, but static analysis has inherent blind spots.