Skip to content

[Docs Mintlify] - Updates and new additions#1401

Open
madster456 wants to merge 6 commits into
devfrom
docs-mintlify/updates
Open

[Docs Mintlify] - Updates and new additions#1401
madster456 wants to merge 6 commits into
devfrom
docs-mintlify/updates

Conversation

@madster456
Copy link
Copy Markdown
Collaborator

@madster456 madster456 commented Apr 30, 2026

Summary

Refreshes the docs around Stack Auth setup, CLI workflows, local development, the local emulator, known SDK errors, self-hosting, and the public showcase. This also wires the new docs into Mintlify navigation and normalizes sharp dependency resolution for docs/image tooling.

Base: dev -> Head: docs-mintlify/updates
Scope: 17 files, +1154 / -435

What's New

  • Adds a dedicated Stack CLI guide covering install, auth, init modes, project commands, config pull/push, stack exec, and emulator commands.
  • Adds a full Local Emulator guide for QEMU requirements, ports, default credentials, config-file backed projects, image pulls, state, and troubleshooting.
  • Reworks Local Development around two supported workflows: cloud-backed local dev and emulator-backed local dev, including app env vars, local config files, CI usage, and common failure modes.
  • Rewrites Self-host around the supported stackauth/server Docker deployment path, including Postgres, ClickHouse, cron scheduling, seeded admin access, reverse proxy setup, SDK env vars, email, webhooks, S3 storage, upgrades, and common issues.
  • Adds a Known Errors reference for public SDK-exposed known errors, runtime errorCode values, and REST API handling.
  • Clarifies CLI App Authentication so users can distinguish authenticating their own CLI app from using the official stack command.
  • Updates the JWT guide to remove the missing inline viewer reference and recommend an external JWT viewer.
  • Adds showcase cards for Browser Use and Overworld with supporting images and styles.
  • Pins sharp to 0.34.5 through pnpm overrides and lockfile cleanup.

Review Notes

  • The self-host guide was audited against the current Docker entrypoint, server env templates, seed script, ClickHouse migration behavior, cron endpoints, and SDK API URL env resolution.
  • The Docker image starts the backend and dashboard, but not production schedulers, so the new cron section is called out explicitly.
  • Managed Domain email setup is documented as operator-managed because it depends on server-side Resend/DNSimple credentials; self-hosters are directed toward Custom SMTP or their own Resend API key.
  • self-host-old.mdx is kept as a legacy reference file and is not added to navigation.
  • emulator run documentation now matches CLI behavior: it stops the emulator only when it started that emulator instance.

Test Plan

  • Reviewed all files changed by origin/dev...HEAD.
  • Ran git diff --check origin/dev...HEAD.
  • Checked IDE diagnostics for the changed docs/CLI files.
  • Preview Mintlify docs locally and click through new navigation entries.
  • Verify showcase cards and images in light and dark themes.
  • Smoke-test the copied self-host commands in a non-production Docker environment.

Summary by CodeRabbit

  • Documentation

    • Added comprehensive Stack CLI, Local Emulator, Known Errors, and Local Development guides
    • Restructured Self-Hosting guide for production deployments and expanded authentication docs
    • Updated site navigation to include new guide pages
  • New Features

    • Added visual showcase section with responsive cards and hover/zoom interactions (and supporting styles)

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
stack-auth-hosted-components Ready Ready Preview, Comment May 13, 2026 1:12pm
stack-auth-mcp Ready Ready Preview, Comment May 13, 2026 1:12pm
stack-backend Ready Ready Preview, Comment May 13, 2026 1:12pm
stack-dashboard Ready Ready Preview, Comment May 13, 2026 1:12pm
stack-demo Ready Ready Preview, Comment May 13, 2026 1:12pm
stack-docs Ready Ready Preview, Comment May 13, 2026 1:12pm
stack-preview-backend Ready Ready Preview, Comment May 13, 2026 1:12pm
stack-preview-dashboard Ready Ready Preview, Comment May 13, 2026 1:12pm

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 30, 2026

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 64ef46b3-7e18-4409-bd66-d0a4cd752bff

📥 Commits

Reviewing files that changed from the base of the PR and between 6a092e9 and 7f2e964.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (1)
  • package.json

📝 Walkthrough

Walkthrough

Adds several new and expanded documentation pages (CLI, local emulator, known-errors), restructures the self-hosting guide for production Docker deployment, expands local-development and authentication docs, updates site navigation and showcase styling, and includes minor package and import edits. No runtime code or public APIs changed.

Changes

Docs, navigation, styling, and small infra edits

Layer / File(s) Summary
Navigation update
docs-mintlify/docs.json
Registers three new routes: guides/going-further/cli, guides/going-further/local-emulator, and guides/other/known-errors.
Stack CLI guide
docs-mintlify/guides/going-further/cli.mdx
Adds a new CLI reference covering install, flags, auth flows (login/logout), stack init modes/flags, project commands, config pull/push behavior, stack exec semantics, and emulator subcommands.
Local Emulator guide
docs-mintlify/guides/going-further/local-emulator.mdx
New emulator doc: requirements (QEMU, tools), start/status/stop/reset flows, default ports/URLs, env overrides, --config-file mapping and credentials injection, image pull options, storage location, and troubleshooting notes.
Local development expansion
docs-mintlify/guides/going-further/local-development.mdx
Replaces placeholder with detailed cloud-backed and fully-local development instructions, framework env var mappings, testing tips (Inbucket, mock OAuth), common issues, and CI guidance.
Known errors reference
docs-mintlify/guides/other/known-errors.mdx
New reference mapping SDK Result error types to runtime errorCode/REST code/X-Stack-Known-Error header, with TS/REST examples and enumerated KnownErrors and producers.
Self-hosting → production deploy
docs-mintlify/guides/other/self-host.mdx
Restructures into a production-focused Docker deployment doc (Postgres/ClickHouse, env file, run/migrate/seed steps, cron, reverse proxy/HTTPS rules), plus service config (email, webhooks, S3, AI), ops (upgrades, health checks), and troubleshooting.
Auth & JWT docs changes
docs-mintlify/guides/apps/authentication/cli-authentication.mdx, docs-mintlify/guides/apps/authentication/jwts.mdx
CLI auth page reframed for CLI apps and links to official Stack CLI; JWT page removes internal viewer and directs readers to external JWT viewer (jwt.io) while retaining checklist.
Showcase UI + CSS
docs-mintlify/guides/other/showcase.mdx, docs-mintlify/style.css
Showcase page populated with responsive two-card grid and thumbnail cards; CSS adds .showcase-card classes for 16:9 layout, hover shadow/translate, and image zoom.
Package overrides
package.json
Adds sharp override (^0.34.5) and minor punctuation fix in pnpm.overrides.
Minor CLI import reorder
packages/stack-cli/src/commands/emulator.ts
Reorders commander import placement; no behavioral changes.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Suggested reviewers

  • N2D4
  • BilalG1
  • nams1570

"i am a rabbit in the docs' bright glade,
i hop through CLI commands and emulator trade,
pages sprout like carrots, neat and clear,
stack auth grows kinder, far and near,
nibble the guides — the path is made." 🥕📚

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title '[Docs Mintlify] - Updates and new additions' is vague and generic, using non-descriptive terms like 'updates and additions' that don't convey the specific nature of the changes. Revise the title to be more specific about the primary changes, such as 'Add Stack CLI and Local Emulator guides with documentation updates' to better reflect the main contributions.
✅ Passed checks (4 passed)
Check name Status Explanation
Description check ✅ Passed The PR description is comprehensive, well-structured with clear sections (Summary, What's New, Review Notes, Test Plan), and provides substantial detail about all major changes and their rationale.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs-mintlify/updates

Warning

Review ran into problems

🔥 Problems

Git: Failed to clone repository. Please run the @coderabbitai full review command to re-trigger a full review. If the issue persists, set path_filters to include or exclude specific files.

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Apr 30, 2026

Greptile Summary

This PR adds several new documentation pages to the Mintlify docs site — a Stack CLI reference, a local emulator guide, a known-errors reference, and a fully rewritten self-host guide — while expanding the previously stub-only local-development page and populating the showcase page. Non-doc changes are minimal: a trivial import-order swap in emulator.ts, a sharp version override in package.json, and the resulting pnpm-lock.yaml update.

  • self-host-old.mdx is added but never referenced in docs.json, making it an orphaned page that could appear in search results with content that contradicts the new guides. It should either be deleted or explicitly excluded from the build.

Confidence Score: 4/5

Safe to merge; the only real concern is an orphaned archive file unreachable from nav that could surface in search.

All findings are P2. The orphaned self-host-old.mdx carries no runtime risk. Code changes are trivial.

docs-mintlify/guides/other/self-host-old.mdx — confirm whether this should be deleted or intentionally kept out of navigation

Important Files Changed

Filename Overview
docs-mintlify/guides/other/self-host-old.mdx New file preserving old self-host guide content; not referenced in docs.json navigation, making it an orphaned page that could surface conflicting documentation
docs-mintlify/guides/other/self-host.mdx Substantially revamped self-host guide with ClickHouse, migration steps, cron job instructions, and updated Docker setup
docs-mintlify/guides/going-further/cli.mdx New comprehensive CLI reference guide covering install, auth, init, project, config, exec, and emulator commands
docs-mintlify/guides/going-further/local-emulator.mdx New guide covering local QEMU emulator setup, ports, config files, storage, and troubleshooting
docs-mintlify/guides/going-further/local-development.mdx Previously a stub; now a full guide covering cloud-backed and emulator-backed local dev workflows, CI guidance, and common troubleshooting
docs-mintlify/guides/other/known-errors.mdx New reference page listing public SDK KnownErrors with runtime error codes, handling examples, and parent error type notes
packages/stack-cli/src/commands/emulator.ts Trivial import order swap (child_process before commander); no functional change
package.json Adds sharp@0.34.5 as a pnpm override, likely to resolve image-processing dependency conflicts introduced by the showcase images
docs-mintlify/guides/apps/authentication/jwts.mdx Removed the embedded JWT viewer and replaced its reference with a link to jwt.io; leaves a stray double blank line
docs-mintlify/guides/other/showcase.mdx Replaces placeholder text with a styled grid showcasing Browser Use and Overworld; corresponding CSS and images added

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    GF["Going Further"]
    GF --> CLI["cli.mdx\n(Stack CLI reference)"]
    GF --> LE["local-emulator.mdx\n(QEMU emulator guide)"]
    GF --> LD["local-development.mdx\n(cloud-backed & emulator workflows)"]

    CLI -->|links to| LE
    LD -->|links to| LE
    LD -->|links to| CLI

    Other["Other"]
    Other --> SH["self-host.mdx\n(revamped Docker deploy)"]
    Other --> KE["known-errors.mdx\n(new SDK error reference)"]
    Other --> OLD["self-host-old.mdx\n(orphaned archive ⚠️)"]
    SH -.->|content moved from| OLD
Loading
Prompt To Fix All With AI
Fix the following 2 code review issues. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 2
docs-mintlify/guides/other/self-host-old.mdx:1-5
**Orphaned archive file not linked in navigation**

`self-host-old.mdx` is not referenced in `docs.json`, so it is unreachable from the docs nav. It contains the old local-development setup section that now contradicts the new guides (it still tells contributors to clone the repo and run `pnpm run dev` as a local dev workflow). If this is intentional archival, consider removing it entirely; otherwise search engines may surface it as conflicting documentation.

### Issue 2 of 2
docs-mintlify/guides/apps/authentication/jwts.mdx:17-20
**Leftover blank line after JWT viewer removal**

Removing the "JWT Viewer" section left two consecutive blank lines between the `header.payload.signature` paragraph and the `## Stack Auth JWT Structure` heading. Consider removing the extra blank line for cleaner rendering.

Reviews (1): Last reviewed commit: "Updates to jwts, setup. Added cli, local..." | Re-trigger Greptile

Comment thread docs-mintlify/guides/other/self-host-old.mdx Outdated
Comment thread docs-mintlify/guides/apps/authentication/jwts.mdx
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs-mintlify/guides/apps/authentication/jwts.mdx`:
- Line 264: Insert a clear security warning immediately before the sentence "Use
a JWT viewer such as [jwt.io](https://jwt.io/) to inspect tokens and verify
their contents." advising readers to never paste live production tokens into
external sites and to use only redacted/test tokens; also add a local-decoding
alternative suggestion (e.g., jwt-cli, built-in language libraries, or browser
devtools) and a short example phrase like "prefer local decoding or redaction"
to steer users away from exposing secrets.

In `@docs-mintlify/guides/going-further/local-development.mdx`:
- Line 96: Replace the phrase "config-file backed development" with the
hyphenated compound modifier "config-file-backed development" in the sentence
that currently reads "If you use config-file backed development,
`stack.config.ts` becomes the local source of truth for Stack Auth settings." to
improve readability.

In `@docs-mintlify/guides/other/self-host-old.mdx`:
- Line 39: Fix the grammar in the sentence that reads "Use a cloud hosted
Postgres or start a example Postgres database. Don't use this setting in
production:" by changing "a example" to "an example" so it reads "Use a cloud
hosted Postgres or start an example Postgres database. Don't use this setting in
production:"; update the string exactly where it appears in
docs-mintlify/guides/other/self-host-old.mdx.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9f5a9351-848c-4a94-b072-f7f20a1ad34c

📥 Commits

Reviewing files that changed from the base of the PR and between e831972 and 3b473a2.

⛔ Files ignored due to path filters (3)
  • docs-mintlify/images/showcase/browser-use.png is excluded by !**/*.png
  • docs-mintlify/images/showcase/over.world.png is excluded by !**/*.png
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (14)
  • docs-mintlify/docs.json
  • docs-mintlify/guides/apps/authentication/cli-authentication.mdx
  • docs-mintlify/guides/apps/authentication/jwts.mdx
  • docs-mintlify/guides/getting-started/setup.mdx
  • docs-mintlify/guides/going-further/cli.mdx
  • docs-mintlify/guides/going-further/local-development.mdx
  • docs-mintlify/guides/going-further/local-emulator.mdx
  • docs-mintlify/guides/other/known-errors.mdx
  • docs-mintlify/guides/other/self-host-old.mdx
  • docs-mintlify/guides/other/self-host.mdx
  • docs-mintlify/guides/other/showcase.mdx
  • docs-mintlify/style.css
  • package.json
  • packages/stack-cli/src/commands/emulator.ts
💤 Files with no reviewable changes (1)
  • docs-mintlify/guides/getting-started/setup.mdx

Comment thread docs-mintlify/guides/apps/authentication/jwts.mdx
Comment thread docs-mintlify/guides/going-further/local-development.mdx
Comment thread docs-mintlify/guides/other/self-host-old.mdx Outdated
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs-mintlify/guides/going-further/local-emulator.mdx`:
- Line 7: The intro sentence uses an un-hyphenated compound modifier
"config-file backed projects"; update the sentence in the local emulator intro
(the line starting "The Stack Auth local emulator runs the Stack Auth
dashboard...") to use the hyphenated compound adjective "config-file-backed
projects" so it reads "...config-file-backed projects, or an isolated Stack Auth
environment for testing."
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 36e382e2-9116-4e85-9079-a723d12ea558

📥 Commits

Reviewing files that changed from the base of the PR and between 3b473a2 and 99c8a4c.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (2)
  • docs-mintlify/guides/going-further/local-emulator.mdx
  • package.json
✅ Files skipped from review due to trivial changes (1)
  • package.json

Comment thread docs-mintlify/guides/going-further/local-emulator.mdx Outdated
@madster456
Copy link
Copy Markdown
Collaborator Author

Added a root pnpm.overrides.sharp entry so all transitive sharp consumers resolve to the same safe stable line (^0.34.5).

Without the override, Mintlify pulls an older sharp/libvips path while the repo also has a newer one, so running docs-mintlify can load two native libvips builds in the same process:

Class GNotificationCenterDelegate is implemented in both
@img/sharp-libvips-darwin-arm64@1.0.4/.../libvips-cpp.42.dylib
and
@img/sharp-libvips-darwin-arm64@1.2.4/.../libvips-cpp.8.17.3.dylib

This may cause spurious casting failures and mysterious crashes.
One of the duplicates must be removed or renamed.

Comment thread docs-mintlify/guides/other/self-host.mdx
Comment thread docs-mintlify/guides/going-further/local-emulator.mdx Outdated
Comment thread docs-mintlify/guides/other/self-host-old.mdx Outdated
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs-mintlify/guides/going-further/local-emulator.mdx`:
- Line 186: The exported token line uses angle brackets which the shell treats
as input redirection; update the export of GITHUB_TOKEN to use a literal,
shell-safe placeholder (e.g., a quoted placeholder string) instead of `<token>`
so the shell won't interpret it as a redirection when running the line with the
GITHUB_TOKEN variable.

In `@docs-mintlify/guides/other/self-host.mdx`:
- Line 71: Replace the future ClickHouse image tag string
"clickhouse/clickhouse-server:25.10" with a currently published tag (for example
"clickhouse/clickhouse-server:25.8" or "clickhouse/clickhouse-server:latest") in
the docs-mintlify/guides/other/self-host.mdx content so the smoke-test Docker
pull succeeds; update the single line containing the exact token
clickhouse/clickhouse-server:25.10 to the chosen published tag.
- Around line 162-173: Add a short clarifying note near the scheduler curl
examples explaining that the `/api/latest/internal/...` endpoints (e.g.,
`/api/latest/internal/email-queue-step`,
`/api/latest/internal/external-db-sync/sequencer`,
`/api/latest/internal/external-db-sync/poller`) are internal operational
endpoints intended for cron/devops use and may change with deploys, whereas
`/api/v1/internal/...` (e.g., `/api/v1/internal/backend-urls`) is a versioned
API namespace used for stable public/internal API contracts; update the text to
state they are not interchangeable and to use `/api/latest/internal/` for
scheduled operational tasks and `/api/v1/` for versioned API calls.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 8e73e411-ed49-4067-8cb8-aec80a9a16f7

📥 Commits

Reviewing files that changed from the base of the PR and between 99c8a4c and 822d767.

📒 Files selected for processing (2)
  • docs-mintlify/guides/going-further/local-emulator.mdx
  • docs-mintlify/guides/other/self-host.mdx

Comment thread docs-mintlify/guides/going-further/local-emulator.mdx
Comment thread docs-mintlify/guides/other/self-host.mdx
Comment thread docs-mintlify/guides/other/self-host.mdx
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