This Privacy Policy explains what personal data bookshelf.dev ("we", "us") collects, why, and how it is handled. The Site is operated by Mikhail Rubanov.
1. Data we collect
Email address — you give it at checkout, when you ask for a sign-in link, or when you subscribe to the newsletter. We use it to record your purchases, give you access, send you sign-in links and, if you opted in, the newsletter.
Purchase records — for each order: your email, the book or subscription bought, amount, currency, status, and for subscriptions the end of the paid period. Payment and billing details are handled by Polar (see section 3); we never receive your card details.
Reading activity — when you open a book page we log the book, the page address, whether it was free or unlocked, your country (from your IP address) and, if you are signed in, your email. We use this to understand which books and chapters are read and to keep the Site working.
Advertising measurement data — only if you allow it (see section 2): the ad click identifier from a link in one of our ads on X (formerly Twitter), and, when you buy, the purchase details (which book, amount, currency, order reference) together with a one-way SHA-256 hash of your email address. We send these to X only to learn whether our ads lead to purchases. X never receives your email address in readable form.
Technical data — standard server logs (such as IP address and request metadata) processed by our hosting provider to deliver and secure the Site.
2. Cookies and consent
bookshelf_session (essential) — set after you sign in or buy. A signed token that records which content your email can read. It renews while you use the Site and expires after 90 days without use.
bs_consent (essential) — remembers your answer to the advertising-measurement question, for 180 days.
bs_twclid (advertising measurement) — set only when you arrive from an ad on X and allow measurement. Stores the ad click identifier for 30 days so a later purchase can be attributed to that ad.
X conversion tracking pixel (advertising measurement) — with your permission, the book purchase pages and the page shown right after checkout load X's pixel script from static.ads-twitter.com. X may set or read its own cookies (such as _twclid) to measure ad performance.
If you are in the EU/EEA, the UK or Switzerland, advertising measurement is off until you choose Accept in the banner on a book page; if you choose Decline or don't answer, nothing is loaded, set or sent to X. Elsewhere it is on by default and you can turn it off here. Either way, your choice never affects access to anything you have bought.
Done — advertising measurement is off on this browser.
3. Payments — Polar as Merchant of Record
Purchases are processed by Polar (Polar.sh), which acts as the Merchant of Record and independent data controller for payment processing, billing, fraud prevention, and tax compliance. When you check out, your payment information is collected directly by Polar under Polar's Privacy Policy. To give you access we look up your purchases with Polar by email, and we also keep our own purchase records (including access we grant directly, such as review copies). When an order completes, Polar notifies us of your email, what you bought, the amount, and whether you ticked the newsletter box.
4. How we use your data
To record purchases and give access to paid content.
To send you sign-in links when you ask for one.
To send the newsletter, only if you subscribed or ticked the box at checkout. Every newsletter has an unsubscribe link.
To understand which books and chapters are read, and to operate, secure, and maintain the Site.
To measure whether our ads on X lead to purchases, only as described in section 2.
To respond to support requests you send us.
We do not sell your personal data. Apart from the advertising measurement described above, we do not share it with advertising platforms.
5. Data retention
Purchase records — kept for as long as you can access what you bought, and as required for accounting and tax.
Sign-in links — valid for 15 minutes, then deleted.
Access cache — what your email can read is cached for about one hour.
Reading activity log — kept for about 3 months.
Newsletter list — until you unsubscribe or ask us to delete it.
Cookies — as listed in section 2.
Polar keeps its own payment records as the Merchant of Record.
6. Processors and third parties
Polar — payments, billing, and tax (Merchant of Record).
Cloudflare — hosting, content delivery, and security for the Site, and storage of our purchase records, caches, and reading activity log.
Resend — delivers sign-in emails. It receives your email address and the email's contents.
Buttondown — runs the newsletter. If you subscribe on the Site it receives your email address and IP address and sends you a confirmation email first; if you tick the box at checkout, you are added directly. See Buttondown's Privacy Policy.
X Corp. — advertising measurement, only as described in section 2. X processes this data under X's Privacy Policy; you can manage how X uses it for ads in your X account under Settings → Privacy and safety → Ads preferences.
7. Your rights
Depending on your location, you may have the right to access, correct, or delete your personal data, to object to or restrict its processing, and to withdraw consent at any time (for advertising measurement, use the button in section 2). To exercise these rights, contact us at the address below. For payment and billing data held by Polar as Merchant of Record, you can also contact Polar directly.
8. Changes
We may update this Policy; the "Last updated" date above reflects the latest version.