Thanks for taking the time to contribute.
Open an issue at https://github.com/thorst/idle-session/issues. Include:
- A minimal reproduction (ideally a code snippet or failing test)
- What you expected to happen and what actually happened
- Browser and Node version if relevant
- Fork the repo and create a branch from
main - Make your changes
- Ensure tests pass and coverage stays complete —
npm testandnpm run coverage - Open a pull request with a clear description of what changed and why
npm install
npx playwright install chromium
npm test # run the test suite
npm run coverage # run tests with coverage, then open coverage/index.html
npm run dev # start the kitchen-sink demo at http://localhost:5173- Vanilla JS, no build step required for the library itself (
IdleSession.js) - Keep the public API surface small — the constructor options and
destroy()cover the common cases - New behavior should come with a corresponding test in
tests/session.spec.js