{"id":51285946,"url":"https://github.com/rricajos/planetpass","last_synced_at":"2026-06-30T05:32:44.313Z","repository":{"id":366841057,"uuid":"1278096600","full_name":"rricajos/planetpass","owner":"rricajos","description":"Sign in with a planet — interactive globe login that detects timezone, language \u0026 location. Self-contained, d3-geo. AGPL-3.0 + attribution.","archived":false,"fork":false,"pushed_at":"2026-06-23T13:45:57.000Z","size":93,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-23T15:25:40.686Z","etag":null,"topics":["d3-geo","geolocation","globe","i18n","login","onboarding","svelte-free","timezone"],"latest_commit_sha":null,"homepage":"https://rricajos.github.io/planetpass/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rricajos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-23T13:09:31.000Z","updated_at":"2026-06-23T13:46:47.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rricajos/planetpass","commit_stats":null,"previous_names":["rricajos/planetpass"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/rricajos/planetpass","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rricajos%2Fplanetpass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rricajos%2Fplanetpass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rricajos%2Fplanetpass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rricajos%2Fplanetpass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rricajos","download_url":"https://codeload.github.com/rricajos/planetpass/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rricajos%2Fplanetpass/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34954283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["d3-geo","geolocation","globe","i18n","login","onboarding","svelte-free","timezone"],"created_at":"2026-06-30T05:32:42.782Z","updated_at":"2026-06-30T05:32:44.297Z","avatar_url":"https://github.com/rricajos.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# PlanetPass\n\n**Sign in with a planet.** A framework-agnostic globe component that detects your\n**timezone**, **language** and **location** — so your app greets a visitor in their\ntongue, in their hours, from the first second.\n\n**[Live demo →](https://rricajos.github.io/planetpass/)** · `@rricajos/planetpass`\n\n\u003c/div\u003e\n\n---\n\nSpin the globe, drag it (with inertia), **zoom with the wheel**, **click a country**\nor search a postal code / city / country. PlanetPass flies to it and emits a\n`locale`. Works in **React, Vue, Svelte, Angular or plain HTML** — it's a Web Component.\n\n## Install\n\n```bash\nnpm i @rricajos/planetpass\n```\n\n…or drop it in with a `\u003cscript\u003e` (no build):\n\n```html\n\u003cplanet-pass style=\"display:block;width:100%;height:480px\"\u003e\u003c/planet-pass\u003e\n\u003cscript type=\"module\" src=\"https://cdn.jsdelivr.net/npm/@rricajos/planetpass\"\u003e\u003c/script\u003e\n```\n\n## Use it\n\n**As a Web Component** (any framework / plain HTML):\n\n```html\n\u003cplanet-pass accent=\"#f6a13c\" resolution=\"110m\"\u003e\u003c/planet-pass\u003e\n\u003cscript type=\"module\"\u003e\n  import '@rricajos/planetpass';\n  document.querySelector('planet-pass').addEventListener('locale', (e) =\u003e {\n    const { language, timezone, country, lat, lon, label } = e.detail;\n    setAppLanguage(language);\n    setAppTimezone(timezone);\n  });\n\u003c/script\u003e\n```\n\n**As a function** (full control, TypeScript types included):\n\n```ts\nimport { createPlanetPass, type PlanetLocale } from '@rricajos/planetpass';\n\nconst globe = createPlanetPass(document.getElementById('globe')!, {\n  accent: '#f6a13c',\n  onLocale: (loc: PlanetLocale) =\u003e console.log(loc),\n});\nglobe.flyTo(2.17, 41.39);   // fly to Barcelona\n// globe.destroy() when done\n```\n\n## Options\n\n| Option | Type | Default | |\n|---|---|---|---|\n| `accent` | `string` | `#f6a13c` | Brand color (highlight, button). |\n| `search` | `boolean` | `true` | Show the built-in search box. |\n| `placeholder` | `string` | — | Search box placeholder. |\n| `autoSpin` | `boolean` | `true` | Gentle rotation until the first pick. |\n| `resolution` | `'110m' \\| '50m'` | `'110m'` | Border detail. |\n| `dataUrl` | `string` | — | Override the world-atlas TopoJSON URL. |\n| `onLocale` | `(l: PlanetLocale) =\u003e void` | — | Callback on every pick. |\n\n## The `locale` payload\n\n```ts\ninterface PlanetLocale {\n  lat: number; lon: number;\n  country: string;       // ISO alpha-2\n  timezone: string;      // IANA, or approximate \"UTC±N\"\n  language: string;      // e.g. \"es\"\n  label: string;         // \"Barcelona, Spain\"\n  approxTimezone?: boolean;\n}\n```\n\n## How it works\n\nReal orthographic globe via [d3-geo](https://github.com/d3/d3-geo) (correct hemisphere\nclipping). Geocoding with **no API key** — [Open-Meteo](https://open-meteo.com) (precise\nIANA timezone) with an [OSM Nominatim](https://nominatim.org) fallback. Country borders\nfrom [world-atlas](https://github.com/topojson/world-atlas), fetched at runtime.\n\n## Develop\n\n```bash\nnpm i\nnpm run dev        # demo at localhost:5173\nnpm run build      # dist/ (ESM + UMD + .d.ts)\nnpm run typecheck\n```\n\nBranches: `main` = the component · [`simple`](https://github.com/rricajos/planetpass/tree/simple) = a zero-build, single-file version to copy-paste.\n\n## License \u0026 attribution\n\n**[AGPL-3.0](LICENSE)** with an **attribution term** (AGPLv3 §7b).\n\n- **Free for any use, including commercial.**\n- Modify / host a modified version → **share your source** under the same license (copyleft).\n- **Keep the visible `PlanetPass · by Ricajos` credit** (→ [ricajos.com](https://ricajos.com)). Removing it needs written permission — a commercial / white-label license is available, open an issue.\n\n## Credits\n\nCreated by **Ricard** ([Ricajos](https://ricajos.com)) · [@rricajos](https://github.com/rricajos).\nBorn as the onboarding for [calcat](https://calcat.app), released standalone.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frricajos%2Fplanetpass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frricajos%2Fplanetpass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frricajos%2Fplanetpass/lists"}