<!-- @requirements REQ-PRODUCT-PACK-CAPABILITIES -->
# Choose a job for your site

A pack keeps one job together: what it adds, the facts it needs, and the steps to connect and check it. [Open your pack library](/start).

Start with **Legal pages**, **Cookie choices** or **Terms agreement**. You can combine them or add another job later. Each works from the same site inventory.

## All twenty-one packs

The library shows every pack, grouped by the job it does. Use the links at the top to jump between groups.

Each description names the problem the pack addresses. **Try the example** opens a use case with a short walkthrough and an explanation of the result. The Ireland and Italy examples describe their two different clocks separately. Some example state survives a revisit; the walkthrough tells you when to reset it before comparing behaviour.

### Start here

- [Legal pages](/start/#pack-privacy-pages) — Publish privacy, cookie and terms pages that explain your data practices and conditions of use.
- [Cookie choices](/start/#pack-cookie-choices) — Ask before loading optional analytics or other tools, and let visitors change their choice.
- [Terms agreement](/start/#pack-terms-agreement) — Ask users to accept a particular terms version and keep the matching agreement record.

### Privacy information

- [Form notices](/start/#pack-collection-notices) — Put a short privacy explanation beside a form, where people decide what information to give.
- [Information from other sources](/start/#pack-indirect-collection) — Explain information received from a partner or another source. Current profile: New Zealand IPP3A.
- [Privacy request page](/start/#pack-privacy-requests) — Give people a place to find access, correction, deletion and other privacy request routes.
- [Profiling & location notices](/start/#pack-technology-notices) — Explain identification, location or profiling features before activation. Québec-focused profile.

### Add a function

- [Form permissions](/start/#pack-form-permissions) — Record a separate opt-in, explicit refusal or withdrawal for a specific purpose and contact channel.
- [Marketing requests · South Africa](/start/#pack-za-marketing-requests) — Ask for future email, SMS or WhatsApp marketing permission, with declared products and an explicit refusal.
- [Gated media](/start/#pack-gated-media) — Hold an embedded frame or image until the visitor allows contact with its provider.
- [Evidence workspace](/start/#pack-evidence-workspace) — Keep policy versions and reported choices together for later review, search and export.
- [Processing opt-outs](/start/#pack-processing-opt-outs) — Offer sale, sharing or targeted-advertising opt-outs separately from cookie consent.
- [Storage exceptions](/start/#pack-assessed-storage-settings) — Provide an off switch for qualifying UK statistical or appearance storage, separately from cookie consent.
- [Google Basic Consent Mode](/start/#pack-google-basic) — Connect Google Analytics or Ads to cookie choices using Basic Consent Mode.

### Purchases and contracts

- [Contract withdrawal](/start/#pack-contract-withdrawal) — Give customers an online way to declare withdrawal from an eligible purchase and keep a copy.
- [German contract cancellation](/start/#pack-subscription-cancellation) — Provide the supported German cancellation form for eligible continuing contracts, such as subscriptions.
- [Paid order review](/start/#pack-paid-order-review) — Show products, total charges and ongoing commitments before a customer places a paid order.
- [Contract confirmation copies](/start/#pack-customer-confirmations) — Keep the customer’s full contract copy and track its handoff to your delivery service.
- [Guarantee notices & labels](/start/#pack-guarantee-information) — Display the EU shop guarantee notice and qualifying producer durability labels on products.

### Regional rules

- [Consent expiry · Ireland](/start/#pack-ie-consent-duration) — Add the Irish six-calendar-month default expiry for saved consent, after applicability review.
- [Repeat prompts · Italy](/start/#pack-it-repeat-prompts) — Avoid asking again too soon after refusal or dismissal, using the supported Italian rule.

Regional packs cover the named timing rules. Review applicability before enabling them.


The regional packs cover those named mechanisms; they are not complete country coverage.

The [privacy-pack guide](</guide/privacy-packs/index.md>) explains the four added paths and their draft input reviews. The [consumer-pack guide](</guide/consumer-packs/index.md>) covers the five transaction jobs and their host dependencies. See the [pack roadmap](</guide/pack-roadmap/index.md>) for pack admission and remaining feature work.

The [specialist-pack guide](</guide/specialist-packs/index.md>) covers technology notices, assessed storage settings and Google Basic, including their different prerequisites and limits.

## Prepare it your way

The website offers two paths. Choose **Set up my site** for a local questionnaire, or **Give to my agent** to open the instructions in a drawer. Read and copy them into your coding agent; Close, Escape or a tap outside dismisses the drawer. Neither requires an account or uploads your answers. Save the draft and private report before leaving the tab.

The questionnaire shows the practice questions relevant to your selected jobs and their supporting foundations. Unknowns remain unknown. Complete configuration diagnostics and wider review items remain available when you prepare the draft.

With an explicitly installed local preview, the same packs are available in the terminal:

```sh
npx --no-install notabenda packs
npx --no-install notabenda packs cookie-choices --json
npx --no-install notabenda wizard --packs privacy-pages,cookie-choices
```

For an agent or noninteractive run, read the plan's `reference.targetAnswersTemplate`, supply actual answers, then use `--answers ./answers.json`. Add `--config ./notabenda.config.json` for an existing inventory. The wizard creates a new output directory and does not overwrite your site.

```sh
npx --no-install notabenda wizard --packs cookie-choices \
  --answers ./answers.json --config ./notabenda.config.json \
  --out-dir ./notabenda-setup
```

Save `setup.private.json` outside public assets. To resume, pass it as `--answers` alongside its matching draft config. Its selected pack revisions are retained. An explicit conflicting selection fails rather than silently changing the saved plan.

## Find features and tools

Open **Included in this pack** on a library card or example. **Feature** describes a supplied mechanism, **Setup tool** helps prepare or inspect it, and **Review guide** explains source-backed questions that still need assessment. These labels do not rate readiness or imply complete jurisdiction coverage. The CLI's plain and JSON listings expose the same capability records, including their limits and guide links.

For example, Cookie choices includes the Singapore review guide. Form permissions includes explicit refusal and its connection inspector. The **Marketing requests · South Africa** pack has a separate setup path for the supported web request, sharing the permission controller and ledger. It covers future email, SMS or WhatsApp marketing; it does not authorize an approach, send messages or enforce provider suppression. [Read its inputs and boundaries](</guide/south-africa-marketing/index.md>).

```sh
npx --no-install notabenda packs za-marketing-requests --json
npx --no-install notabenda packs cookie-choices form-permissions --brief
```

## What comes with a pack

Each pack explains its outcome and one key distinction, links to a working example, and resolves the existing integration guides, config fields, questions and checks. When cookie choices need privacy information, the plan asks you to inspect or reuse that foundation. It does not assume another feature must be installed from scratch.

The reusable model is available from `@notabenda/core/packs`: `packLibrary`, `selectPacks`, `planPacks`, `createPackSetupPlan`, `readPackSelection` and `formatPackBrief`. `mountSetup` accepts a `cartridges` selection for focused setup. Its `getDraft()` preserves pending answers separately from a prepared plan; `setCartridges(selection)` changes the focused work without replacing the editing session.

## Assess regional rules

Regional packs identify a specific mechanism. **Consent expiry · Ireland** proposes the supported grant cap for assessment. **Repeat prompts · Italy** proposes the supported solicitation guard. They serve different clocks, even when used together. Their installed plan names exact policy paths and fields; selection does not enable them.

Review applicability and wording before applying a policy. These are preview mechanisms, not complete country packs or legal certification. [Coverage and requirements](</guide/requirements/index.md>) remain connected to each pack.

## Connect and check

Prepared pack drafts begin with **Before connecting**. Configuration findings, selected practices still marked **Not sure**, and scope-review topics appear before preview and downloads. They are separate views of the draft, not a completion score. A zero count does not establish reviewed content, correct facts or a verified installation.

**Review configuration** reveals the findings and moves focus to their heading. **Review selected facts** returns to the first unanswered practice without changing saved answers or the prepared plan. Each scope topic has a foldout with its explanation, requirement links and guide. **All review notes** reveals the full list, including conflicts and missing justifications that the summary counts may not capture. Editing invalidates the summary and exports; preparing again uses the updated draft. You can still save the files and work with an agent while findings remain.

After preparing the draft, **Connect to your site** shows the selected pack's integration tasks and a direct guide link. Expand **Checks to run in your application** for its acceptance scenarios. **Existing foundations to check** keeps shared work separate: reuse an existing privacy-page or consent integration when it already does the job. Regional proposals show only the selected policy path, profile and required fields; they remain disabled until the host applies an appropriate reviewed change.

**Review selected facts** returns to the questionnaire without losing the prepared draft. Editing an answer or changing packs invalidates the old guide and downloads, so the next draft reflects the new scope. Selection actions stay in reach while browsing the entire pack library.

The browser provides **Give to my agent** again after preparing a draft. Its drawer contains the connection instructions and a **Copy instructions** button. If clipboard access is unavailable, **Select text** lets you copy manually. Download `notabenda.config.json` and `setup.private.json` separately and share them alongside the instructions. A scoped terminal wizard continues to write both files and `notabenda-setup-brief.txt` into its new output directory. Keep the files in a private working directory when handing work to an agent. The connection brief names those files, includes the installed target tasks and checks, supplies a preview-validation command and explains how to resume into a new directory. Operator answers and justifications remain in the private report; they are not copied into the brief.

`formatPackBrief(selection)` prepares the initial planning brief. `formatPackBrief(selection, 'connect')` prepares the post-draft handoff used by the UI and scoped wizard. Both reference the installed integration contract. These instructions do not run tests or mark a pack installed or verified. The host still connects the actual components, loaders or recording transport and verifies the result in its application. Publication and deployment verification remain separate steps.

The pack approach is being carried through the rest of the product. Advanced configuration remains available in the guides; existing APIs continue to work.

## Try your cookie controls

Prepared Cookie choices drafts offer **Try cookie controls** beside the settings editor. Test rejection, granular choices, withdrawal and a return visit using your draft’s wording and simulated services. Choices stay in temporary memory. Required receipts, real providers and account processing remain separate application checks. See the [cookie rehearsal](</guide/cookie-rehearsal/index.md>).

## Put the library in your own application

The website and new Cloudflare starter use the same component exported by `@notabenda/core/packs/ui`. Include `@notabenda/core/styles.css` for the questionnaire and `@notabenda/core/packs.css` for the library. Both are separate from the smaller visitor consent stylesheet.

```js
import {mountPackConsole} from '@notabenda/core/packs/ui';
import '@notabenda/core/styles.css';
import '@notabenda/core/packs.css';

const console = mountPackConsole(document.querySelector('#setup'), {
  documentationBase: '/help/notabenda',
  exampleLinks: {'cookie-choices': '/try-cookies'},
  guideUrl: '/help/notabenda/cartridges',
  mapUrl: '/help/notabenda/compliance-map',
});

// On navigation away:
console.destroy();
```

Destinations are optional. The component does not assume that your application serves Notabenda's website routes. Example/map/guide links must be local paths without query strings; the questionnaire's existing `documentationBase` contract also permits an explicit HTTPS documentation origin. Supply `loadCatalog` only if you want catalog-assisted inventory editing.

For server rendering, insert the result of `renderPackConsole(options)` and mount its `[data-cartridge-console]` element with the same options. The server renderer adds no script, stylesheet, account or storage. A fresh empty mount also works. Use native checkboxes, tab navigation and the ordinary setup button; no drag or gesture is required.

Pass `cartridges: selectPacks([...])` to preselect work. Pass a private report as `answers`, with its matching `config`, to resume. Conflicting explicit/report selections fail before replacing host content. Going back and adding a pack preserves the current editing session. `getDraft()` returns the setup draft after setup has opened; it is undefined while only choosing packs. The initial handoff needs no browser download API. Changing the selection or editing a prepared draft dismisses stale instructions. Call `destroy()` when unmounting to release dialogs, download URLs and listeners.

The Cloudflare `createSetupWorker` accepts an optional `cartridgeStylesheetUrl` alongside the existing host module and questionnaire stylesheet. Use it with a module that mounts this console. The generated starter builds these assets, requires the host's configuration permission for all of them and checks their presence in `notabenda-cf doctor`. Existing hosts can continue mounting `mountSetup` directly.

## Read the draft before connecting it

After preparing a pack draft, choose **Preview configuration**. It opens the privacy, cookie and terms pages in a local reader, using the same document renderer and default legal styles. Switch documents or expand the contents list to jump to a section, then close the reader to return to the draft. Nothing is published, stored or marked reviewed by opening it.

The reader shows the configuration supplied to it, including placeholders and existing review declarations. It does not verify that those declarations match actual practices. Outside links have no navigable destination inside this preview. It loads neither separate MD/MDX project files nor a running website. Use the [compiled-release preview](</guide/authored-preview/index.md>) to review authored files and custom components from the project's build; this reader covers config-generated pages and supplied structured sections.

The viewer is also available independently. Include `@notabenda/core/styles.css` and `@notabenda/core/packs.css` and mount it on your own page:

```js
import {mountLegalPreview} from '@notabenda/core/setup/preview';

const preview = mountLegalPreview(document.querySelector('#preview'), {
  config: draftConfig,
  initialDocument: 'cookies',
});

// From a deliberate user action:
preview.open();
// On unmount:
preview.destroy();
```

It uses a native dialog with a close button and Escape support. Closing returns focus to the opener. Document IDs are namespaced so the reader can coexist with a legal page on your site. Input is validated in preview mode and projected to a fixed public snapshot before creating DOM; operator-only config notes do not appear. Missing supplied sections fail the existing configuration validation; the reader does not invent clauses.

The website and new Cloudflare starter serve the reader module only when it is requested. The starter protects that module with the same configuration permission as the rest of setup, and its doctor checks the built asset. Other bundlers may inline or split the package's dynamic import according to their own build settings.

## Compatibility

`notabenda cartridges`, `wizard --cartridges`, the `@notabenda/core/cartridges` imports and their existing function names remain supported. Saved reports keep their `cartridges` field and pinned revisions; changing the display name does not require migrating a draft. New examples use `packs` commands and import paths.

<!-- @requirements REQ-PRODUCT-CARTRIDGES -->
The pack artwork uses a flat, downward-facing keyed card edge with separate muted contact banks and an open notch. It remains decorative and hidden from assistive technology; selection continues to use the labeled native checkbox and visible selected state. Reduced-motion and forced-color preferences retain usable selection controls. Visual changes are reviewed in local desktop/mobile previews before publication.

For cookie packs, [inspect the actual connection](</guide/connection-inspection/index.md>) after registering the real lifecycles. A matching inventory and registration count remain separate from published files and tested application behavior.

<!-- @requirements REQ-PRODUCT-AGENT-HANDOFF -->
The reusable `mountAgentHandoff` component is available from `@notabenda/core/agent-handoff`, with optional `@notabenda/core/agent-handoff.css`. The default setup and pack styles already include it. Pass a fixed `text`, optional `title`/`description` and `onClose`; use the returned `open()`, `close()` and `destroy()`. It renders text without interpreting HTML and writes the clipboard only after a deliberate Copy press. It sends no message to an agent or external service. Native modal focus handling, focus return, reduced-motion and forced-color styles are included.

<!-- @requirements REQ-PRODUCT-SETUP-SESSION -->

The website’s pack picker remembers work in the same tab for 24 hours after the last change. Reloading restores the selected packs and setup draft. Use **Forget saved draft** to remove that copy. Library consumers opt into persistence with the console’s `session` option; see [browser draft recovery](</guide/setup/index.md#recover-a-browser-setup-draft>).
