Understand privacy.
Build it into your application.

Try the demo ↗GitHub ↗

BUILT IN THE OPEN. FOR EVERYONE.

Understand the system behind the screen

Privacy has to work
at every layer.

A banner asks a question. Your application still has to act on the answer.

Think of an online shop: someone clicks an ad, browses products, enters an email for a discount, and buys a jacket. They see one store. Behind it are scripts, APIs, databases, and other companies receiving information.

The customer promise: “I can explain what happens to your information and show how your choices change what our systems do.”

Watch the decision change the route

A stored email is not permission to send an offer.

Switch marketing on and off. A record can still be needed for another permitted purpose, such as an order. The marketing choice controls whether this example sends the email to the marketing provider.

Marketing permission
Purpose-specific marketing data flowAn application reads a customer record and checks marketing permission. Granted permission permits the optional provider route; withdrawn permission blocks it. Moving packets illustrate information in transit; this is not a live integration. APPLICATION CODEMarketing jobRequests a sendPOLICY / APIPermission checkSubject + purposeEXTERNAL PROVIDEREmail platformSuppression appliesDATABASECustomer recordSeparate retentionRead permitted fieldsPermitted marketing useBlocked: no marketing send

Select a permission state to compare the routes.

Illustration only: no real customer data or network calls. Turning marketing off stops future sends; information already shared needs its own retention or deletion process. A four-second motion preview plays once when visible. Reduced-motion mode keeps the diagram static.

Where information goes, and what each layer needs to do

01. Code: what the app does
Forms, buttons, scripts, background jobs, and business logic. Code decides what to collect and when to use it.
02. APIs: how information moves
The doors between the browser, your backend, OPS, and other services. They need rules about who can ask, what they can access, and which purpose permits the action.
03. Database: what stays
Customer records, uploaded files, choices, logs, and backups. Storage needs ownership, access rules, retention, and deletion paths.
04. Sharing: who else receives it
Analytics, advertising, email, payments, CRM, and AI providers. Once information leaves, their use and retention become part of the responsibility.

The layers overlap in a real application. Browser code can send information directly to an advertising provider, bypassing your backend and database. A server job can share a stored record through an API. You need to follow every path.

Information can travel through the application API and storage, or directly from browser trackers to external providers.
Map where information travels. Browser code can send it straight to an outside provider without passing through your server.

01 / Code: follow the person’s choice

A discount popup collects an email address. A Meta Pixel script reports browsing or conversion activity. A scheduled job builds tomorrow’s promotional email audience. Each is code acting on information.

Ask: What starts this use? Which purpose does it serve? What changes when the person says no?

  • Collect only the fields needed for the stated task.
  • Keep email, advertising, analytics, and personalization choices separate.
  • Load optional scripts only when your configured policy allows that use.
  • Check permission at the point of use, including background jobs. A hidden button does not stop a backend request.
  • Do not put personal information in URLs, console logs, or event properties by accident.

OPS role: website controls and SDK helpers use the same purposes and preferences. Your builder connects those checks to the code that collects or uses information.

02 / APIs: protect the doors

An API is how one piece of software asks another to do something. Your store might ask OPS whether email marketing is permitted, then ask an email provider to send a message.

Every request needs three checks: identity confirms who is asking; record access limits which person’s and business’s data they can reach; purpose policy decides whether this particular use is allowed. Signing someone in only addresses the first check.

  • Enforce identity and record access on the server; do not trust an account ID supplied by the browser.
  • Send only the fields the receiving service needs.
  • Before a use that requires consent, check the person’s current choice. If you cannot confirm permission, block that use.
  • Check that incoming webhooks come from the expected sender. Retried messages must not duplicate or undo a choice.
  • Keep the person on the email provider’s do-not-send list while other systems catch up with an unsubscribe.

OPS role: your server can ask whether a use is allowed, record the choice and wording behind it, and pass changes to connected tools. The application must call the check before acting.

A purpose-specific permission check allows confirmed consent-dependent use and blocks withdrawn or unconfirmed permission.
02. A permission check belongs at the point of use. Authentication and record access must also be enforced.

03 / Database: control what stays

An email address can remain in a customer table long after someone unsubscribes. That may serve a separate, reviewed order-management purpose; it must not automatically put them back into a marketing audience.

A stored record is not permission to use it for everything. Encryption helps protect stored information. It does not decide whether a particular use is appropriate.

  • Know which records, files, derived content, logs, and backups exist.
  • Limit access to the right person, business account (tenant), and staff role.
  • Keep customer content separate from the records explaining choices and decisions. Include only the information those records need.
  • Define retention by purpose, including exceptions and backup handling.
  • Give withdrawals, access requests, and deletion requests distinct workflows. Unsubscribing is not the same as deleting an account.

OPS role: Tier 2 connects a history of choices (the consent ledger) to each person’s current preference. Each event points to the wording they saw. Tier 3 coordinates information from collection to deletion. Your database, files, logs, and backups still need their own controls, and choice records need a defined retention policy too.

04 / Sharing: follow it outside your app

Sharing includes a browser pixel contacting Meta, an email address reaching Klaviyo, and a note sent to an AI API. It is not limited to selling a customer list.

  • Name the recipient and explain the purpose.
  • Review provider roles, terms, retention, access, and onward use.
  • Govern browser and server routes. Blocking a pixel does not block a server-side conversion API.
  • Verify that preference changes reach the recipient and that failures are visible.
  • Explain what withdrawal can stop and what already-shared information requires a separate retention or deletion process.

Removing a name, hashing an email, or sending a “cookieless” event does not automatically make the transfer anonymous. Understand what the recipient can link or infer.

OPS role: Tier 2 passes changes to connected providers and records whether they arrived. Tier 3 tracks recipients and coordinates privacy requests. Test each connector against the actual provider; enforcement depends on the paths you integrate.

One withdrawal, across the system

  1. Code: Alex switches email offers off in the preference center.
  2. API: the server verifies Alex’s identity and records the change for the correct subject and purpose.
  3. Database: the ledger preserves the event and the current preference becomes withdrawn. It does not indiscriminately erase the order history.
  4. Sharing: the connector updates Klaviyo, records acknowledgment, and retries failures. The next marketing job respects the withdrawal and provider suppression.

Test the result: the next promotion is blocked, a stale import cannot restore the subscription, and the business can explain the decision without exposing Alex’s full customer record.

Withdrawal updates the effective permission immediately, blocks future sends, and propagates to providers with acknowledgment or visible retry handling.
Saving an unsubscribe and delivering it to other tools are separate steps. Make failed delivery visible and keep the withdrawal in force.

Where the tiers fit

LevelIntegration depth
Tier 1Browser controls for configured optional scripts. Website hosting, logs, and access still need attention.
Tier 2Customer choices connected to server APIs, consent storage, and downstream tools.
Tier 3Data inventory, ownership, retention, requests, and governance across those same layers.

Every app needs the basics. Higher tiers coordinate more systems and more of the information’s lifecycle.

Where OPS Guide fits

The runtime platform helps your application act on configured policy. OPS Guide helps your builder understand and implement that architecture. Its knowledge API and MCP connection help identify missing facts and turn findings into tasks and tests, each linked to its reasons and sources.

Use the OPS skill with your AI tool, or follow the build plan for platform progress.

A practical starting point

List each place you collect information, each purpose, each store, and each recipient. Then ask your builder to demonstrate what happens when a person says no, changes their mind, or requests deletion.

The FTC’s business guidance recommends inventorying information flows, keeping only what you need, restricting access, and disposing of information appropriately. Our four-layer explanation is an educational design based on those responsibilities, not a legal applicability test.

FTC: protecting personal information ↗ · Google: consent modes and data transmission ↗