diff --git a/apps/docs/src/app/app.ts b/apps/docs/src/app/app.ts
index b346826..18ff926 100644
--- a/apps/docs/src/app/app.ts
+++ b/apps/docs/src/app/app.ts
@@ -164,6 +164,8 @@ import { DocsSearch } from './search/search';
- Source on GitHub
- Report an issue
+ - FAQ
+ - Releases and upgrading
- Press kit
- llms.txt
diff --git a/apps/docs/src/app/docs/nav.ts b/apps/docs/src/app/docs/nav.ts
index 4608eae..8912741 100644
--- a/apps/docs/src/app/docs/nav.ts
+++ b/apps/docs/src/app/docs/nav.ts
@@ -499,10 +499,28 @@ export const DOCS: DocSection[] = [
{
id: 'about',
title: 'About',
- description: 'The project itself.',
+ description: 'Questions, releases and the logo.',
groups: [
{
pages: [
+ {
+ dir: 'reference',
+ slug: 'faq',
+ title: 'FAQ',
+ headline: 'Streaming SSR for Angular: frequently asked questions',
+ description:
+ 'Short answers on Angular support, SEO, caching, the Angular CLI, failures and readiness, each linking the page with the long one.',
+ load: () => import('../../content/reference/faq.md'),
+ },
+ {
+ dir: 'reference',
+ slug: 'releases',
+ title: 'Releases and upgrading',
+ headline: 'angular-ssr-stream releases, and upgrading Angular and the packages',
+ description:
+ 'How the packages are versioned and tagged, where the release notes are, and how to upgrade Angular and the packages.',
+ load: () => import('../../content/reference/releases.md'),
+ },
{
dir: 'reference',
slug: 'press-kit',
diff --git a/apps/docs/src/content/getting-started/installation.md b/apps/docs/src/content/getting-started/installation.md
index 8bf5edf..5bb241f 100644
--- a/apps/docs/src/content/getting-started/installation.md
+++ b/apps/docs/src/content/getting-started/installation.md
@@ -105,7 +105,8 @@ few lines around it.
| A Service Worker, in the browser (experimental) | none | [Service Worker](../guides/service-worker.md) |
Every package is released together, with one version: install the same
-version of each.
+version of each. [Releases and upgrading](../reference/releases.md) has how
+versions work and how to upgrade.
The packages ship ESM and type declarations, and carry no Angular decorators,
so they need no Angular compilation of their own.
diff --git a/apps/docs/src/content/reference/faq.md b/apps/docs/src/content/reference/faq.md
new file mode 100644
index 0000000..ea98a44
--- /dev/null
+++ b/apps/docs/src/content/reference/faq.md
@@ -0,0 +1,98 @@
+Short answers, each with the page that has the long one.
+
+## Doesn't Angular stream on its own?
+
+No. Angular renders a page on the server and sends it whole, once every
+request it made has answered. It has incremental hydration, which this builds
+on, but nothing that sends a part of the page later. See
+[Does Angular support streaming SSR?](../concepts/angular-streaming-ssr.md).
+
+## How is this different from incremental hydration?
+
+Incremental hydration decides when a part of the page becomes interactive in
+the browser. The part's HTML is still in the page the server sent whole.
+Streaming decides when that HTML arrives: the server sends the rest of the page
+first, and the part when its data is there. This uses the first to do the
+second; see
+[What Angular has instead](../concepts/angular-streaming-ssr.md#what-angular-has-instead).
+
+## Do I need the Angular CLI?
+
+No. With the Angular CLI, `@angular/ssr` stays in charge and its server routes
+stream. Without it, the app builds with Vite and ngp, on any of the other
+runtimes, and gives up `@angular/ssr`'s server routes and status codes. See
+[Requirements](../getting-started/installation.md#requirements).
+
+## Which Angular versions does it support?
+
+19.2, 20.3, 21.2 and 22, each from the patch the
+[compatibility table](../getting-started/installation.md#compatibility) names,
+zoneless and with Zone.js. The ngp setups build Angular `22.3.0-rc.0` only.
+
+## Is it ready for production?
+
+Judge it on what has been checked:
+
+- **No release is out yet**; see [Releases and upgrading](releases.md).
+- **The hosted platforms were checked locally**, with each platform's own
+ tooling or a stand-in for it, not on a real deployment. Each runtime's page
+ says what was checked.
+- **ngp is a prototype**, pinned to an Angular release candidate. The Angular
+ CLI setup doesn't use it.
+- **It uses private Angular APIs**, and supports only the versions CI checks.
+
+[Going to production](../guides/production.md) has what to settle first.
+
+## Does it hurt SEO?
+
+A crawler that runs scripts, as Google's does, sees the whole page once the
+stream ends. One that doesn't sees the shell, with each block's loading state.
+Titles and meta tags have to be set before the shell goes out. See
+[Crawlers and metadata](../guides/production.md#crawlers-and-metadata).
+
+## Can I cache a streamed page?
+
+Not as it stands: streamed responses are sent with `Cache-Control: no-store`.
+Cache the data the page waits for instead, and the browser build as usual. See
+[Caching](../guides/production.md#caching).
+
+## What if my API is slow, or down?
+
+Slow is what this is for: the rest of the page is there at once, and the slow
+part follows. Down is an error state in the block, and the browser tries the
+request again itself. See
+[When a request fails](../guides/making-something-stream.md#when-a-request-fails).
+
+## Does the data have to come through `HttpClient`?
+
+To stream without extra code, yes: the renderer follows `HttpClient`'s
+requests. An `httpResource()` holds the shell back instead, and a plain
+`fetch()` or an SDK needs a few lines to stream. See
+[Data from outside `HttpClient`](../guides/making-something-stream.md#data-from-outside-httpclient).
+
+## Why does my page arrive all at once?
+
+Something kept it from streaming: a block that isn't set up to stream, data
+that doesn't come through `HttpClient`, compression, or a proxy. See
+[The page arrives all at once](../guides/debugging.md#the-page-arrives-all-at-once).
+
+## Can I use `@angular/service-worker`?
+
+With the Angular CLI, yes: it is the CLI's build step, and `@angular/ssr` serves
+the app as usual. The ngp setups have no such build step. An experimental
+worker of this project's own renders the pages in the browser instead; see
+[Service Worker](../guides/service-worker.md).
+
+## Does it work with i18n?
+
+With the Angular CLI, a localized build streams: `withStreaming()` provides
+`LOCALE_ID` and sets `Content-Language` for each locale, as `@angular/ssr`
+does. See the [API reference](angular-ssr.md#withstreaming). The ngp setups
+haven't been checked with a localized build.
+
+## How is this different from Analog's streaming?
+
+Both stream `@defer` blocks with a `hydrate` trigger, and differ in what a
+flush waits for, where a block lands and what crawlers get.
+[Analog's streaming SSR, compared](../guides/analog-streaming-ssr.md) sends one
+page through both.
diff --git a/apps/docs/src/content/reference/releases.md b/apps/docs/src/content/reference/releases.md
new file mode 100644
index 0000000..031bfd1
--- /dev/null
+++ b/apps/docs/src/content/reference/releases.md
@@ -0,0 +1,72 @@
+No release is out yet. Until the first one, the packages are only available as
+source in [the repository](https://github.com/push-based/angular-ssr-stream).
+This page says how releases will work, and how to upgrade.
+
+## One version for every package
+
+Every package under `@push-based/angular-ssr-stream-*` is released together,
+with the same version, even one that didn't change. Install the same version of
+each: an adapter is built against the core of its own release.
+
+The version comes from the commit messages since the last release, which follow
+[Conventional Commits](https://www.conventionalcommits.org/): a `fix:` is a
+patch, a `feat:` a minor version, and a breaking change, marked with `!` or a
+`BREAKING CHANGE:` footer, a major one.
+
+## The `next` dist-tag
+
+The setups that build with ngp pin every `@angular/*` package to an Angular
+release candidate, `22.3.0-rc.0`. Until the packages work with a stable
+Angular there, every release goes to npm's `next` dist-tag, not `latest`, which
+is why every install command in these docs ends in `@next`:
+
+```bash
+npm install @push-based/angular-ssr-stream-core@next
+```
+
+## Release notes
+
+Each release has its notes in two places:
+
+- [GitHub releases](https://github.com/push-based/angular-ssr-stream/releases),
+ for the whole group: every change since the last release, by package.
+- Each package's `CHANGELOG.md`, in its folder under `packages/` in the
+ repository: the changes to that package.
+
+Both are written from the same commit messages.
+
+## Upgrading Angular
+
+The packages use private Angular APIs, which can change in any release, so the
+Angular versions they support are the ones a check proves. Before upgrading
+Angular:
+
+1. **Find the new version in
+ [the compatibility table](../getting-started/installation.md#compatibility).**
+ A minor that isn't there yet hasn't passed the check. A new minor gets a row
+ when it does, and joins the packages' peer ranges in the next release.
+2. **Upgrade the packages first**, if the table names a newer release of them
+ for that Angular.
+3. **Check a page in the browser after the upgrade**, in a dev build, loaded
+ twice; see [Troubleshooting](../guides/debugging.md#verifying-in-a-browser).
+
+The check also runs every week against Angular's `next`, so a change in Angular
+that breaks streaming is usually known before the release that ships it.
+
+On the ngp setups, Angular moves only when ngp does: it compiles against one
+exact release. Upgrade `@push-based/vite-plugin-ngp` and every `@angular/*`
+package together, to the versions ngp asks for.
+
+## Upgrading the packages
+
+1. Read the release notes from your version up to the new one, the breaking
+ changes first.
+2. Install the new version of the core and your adapter at once, for
+ instance on Node:
+
+ ```bash
+ npm install @push-based/angular-ssr-stream-core@next @push-based/angular-ssr-stream-node@next
+ ```
+
+3. Check that a page streams, as your runtime's page shows, and that it
+ hydrates.