{"id":51772660,"url":"https://github.com/qppd/id-guard","last_synced_at":"2026-07-20T03:32:32.264Z","repository":{"id":367908353,"uuid":"1282752935","full_name":"qppd/id-guard","owner":"qppd","description":"Web app for TTLock-compatible smart lock (G06AB) management - lock/unlock, eKey sharing, gateway management","archived":false,"fork":false,"pushed_at":"2026-07-06T08:14:42.000Z","size":408,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-06T09:20:42.537Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qppd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-28T06:44:42.000Z","updated_at":"2026-07-06T08:14:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/qppd/id-guard","commit_stats":null,"previous_names":["qppd/ttlock-webapp","qppd/id-guard"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/qppd/id-guard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qppd%2Fid-guard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qppd%2Fid-guard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qppd%2Fid-guard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qppd%2Fid-guard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qppd","download_url":"https://codeload.github.com/qppd/id-guard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qppd%2Fid-guard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35672442,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"ssl_error","status_checked_at":"2026-07-20T02:08:09.736Z","response_time":111,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-07-20T03:32:31.653Z","updated_at":"2026-07-20T03:32:32.241Z","avatar_url":"https://github.com/qppd.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ID Guard\n\nA Next.js web application for managing TTLock-compatible smart locks remotely via the TTLock Cloud API V3.\n\n## Features\n\n- **Remote Lock/Unlock** — Lock and unlock devices from anywhere\n- **Passcodes** — Create, edit, and delete permanent/timed/cyclic passcodes\n- **IC Cards \u0026 Fingerprints** — Manage credential registrations\n- **eKeys** — Share, freeze, unfreeze, update, and delete digital keys\n- **Unlock Records** — View unlock history with type labels\n- **Gateways** — Monitor gateway online/offline status\n- **Firmware** — Check and trigger lock firmware upgrades\n- **Lock Config** — View and modify lock settings\n- **Door Sensor** — Real-time door open/closed state\n- **Webhook** — Receive TTLock event callbacks\n\n## Tech Stack\n\n| Layer | Tech |\n|---|---|---|\n|| Framework | Next.js 16 (App Router, Turbopack) |\n|| Language | TypeScript 5 |\n|| UI | React 19 + Tailwind CSS 4 |\n|| Data Fetching | SWR 2 |\n|| API Target | TTLock Cloud API V3 (sciener.com) |\n\n## Brand Identity\n\nIDGuard uses a **Clean • Elegant • Modern • Professional** design system:\n\n| Purpose | Color | Hex |\n|---|---|---|\n| Primary Brand | Deep Navy | `#183B6B` |\n| Secondary Brand | Royal Blue | `#3B82F6` |\n| Accent Hover | Soft Sky Blue | `#DCEEFF` |\n| Main Background | Pure White | `#FFFFFF` |\n| Secondary Background | Warm Cream | `#F8F6F2` |\n| Primary Text | Charcoal Gray | `#1F2937` |\n| Secondary Text | Slate Gray | `#6B7280` |\n| Borders | Light Gray | `#E5E7EB` |\n| Success | Green | `#22C55E` |\n| Warning | Amber | `#F59E0B` |\n| Error | Red | `#EF4444` |\n| Info | Royal Blue | `#3B82F6` |\n\n**Typography:** Poppins (headings, Deep Navy `#183B6B`) · Inter (body text, Charcoal Gray `#1F2937`)\n\n**Color distribution:** 60% White · 25% Cream · 15% Blue\n\n## Quick Start\n\n```bash\n# Install dependencies\nnpm install\n\n# Configure environment\ncp .env.example .env.local\n# Fill in TTLOCK_CLIENT_ID and TTLOCK_CLIENT_SECRET\n\n# Run development server\nnpm run dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) and sign in with your TTLock account credentials.\n\n## Build\n\n```bash\nnpm run build\n```\n\n## Project Structure\n\n```\nsrc/\n├── app/\n│   ├── api/              # 17 API route handlers\n│   ├── dashboard/        # Dashboard page\n│   ├── gateways/         # Gateway list page\n│   ├── keys/             # eKey management page\n│   ├── locks/[id]/       # Lock detail page\n│   ├── login/            # Login page\n│   ├── layout.tsx        # Root layout + Navbar\n│   └── page.tsx          # Landing/redirect\n├── components/\n│   ├── LockCard.tsx      # Lock card (lock/unlock)\n│   ├── LoginForm.tsx     # Login form\n│   └── Navbar.tsx        # Navigation bar\n└── lib/\n    ├── ttlock.ts         # TTLock API client (24 endpoints)\n    ├── types.ts          # TypeScript interfaces\n    └── hooks/\n        ├── useAuth.ts    # Auth hook (login/logout/check)\n        └── useLocks.ts   # Locks hook (list/toggle)\n\ndocs/                      # Documentation\n```\n\n## Documentation\n\nSee the [docs/](./docs) folder for:\n\n- [System Architecture](./docs/system-architecture.md)\n- [API Reference](./docs/api.md)\n- [Technology Stack](./docs/stacks.md)\n- [Flowchart](./docs/flowchart.md)\n\n## Environment Variables\n\n| Variable | Description |\n|---|---|\n| `TTLOCK_CLIENT_ID` | TTLock API client ID |\n| `TTLOCK_CLIENT_SECRET` | TTLock API client secret |\n| `TTLOCK_WEBHOOK_SECRET` | (Optional) Webhook signature verification |\n\n## License\n\nPrivate project.\n\n## Author\n\n**Sajed Lopez Mendoza**\n\n| | |\n|---|---|\n| Portfolio | [sajed-lopez-mendoza.vercel.app](https://sajed-mendoza.is-pinoy.dev) |\n| GitHub | [github.com/qppd](https://github.com/qppd) |\n| Facebook (Dev Account) | [facebook.com/qppd.dev](https://facebook.com/qppd.dev) |\n| Facebook (QPPD Page) | [facebook.com/QPPD](https://facebook.com/QPPD) |\n| TikTok | [@jed.lopez.mendoza.dev](https://tiktok.com/@jed.lopez.mendoza.dev) |\n| Email | [quezon.province.pd@gmail.com](mailto:quezon.province.pd@gmail.com) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqppd%2Fid-guard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqppd%2Fid-guard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqppd%2Fid-guard/lists"}