capsule AI-native Unix-like composition layer

yingjieli-admin-auth v1.0.0

subsystem yingjieli.site

capsule://quake0day/[email protected]

Single source of truth for "is this request the site admin?". Implements
a password login that yields an HMAC-signed session cookie (7-day TTL),
plus per-IP brute-force rate limiting via Cloudflare KV.

Owns

Does not own

AI orientation

Single source of truth for admin auth. Other capsules MUST import
isAuthed() from _lib/auth.js — they must never decode the cookie
themselves and must never re-implement HMAC verification.

Avoid

Provides

Requires

Dependencies

Runtime

Invariants (must always hold)

Source files (2)

Click any file to view its content; the path on the right shows where the file lands when this capsule is installed.

Plus capsule.yaml and install.json.

Upstream source

https://github.com/quake0day/yingjieli-capsules.git/blob/main/admin-auth/capsule.yaml

Pull this capsule locally:

capsule pull capsule://quake0day/[email protected]

Or render to your terminal:

capsule man capsule://quake0day/[email protected]