Skip to content

Spikes: auth, admin and UI kit extensions, and the extension model review - #54

Merged
jimhoyd merged 19 commits into
mainfrom
claude/happy-lamport-f6e6ba
Sep 17, 2026
Merged

jimhoyd merged 19 commits into
mainfrom
claude/happy-lamport-f6e6ba

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

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 included auth.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 and policies.auth on 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 of auth.
  • 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, no mount or protect, kit owns extensions.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.md indexes the four documents.

Verification

  • npm run check passes (syntax and JSON checks, Worker closure free of Node imports); npm run lint passes. Documentation only, no runtime change, no tests to run.
  • Not verified: the product claims about third-party projects reflect their publicly documented behaviour as known to the author, not a fresh audit of each.

Compatibility and security

No YAML, API, runtime or starter change. The documents propose future runtime seams (extension routes, an extensions block, plugin-registered policies, a request context bag with a guest binding, a store binding, --host-file, a Cloudflare --extension build 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.

  • Changes match the documented portable contract; docs/examples are updated where needed.
  • Relevant tests and package checks pass, or limitations are explained above.
  • No credentials, customer data or private project material are included.
  • Runtime/starter changes remain aligned where applicable.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E


Generated by Claude Code

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
…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
@jimhoyd
jimhoyd merged commit 15caae6 into main Sep 17, 2026
12 checks passed
@jimhoyd
jimhoyd deleted the claude/happy-lamport-f6e6ba branch September 17, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants