Project 48 of 84
idhub Identity
@idhub: a portable identity-resolution package set that solves the anonymous-to-known-user transition once instead of once per vendor per app. One canonical anonymous id is minted upstream of every vendor SDK and a single identify() call fans out to every registered provider.
- Status
- Shipped
- Last activity
- 2026
- Stack
- TypeScript
- pnpm workspaces
- Turborepo
- tsup
- Changesets
- Vitest
- Playwright
- ESLint flat config
Highlights
- Hardened the @idhub release pipeline after finding the push-triggered Changesets job would have published tarballs with no build output; added a build-before-publish step, a manifest check enforcing identity-core's zero-runtime-dependency rule, and a pack-time validator that every exports target exists in the tarball (ADR 0002, PR #2).
- Proved the architecture's 'add a vendor with zero changes' claim with executable tests: a private fake 4th-vendor provider passes conformance and runtime-integration tests against identity-core, plus a static guard that core and adapters never import any provider (PR #5).
- Built and deployed a Docusaurus 3 docs/marketing site for the package set, with TypeDoc API reference for all 6 packages, a Skills section generated from the repo's skills/ directory, and a verifier that checks every doc code sample's imports and provider config fields against the built .d.ts files; later made the verifier an importable module with a Vitest regression suite (PR #4).
- Piloted the identity packages into two separate production-style repos (a Next.js demo app and a server-side GA4 relay that forwards the canonical anonymous id alongside GA4's client_id), then moved both from local link: dependencies to the published ^0.1.0 npm range.
- Made both framework adapters' test apps Playwright-testable with a typed testid catalog, state-marker attributes and page objects with attribute-based readiness waits instead of fixed timeouts.
- Fixed a CI secret-scan gate that could never block a deploy (continue-on-error masked real gitleaks/trufflehog findings) by adding a final step that fails the job on any scanner failure.
- Shipped a Claude Code onboarding skill that installs the identity stack into an external repo: it detects the framework, asks which vendors to wire, writes scaffolding only where files are missing, and points out login/logout call sites without editing them. Distributed as a plugin marketplace entry and documented on the docs site.
- Ran a backlog audit from plans and docs into beads epics, then closed a sweep of them in four reviewed PRs (CI hardening, docs-tooling tests, 4th-vendor proof, license/README/sample fixes), and wrote CODING_STANDARDS.md and a domain GLOSSARY.md for the repo.