prompts.chatprompts.chatprompts.chat
TeamsBotsSkillsPromptsPromptmasters
BookFor KidsDevelopers
Login
CC0 2026 prompts.chat
DeepWikiHow to...DocsAPIPrivacyTermsSupportAboutGitHub

WebWarpped

This prompt asks for webwrapped, a zero-dependency, fully offline Python CLI that turns a person’s browser history into a Spotify-Wrapped-style annual story and downloadable share card. It must run with one command, keep all data on the user’s machine, make no network calls, and require no API keys.

p
@mirm14354
about 6 hours agoNovember 29, 2026 at 12:05 PM
Vibe Coding•CLIWebPython

Content

GOAL
Build "webwrapped" — a zero-dependency CLI that turns a user's browser history
into a Spotify-Wrapped-style year-in-review story with a downloadable share
card. One command, 100% local, no API keys, no network calls, works offline.

TARGET USERS
- Anyone who uses a browser (non-technical first: the story page must be
  beautiful and self-explanatory).
- Privacy-conscious users: history never leaves the machine; state this
  prominently in the README.
- Developers who want the raw stats (--json).

CORE FEATURES (numbered)
1. Auto-detect and read history sources, then merge + dedupe:
   a. Chromium browsers (Chrome, Edge, Brave, Arc, Vivaldi): local
      "History" SQLite DB (note: Chromium only keeps ~90 days locally —
      detect this and show a hint to also export Google Takeout).
   b. Firefox: places.sqlite (can hold years).
   c. Safari: History.plist via plistlib.
   d. Google Takeout: "My Activity/Chrome/MyActivity.json" and
      "My Activity/Search/MyActivity.json" (full-year data; this is the
      flagship source — instruct users how to request it in the README).
   Read SQLite files by copying them to a temp dir first (databases are locked
   while the browser runs).
2. Insights engine (pure stdlib, deterministic, tested):
   - Total visits, estimated hours, busiest day and hour, night-owl score
     (share of 00:00–05:00 traffic).
   - Top 10 sites by visits and by "days seen" (loyalty).
   - "Eras": detect topic phases by clustering domain bursts per week
     (e.g. 3 weeks of recipe sites) and label them with a small
     category-heuristic map (news, video, social, dev, shopping, food...).
   - Rabbit holes: longest single-session drift chains (visit sequences that
     start at one domain and end far away).
   - Top Google queries of the year (from Takeout Search activity), including
     "questions you googled after midnight".
   - YouTube: top channels and total watch-URL visits.
   - Most-revisited single page (the one Stack Overflow question).
   - Streaks: longest daily-visit streak overall.
3. Output modes:
   - Terminal: compact, colorful summary (plain ASCII fallback, no deps).
   - HTML story: a single self-contained file, scrollable story sections in
     Wrapped style (big numbers, bold typography, CSS animations), opened in
     the default browser. Must include a "Download share card" button that
     renders a 1080x1350 PNG client-side via canvas (no server, no deps).
   - --json: full stats dump for scripting.
   - --redact: replace site names with generic labels ("Social app #1")
     inside the share card, for safe sharing.
4. CLI UX: `webwrapped` (auto-detect everything, current year),
   `--year 2025`, `--sources chrome,takeout`, `--demo` (synthetic dataset so
   anyone can preview without their own data), `--json`, `--out story.html`.
5. Takeout zip support: accept the raw takeout-*.zip directly.

TECH STACK
- Python 3.10+, standard library only for the core (sqlite3, plistlib, json,
  zipfile, argparse, html, statistics, dataclasses). No runtime dependencies.
- Optional dev extras: pytest, and `rich` only behind a try/except for
  prettier terminal output when installed.

PROJECT STRUCTURE
webwrapped/
  __init__.py, __main__.py, cli.py
  sources/ (chrome.py, firefox.py, safari.py, takeout.py — each exposes
           read(path) -> list[Visit(date, url, title)])
  merge.py        (dedupe + normalize + union of sources)
  insights/       (stats.py, eras.py, rabbit_holes.py, queries.py, youtube.py)
  render/         (story.py — HTML template; card.py — canvas card HTML)
  demo_data.py    (synthetic generator for --demo)
  tests/          (fixtures: tiny synthetic History.sqlite, places.sqlite,
                   History.plist, MyActivity.json; golden-file tests per insight)
  README.md, LICENSE (MIT), pyproject.toml (pipx/uvx installable)

CLI SPEC
  webwrapped                 # scan default year, all detected sources
  webwrapped --year 2025
  webwrapped takeout.zip     # pass a Takeout zip directly
  webwrapped --demo          # synthetic story, no personal data
  webwrapped --json > stats.json
  webwrapped --redact        # anonymized share card

README REQUIREMENTS
- Badges: CI, license, python version, "zero dependencies".
- One-paragraph privacy promise: nothing leaves the machine, works offline
  (recommend running with network off).
- Demo GIF: terminal run -> story scrolling -> share card download.
- Quick start: `pipx install webwrapped` (or `uvx webwrapped`), then one
  command. Include a 3-step "get your Takeout" guide with screenshots.
- Supported sources table + the Chromium 90-day deletion note.
- FAQ: "where does my data go?" (nowhere), "group by site not URL",
  "why is my local history only 90 days".

TESTING
- pytest with tiny synthetic browser-database fixtures per source.
- Golden-file tests: same input -> same stats JSON and deterministic HTML
  (hash the rendered story after stripping timestamps).
- Edge cases: locked DBs, empty history, non-UTF8 titles, huge Takeouts
  (stream, don't load 500MB into RAM), duplicate visits across sources.

LICENSE: MIT.

FIRST-RELEASE CHECKLIST
- Ship by early December (Wrapped season — the launch window).
- Demo GIF from --demo mode; examples/ folder with the synthetic dataset.
- Launch on X/HN with your own (redacted) share card as the hook:
  "11% of my year went to one Stack Overflow question."
- CONTRIBUTING.md: template for adding new browser sources and category
  heuristics (this community-fed map is the moat — clones can copy the
  code in a day, not the contributors).
- GitHub Actions CI: lint + tests on 3.10/3.11/3.12/3.13.

Comments (0)

Related Skills

Dotenv Config and Secrets Linter

Skill

Lints .env and .env.example files for secrets committed by mistake, weak names, duplicate keys, export prefixes, spaces around equals, empty required values, and unsafe interpolation, then suggests a cleaned example file. Use when a user asks "is this .env safe to commit?", "why won't dotenv load?", or "diff my .env.example". Includes a tested stdlib Python linter.

F@f
0

High-Frequency RSS Ingestion Architect

Skill

Act as Systems Architect. Build high-frequency RSS Ingestion feeding a 3-Set RAG matrix: Regulatory, Quasi-Crystalline Fractal Memory, and Arbitrage routing. Run Python box-counting algorithms to extract spatial complexity ($D$). Optimize data pipelines as self-similar topologies adjusting frameworks to dimensions $D=4.5-7.5$ to maximize throughput and eliminate bottlenecks. Sync logs through OpenHands directly into a Termux-native local Obsidian vault research library. No summaries.

S@samhiotis
0

Dockerfile Best Practices Reviewer

Skill

Reviews Dockerfiles for security, image size, build cache, and runtime reliability: secrets baked into layers, running as root, unpinned base images, curl piped to a shell, ADD misuse, leftover apt and pip caches, cache-busting dependency installs, shell-form CMD, and missing multi-stage builds or health checks, then writes a corrected Dockerfile and .dockerignore. Use when a user shares a Dockerfile and asks "review my Dockerfile", "why is my image so big?", or "is this container secure?".

F@f
0

Regex Pattern Explainer and Tester

Skill

Explains Python regular expressions token by token, tests them on must-match and must-not-match samples with spans and named groups, and flags risky patterns: nested quantifiers that backtrack catastrophically, [A-z], unescaped dots, empty matches, and missing anchors, then proposes a safer rewrite. Use when a user asks "what does this regex do?", "why doesn't it match?", or "is this regex safe?". Includes a tested stdlib Python checker.

F@f
0

Related Bots

Commit History Storyteller

Bot

Turns a range of commits into a readable story for release notes or a demo.

F@f0