Privacy policy
Last updated 4 December 2026
Margin is a code review app. It was built so that your code, your tokens and your comments stay between you and your code host. This page explains exactly what Margin’s server sees.
What stays on your devices
- Code, diffs, titles and comments. The app reads them straight from GitHub, GitLab or Bitbucket and posts your review straight back. Margin’s server never stores them (see Notifications for the one place it briefly receives some).
- Access tokens. Kept in your Keychain and synced by iCloud Keychain to your own devices only. Tokens you paste in never reach Margin. With one-tap sign-in, your host gives the token to Margin’s server, which hands it straight to your device without storing or logging it; the same happens each time it’s renewed. When you turn notifications back on, your device sends such a token once so the server can look up your account id again; it isn’t stored or logged either.
- Handwriting, voice and Apple Intelligence. Recognised and processed on the device. Voice recordings stay on the device and are deleted when the review is sent.
What Margin’s server keeps
Margin has no sign-up. The server knows you by an anonymous identifier from your App Store purchase of the app, and knows your devices by a key that Apple’s App Attest service creates on each device.
| Data | Why | How long |
|---|---|---|
| Device key | To know requests come from the real app on your device | 90 days after the device was last seen |
| Only while notifications are on: the device’s push token, app and iOS version, time zone and notification settings | To send notifications at sensible hours | Until you turn notifications off on that device |
| Only while notifications are on: the numeric id and username of accounts you link with one-tap sign-in | To send you notifications meant for you | Until you turn notifications off on your last device, remove the account, or delete your data |
| Only while notifications are on: the GitLab and Bitbucket repositories you turned on, each webhook’s id on the host, and your user id there | To receive their events and remove the webhooks later | Until you turn the repository or notifications off, remove the account, or delete your data |
| Where the Margin GitHub App is installed: the account or organization name and installation id | To know which repositories send updates | Until the app is removed there |
| Ids of recent code-host events | So one event never notifies you twice | 1 day |
| For Bitbucket pull requests that notified someone: which reviewers were already told | Bitbucket’s updates don’t say who was just added | 30 days |
| Count of reviews submitted this month | For the monthly free reviews | About 2 months |
| Subscription status from the App Store | To unlock Margin Pro | While you’re subscribed, plus records Apple requires |
| Crash reports, only if you choose to send them | To fix bugs | 30 days, without any link to you or your device |
Notifications
Notifications are optional and off until you turn them on, in Settings or when Margin offers after your first review. While they’re off, Margin’s server has nothing that ties a code-host account to you. With them on, there are three ways Margin learns that something happened:
- GitHub. Where you or your organization install the Margin GitHub App, GitHub sends Margin’s server its usual update for pull request events in those repositories: opened, reviewed, commented on, checks finished, merged. These updates include the title and description, comment text and, for comments on lines, a few lines of code. To work out who to tell, the server may also ask GitHub for the comment being replied to or the pull request behind a failed check. It uses only the repository, the pull request number, the kind of event and who’s involved, and drops the rest straight away: it isn’t stored or logged. Events reach you only for accounts you linked with one-tap sign-in.
- GitLab and Bitbucket. For each repository you turn on, your device adds a webhook with your own token, so the host sends the same kind of update, handled the same way. Events from your webhooks only ever notify you.
- Everything else is checked by your device itself every 30 minutes during your working hours, after a silent wake-up from the server. Your device asks your code host directly.
A notification carries only the kind of event, the code host, the repository and the pull request number. Your device then fetches the title from your code host with your own token.
Turning notifications off on a device removes its push token, notification settings and wake-ups from the server. When no other device of yours still has them on, the server also forgets which code-host accounts are yours and its records of your webhooks, and your device removes those webhooks from GitLab and Bitbucket. The GitHub App stays installed until you remove it (see below); events about people it can’t match to anyone are dropped.
What Margin doesn’t do
- No advertising, analytics or tracking SDKs in the app.
- No selling or sharing of data.
- No email address, name or password collected by Margin.
This website
The app has no analytics, but this website (margin.codes) can use Google Analytics, loaded through Google Tag Manager, to count visits and see which pages are useful. It sets cookies only if you choose Allow on the cookie banner. Until then, and if you choose No thanks, Google receives only cookieless pings: they say a page was viewed, without cookies or any id that ties visits together, and Google uses them to estimate total traffic. If your browser sends Global Privacy Control or Do Not Track, none of this runs at all.
- What it collects. The pages you view, the page you came from, your browser, device type and screen size, an approximate location (country and city, worked out from your IP address, which Google Analytics doesn’t store), and what you do on the page: how far you scroll, clicks on links that leave the site, and any videos played or files downloaded.
- Cookies, only after you allow them.
_gaand_ga_…, which tell repeat visits apart. They hold a random id, not your name or email. - What it doesn’t do. Google signals and ad personalization are off, so the data isn’t used for advertising or linked to your Google account by Margin.
- How long. Visit data is kept for 2 months in Google Analytics.
- Changing your mind. Choose Cookie settings at the bottom of any page. Choosing No thanks removes the cookies and goes back to cookieless pings.
The site itself is served by Amazon CloudFront, which keeps standard request logs for security.
Services Margin uses
Margin’s server runs on Amazon Web Services in the United States. Notifications are delivered by Apple Push Notification service. Purchases are handled by the App Store. This website uses Google Analytics, with cookies only after your consent (see above).
Your choices
- Turn notifications on or off in Settings → Notifications at any time, and choose which kinds you get and which GitLab and Bitbucket repositories send instant updates.
- Remove the Margin GitHub App from your account at github.com/settings/installations (Settings → Notifications links there). For an organization, its owners remove it under the organization’s settings → GitHub Apps.
- Turn crash reports on or off in Settings → Privacy.
- Removing an account from Margin removes its token from your Keychain, its link on the server and the webhooks it added.
- In Settings → Privacy, Delete my data on Margin’s server removes your webhooks and everything the server keeps about you, straight away, except this month’s and last month’s review counts, which expire on their own (so the free reviews can’t be reset).
Contact
Questions about privacy, or a request about your data? Email support@margin.codes. Include the Support ID from Settings → Privacy so we can find your records.