docs: add Docus documentation site for @please-auth#5
Merged
Conversation
There was a problem hiding this comment.
2 issues found across 16 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/docs/package.json">
<violation number="1" location="apps/docs/package.json:11">
P2: Avoid using the `latest` tag for dependencies; pin to a specific version range to keep builds reproducible.</violation>
</file>
<file name="apps/docs/content/docs/3.adapters/1.firestore.md">
<violation number="1" location="apps/docs/content/docs/3.adapters/1.firestore.md:127">
P2: The docs incorrectly state that Firestore does not natively support OR across different fields. Update this wording to avoid spreading incorrect platform limitations.</violation>
</file>
Architecture diagram
sequenceDiagram
participant User as Developer / Browser
participant Docus as apps/docs (Nuxt/Docus)
participant Client as @please-auth/waitlist/client
participant Server as Better Auth Server
participant Plugin as @please-auth/waitlist (Plugin)
participant Adapter as @please-auth/firestore (Adapter)
participant DB as Cloud Firestore
Note over User,Docus: NEW: Documentation Access Flow
User->>Docus: GET /docs/getting-started
Docus-->>User: Rendered Markdown Content
Note over User,DB: NEW: Waitlist Gating & Firestore Persistence Flow
User->>Client: waitlist.join({ email })
Client->>Server: POST /waitlist/join
Server->>Plugin: Process Join Request
Plugin->>Adapter: Create Waitlist Entry
Adapter->>Adapter: CHANGED: Map camelCase to snake_case
Adapter->>DB: setDoc(waitlist_entries, { email, status: 'pending' })
DB-->>Server: Success
Server-->>User: 200 OK (lookupToken)
Note over User,DB: Registration with Interception
User->>Server: POST /sign-up/email (with inviteCode)
rect rgb(240, 240, 240)
Note right of Plugin: NEW: Request Hook Interception
Server->>Plugin: onBeforeRequest (interceptPaths)
Plugin->>Adapter: verifyInviteCode(inviteCode)
Adapter->>DB: getDoc(waitlist_entries)
DB-->>Plugin: Entry Found & Approved
Plugin-->>Server: Allow Proceed
end
Server->>Server: Create User Session
rect rgb(240, 240, 240)
Note right of Plugin: NEW: Database Hook (Secondary Gate)
Server->>Plugin: onAfterUserCreation
Plugin->>Adapter: updateStatus(email, 'registered')
Adapter->>Adapter: NEW: Field Mapping (e.g. userId -> user_id)
Adapter->>DB: updateDoc (Transactions supported)
end
Server-->>User: 200 OK (Authenticated)
alt NEW: Invalid or Missing Invite Code
Plugin-->>Server: Throw WAITLIST_ERROR_CODES.NOT_APPROVED
Server-->>User: 403 Forbidden
end
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
Add Docus v4-based documentation site in apps/docs/ for the @please-auth project. Includes landing page, getting started guide, waitlist plugin docs, and Firestore adapter docs.
- Pin docus dependency to ^5.8.1 instead of latest - Fix inaccurate Firestore OR query documentation
- Bump better-sqlite3 to ^12.5.0 (peer dep alignment) - Add missing @better-auth/core peer dep to installation docs - Clarify Firestore db option is TypeScript-optional but runtime-required
The github config already provides GitHub icon in header/footer. socials.github was causing a duplicate icon in the footer.
amondnet
force-pushed
the
docs/docus-site
branch
from
March 24, 2026 05:21
6899074 to
a3f6fb1
Compare
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.
Summary
apps/docs/Test plan
cd apps/docs && bun run devto verify dev server startsSummary by cubic
Adds a Docus-based docs site for
@please-authinapps/docs, with a landing page and docs for@please-auth/waitlist(including client helpers and reactive atoms) and@please-auth/firestore. Installation notes now include@better-auth/core; Firestore docs clarifydbis TypeScript-optional but required at runtime, and the OR query docs are corrected.New Features
apps/docs(Nuxt +docus) with landing page, sidebar nav, on-page TOC, SEO, and GitHub links.@better-auth/coreas a peer dependency.@please-auth/waitlistdocs: server options, client helpers + reactive atoms, endpoints, error codes, schema.@please-auth/firestoredocs: configuration, field mapping, transactions, corrected OR query behavior, and clarifieddbrequirement.githubconfig for header/footer icon.Dependencies
docusto^5.8.1; addnuxt; bumpbetter-sqlite3to^12.5.0inapps/docs; updatebun.lock.Written for commit a3f6fb1. Summary will update on new commits.