Repository navigation
Spikes: auth, admin and UI kit extensions, and the extension model review - #54
Merged
Merged
Conversation
Proposes urlcode-auth as a host plugin driven by a portable auth.yaml: accounts, roles and permissions, password, passkeys, Google, Apple, email and SMS codes, TOTP, recovery including forgot password, an accounts page, and the schema groundwork for organizations, teams and SSO. Compares Google, Uber, Airbnb and the open-source auth projects to fill the gaps, maps each part to its standard, and names the three generic core seams the plugin would need. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
… shadcn/ui pages Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
…list in scope Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
…t seam Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
…, every target Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
…omparison and overloading Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
…h extension Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
…dmin spikes Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
…e case for building less Host file loaded with --host-file replaces the assumed server file; origin comes from --origin; mount and protect removed from the auth block; the UI kit owns extensions.ui through its own plugin; extension routes supply fixtures; translations move to day one. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
…ne, security engineering gaps; next-extension candidates Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
…ic OIDC, metadata, sign-up controls and a Turnstile adapter Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
…oice; auth spike gains guest-function hooks, hash import and store aggregates Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
…ork by repository Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
This was referenced Sep 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem and change
The runtime has no design for how a site grows from redirects and pages into accounts, user management and the pages those need, without giving up portability. This adds four design documents, nothing implemented, for review as a set:
docs/SPIKE-AUTH.md:urlcode-auth, a host plugin driven by a portable includedauth.yaml. Identifier-first sign-in, registration, passwords, passkeys, email codes, Google, Apple and any OpenID Connect provider (built day one, dark until configured), TOTP, recovery codes, trusted devices, step-up, forgot password and recovery, roles andpolicies.authon any route, a full accounts page, sign-up controls, per-account metadata, the four generic runtime seams it needs, one project store with a generic contract, every target, a comparison with Google, Uber, Airbnb and the open-source auth projects, what to keep from PeerEyes, a scope cut for the first release, and the process for asking the runtime for changes.docs/SPIKE-ADMIN.md:urlcode-admin, dashboard and full user management, sessions, roles, audit and recovery cases, on top of a provider ofauth.docs/SPIKE-UI.md:urlcode-ui, the shared template kit: Tailwind and shadcn/ui markup, CSS built at publish, theme variables, copy catalogue with translations from day one, override order,eject,doctor,preview, the extension scaffold, and the path a project takes.docs/SPIKE-EXTENSION-MODEL.md: the review: alignment issues found and fixed (host file loaded with--host-file, origin from--origin, nomountorprotect, kit ownsextensions.ui, extension fixtures, translations day one), precedents in Django, Rails, Laravel, WordPress, Keycloak, Kratos and Better Auth, the case for building less, the comparison with Clerk, whether the extensions make sense as one system, how to make it the choice, forkability through contract packages, and the work by repository.docs/README.mdindexes the four documents.Verification
npm run checkpasses (syntax and JSON checks, Worker closure free of Node imports);npm run lintpasses. Documentation only, no runtime change, no tests to run.Compatibility and security
No YAML, API, runtime or starter change. The documents propose future runtime seams (
extensionroutes, anextensionsblock, plugin-registered policies, a request context bag with a guest binding, a store binding,--host-file, a Cloudflare--extensionbuild option); none is implemented here, and each would arrive as its own issue and pull request. The auth spike preserves the runtime's rules: behaviour in YAML, provider settings and secrets with the operator, application code untrusted, targets refuse what they cannot enforce.Do not merge yet: this is for reading and discussion.
🤖 Generated with Claude Code
https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
Generated by Claude Code