Keep the people. Lose the feed.
Present is a precision cognitive firewall for your phone and browser. You say what you want in plain words, for example "Keep my Instagram DMs and YouTube subscriptions, but kill Reels and Shorts after 9 PM". Gemini compiles that sentence into a typed policy, you review it, and your phone enforces it on-device. Reels, Shorts, TikTok and Snapchat Spotlight go away; DMs, search and subscriptions stay.
Website: https://present-web-283760043967.asia-south1.run.app · Download: latest release
Most blockers are all-or-nothing: they lock the whole app. You need one DM, unblock "just for a minute", and the block is dead. Present removes only the algorithmic surface and leaves the useful parts of the app open.
| Finding | Source |
|---|---|
| Indians spend about 1 h/day on YouTube and about 1 h/day on Instagram | Hansa Research 2026, Hansa via MediaNews4U |
| 97% of Indians watch Reels daily | Meta study |
| One in six Indians spends 1.2 h/day on short-form video | Redseer |
| A 10-second pause made people abandon 36% of app opens; opens fell 57% over 6 weeks | one sec study, PNAS 2023 |
| A "years of your life" projection is the most-shared screen in Opal's onboarding | Opal 2023 Screen Time Report |
| Whole-app blockers have a short half-life: people unblock for one message | DEV, Hacker News |
Type an intent (or tap an example chip) and tap Compile with Gemini. Gemini returns either a policy or a plain-language reason it can't be enforced. The review screen shows a summary, green chips for what stays usable, red chips for what gets blocked, and the schedule. Nothing is enforced until you tap Activate. Gemini also gets your current policy, so you can make changes like "also block Snapchat Spotlight".
About 90 seconds, one question per screen: which apps pull you in, how long per day (self-reported, or measured with optional Android Usage Access), how much of that is short-form, when it hits hardest, and what must stay usable. Then:
- The mirror: daily minutes, then hours per year, then years of your waking life, with a "how we calculate" breakdown and a share button.
- The upside: time back per week using a conservative 50% reduction, shown as real-world equivalents (gym sessions, evenings with friends).
- Your plan: an intent sentence written from your answers. You can edit it before Gemini compiles it.
- Commit: press and hold "I choose to be present", then the accessibility disclosure and a step-by-step permission guide.
An Accessibility Service watches Instagram, YouTube, TikTok and Snapchat only, and leaves the short-video screen as soon as it loads.
| Platform | Surface blocked on Android | Stays usable |
|---|---|---|
Reels (reels_tab) |
Home, DMs, search, profiles | |
| YouTube | Shorts player (shorts_player) |
Search, subscriptions, regular videos |
| TikTok | Video feed (reels_tab) |
n/a |
| Snapchat | Spotlight (spotlight) |
Chat, camera |
What isn't enforced on Android yet:
home_feedandexplore_gridare web-only. The review screen tags them web only, and the Chrome extension enforces them.daily_allowanceschedules are treated as "always" because there is no per-minute usage tracking yet.whitelisted_entities(allowed creators) are shown on the review screen but not enforced.- The schema also accepts Reddit and LinkedIn, but neither the app nor the extension enforces them.
Turning protection off (in the app or from the tile) is not instant. You wait out a countdown that starts at 15 s and doubles with each turn-off that day, up to 60 s. While you wait you get a real-world quest ("Call someone you miss", "Make a plan with a friend", "Step outside for 10 minutes", and others), some with a one-tap dial or message action. You then type a reason of at least 10 characters. You can also choose Pause for 15 minutes instead.
I need 5 minutes on Home opens a pause card: a countdown (the policy's delay_seconds, default 10 s) asking whether this is what you opened your phone for, a side quest (hydrate, rest your eyes, stretch) and a reason box. Then protection pauses for 5 minutes.
The Stats screen shows blocks, an approximate "time reclaimed" figure (4.2 min per intercept), and streaks. Get my weekly insight sends aggregate counts to Gemini, which returns a headline, an insight and a suggested rule.
Add the Focus Mode tile from the notification shade's tile editor. While paused, tapping it resumes protection. Otherwise it opens the turn-off guard.
The desktop half lives in extension/. On youtube.com it hides Shorts shelves and links, sends /shorts/<id> to the normal watch page, and can hide the home feed. On instagram.com it hides the Reels and Explore links and redirects them to the DM inbox. The popup uses the same compiler and review flow, and the policy lives in chrome.storage.sync. With no policy saved, it hides Shorts and Reels by default.
| Read on the device | Only inside Instagram, YouTube, TikTok and Snapchat (the accessibility scope is limited to these packages): the view tree of the current screen (resource IDs, class names, labels) so the app can tell which screen is open. It is processed in memory and is not stored or sent anywhere. |
| Never read | Anything in other apps, screen pixels and your photos. |
| Stored on the device | Your active policy, onboarding answers, block counts and streaks (DataStore). |
| Leaves the device | (1) The intent text you compile, plus your current policy so Gemini can edit it. (2) If you tap Get my weekly insight: aggregate counts only (intercepts per app, total intercepts, streak days). Both go to Present's server and from there to Gemini. Present's server doesn't store or log them. |
There are no accounts and no analytics. Calls are authenticated with a shared x-present-key header (there is no per-user auth yet).
- Download the APK. The latest build is the
mindguard-debug-apkartifact on the most recent green CI run onmain. Tagged builds are attached to Releases. Debug builds are signed with a committed debug keystore, so a new build installs over the old one. - Install it and go through onboarding.
- Android 13+ only, for sideloaded apps: go to Settings → Apps → Present → ⋮ (top right) → Allow restricted settings.
- Go to Settings → Accessibility → Present and turn it on. The onboarding permission step walks you through this and notices when it's done.
- Write your first intent, for example "Keep Instagram DMs, kill Reels and Shorts after 9 PM", then tap Compile with Gemini and Activate. Open Reels to test it.
Requires Android 7.0+ (API 24).
| Path | What's there |
|---|---|
shared/ |
Kotlin Multiplatform: detection rules, PresentPolicy, PolicyEvaluator, PolicyJson |
androidApp/ |
Compose UI, onboarding, accessibility service, tile, CompilerClient |
server/ |
Cloud Run compiler (TypeScript, Hono, @google/genai, Zod) |
extension/ |
Chrome MV3 extension (TypeScript, esbuild) |
docs/ |
Website (GitHub Pages) |
plans/ |
Plans and design docs |
Run the compiler locally
cd server
npm install
npm test
printf 'GEMINI_API_KEY=...\nPRESENT_API_KEY=dev-key\n' > .env # .env is git-ignored
npm run build
node --env-file=.env dist/server.js # listens on :8080For hot reload, use npm run dev with the same variables exported.
Point the Android app at it. The app reads present.apiUrl and present.apiKey from local.properties. The defaults are the live Cloud Run URL and dev-key.
present.apiUrl=http://localhost:8080
present.apiKey=dev-keyadb reverse tcp:8080 tcp:8080 # phone's localhost:8080 -> your machineCleartext HTTP is allowed only for localhost and 10.0.2.2 (the emulator).
Build the extension
cd extension
npm install
npm test && npm run typecheck
npm run build # load extension/dist/ via chrome://extensions → Load unpackedSet the service URL and key in the popup's Settings.
Android builds. CI (.github/workflows/ci.yml) is the source of truth. It uses JDK 17, runs ./gradlew build and the shared tests, and uploads the debug APK. It writes present.apiKey from the PRESENT_API_KEY Actions secret, so CI builds can call the live service. Locally, with an Android SDK and JDK 17:
./gradlew :androidApp:assembleDebug # androidApp/build/outputs/apk/debug/The project is built test-first (TDD). Logic lives in pure functions and is tested through public behaviour.
| Where | What | Run |
|---|---|---|
shared/src/commonTest |
Detection rules, PolicyEvaluator (including overnight windows), policy JSON, Gherkin-style acceptance tests per app |
./gradlew :shared:testDebugUnitTest |
androidApp/src/androidUnitTest |
Onboarding projection and intent sentence, turn-off guard, policy formatting, insights request, watchdog, Instagram home-tab strategy | ./gradlew :androidApp:testDebugUnitTest |
server/src/*.test.ts |
Compile/insights endpoints, API key check, Gemini fallback chain (Vitest, fake Gemini) | cd server && npm test |
extension/src/core/*.test.ts |
CSS rules, redirects, schedules, compile client, review, settings, stats (Vitest) | cd extension && npm test |
- Daily allowances: "20 minutes of Reels a day, then blocked", tracked minute by minute
- Allowed creators: keep specific channels and creators while the rest of the feed stays blocked
- Accounts and sync: one set of rules across your phone and browser
- Progress you can see: "down 42% from your starting 1 h 48 m" on Home and in the weekly insight
- Smarter quests: turn-off quests weighted by what you said you'd do with the time
MIT. See LICENSE.