Public Insights analysis package for detecting likely timezone-sensitive scheduling and date boundary handling in JavaScript and TypeScript repositories.
This package is read-only. It does not rewrite source files. It scans JS/TS/TSX code and increments one Insights metric per finding.
What It Detects
The workflow records findings for these risky patterns:
new Date("YYYY-MM-DD")
Date.parse(...)
new Date() or Date.now() in scheduling/query boundary logic
.toISOString() in scheduling/query boundary logic
toLocaleString(), toLocaleDateString(), and toLocaleTimeString() without explicit timeZone options
ORM/query/filter boundary objects on startTime, endTime, createdAt, updatedAt, start, end, and expiresAt
The analysis boosts confidence when the file path or nearby code suggests scheduling-related domains such as booking, scheduling, slot, calendar, availability, appointment, attendee, event, meeting, or reservation.
nested file fixtures proving filename is emitted as a basename only
safe timezone validation/import code producing no edits and no intended findings
The JSSG fixture harness in this package validates both read-only behavior and metric output through metrics.json snapshots. Those fixtures now assert that the package still emits exactly one metric via useMetricAtom("timezone-sensitive-scheduling-boundary") and that each finding includes the basename-only filename cardinality.
License
MIT
Ready to evolve your codebase?
Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.