Privacy policy
Last updated: 29 November 2026
This page explains what needcode.in stores about you and why. You can read the site without an account; we only store personal data once you sign in.
What Google gives us#
When you sign in with Google we ask only for the openid, email and profile scopes. Google sends us:
- your Google account ID, so we recognise you next time;
- your email address;
- your name and profile picture.
We never see your Google password, and we can't read your Gmail, Drive or anything else in your Google account.
What we store#
| Data | Why | Who can see it |
|---|---|---|
| Email address | To identify your account | Only you and site admins |
| Name, profile picture, username | Shown on your profile, articles and comments | Everyone |
| Bio, location and links you add | Shown on your profile | Everyone |
| Articles, comments, reactions, follows | The features you use | Published content and counts are public; drafts are private |
| Bookmarks and track progress | For you to come back to | Only you |
| Notifications | To tell you about replies, reviews and followers | Only you |
| Sessions: browser user agent, IP address, last seen time | To keep you signed in and let you sign out other devices | Only you and site admins |
| Reports you make | To moderate content | Site admins and reviewers |
| Images you upload | To show them in your articles | Everyone, once used in a published article |
Rate limits count requests per IP address, but store only a keyed hash of the address, never the address itself.
Cookies#
We use only the cookies the site needs:
- Session cookie (
__Host-needcode_session): keeps you signed in for up to 30 days. Not readable by scripts. - Sign-in cookie (
needcode_oauth): lives for 10 minutes while you sign in with Google, then is deleted. - Theme cookie (
theme): remembers light or dark mode.
There are no advertising or third-party tracking cookies, and we don't sell your data.
Services we use#
- Google for sign-in.
- Netlify hosts the site and processes requests.
- Neon hosts the Postgres database.
- Cloudflare R2 stores uploaded images.
They process data on our behalf only to run the site.
How long we keep it#
Sessions expire after 30 days. Published articles stay up under their licence until they are archived. Account data is kept while your account exists.
Your choices#
- Edit your profile at any time in Settings.
- Sign out of all devices from Settings.
- To get a copy of your data, correct it or delete your account, open an issue on GitHub without personal details, and a maintainer will follow up privately. When an account is deleted, its articles and comments stay under the CC BY-SA licence but are shown as by "Deleted user".
Changes#
If we change this policy we will update the date above. Questions: open an issue on GitHub.