Thanks for helping improve googlemaps-kit.
npm install
npm run build # tsc → dist/
npm run type-check # strict TS over src + tests + examples
npm test # unit suite (offline, deterministic)Copy .env.example to .env for locale overrides (GMAPS_HL, GMAPS_GL).
npm testruns the offline unit suite fromtests/unitusing recorded fixtures fromtests/fixtures. It must always pass with no network access.npm run test:livehits real Google endpoints. It only runs withGMAPS_LIVE=1and needs optional signed-in cookies viaGMAPS_COOKIESfor signed-in surfaces. Never commit cookie values or captured responses.- New parsers, services, and builders need unit coverage. Do not add network calls to the unit suite; record a fixture instead.
- Shared test helpers go in
tests/helpers, fixtures intests/fixtures.
Examples run against the built SDK (dist/) and live Google endpoints:
npm run example:quick-start # or any example:* script in package.json
npm run examples:all # builds first, then runs every example- Small, focused diffs; one behaviour change per PR.
- Include tests for parsers and builders.
- Update
src/known-surfaces.tswhen surface status changes. - Run
npm run type-checkandnpm testlocally before pushing; both must pass. - For network-facing changes, run
npm run verify:allwhen practical and summarise the results in the PR description.
Open a GitHub issue for bugs and feature requests. For security vulnerabilities, email vanditkumarofficial@gmail.com — do not open public issues for those.
By participating you agree to abide by the Code of Conduct.