Rivews — Project Summary

Type: Chrome browser extension + Node.js server platform
Status: v0.19 — production-ready core, monetization designed
Domain: rive.ws
Repo: https://github.com/hqnsel/rivews.git
Last Updated: April 2026


What It Is

Rivews is a web annotation and review platform. A Chrome extension lets anyone draw, highlight, comment, and leave visual reviews on any webpage. Annotations are saved to a backend and shareable via unique URLs at rive.ws — viewers don’t need the extension.

Think: a visual feedback layer on the entire internet.


Architecture

Chrome Extension (rivews-app/extension/)

  • Manifest V3 — modern Chrome extension with secure permissions
  • Content script — injects annotation tools and overlay into any webpage
  • Drawing tools — freehand pen, highlighter, rectangle, circle, text annotations
  • Dual-view layout — desktop and mobile views displayed side-by-side with independent annotation layers
  • View-specific coordinates — each annotation stores coordinates relative to its own view (desktop/mobile), eliminating positioning mismatches
  • Screenshot capture via html2canvas
  • Undo with Ctrl+Z / Cmd+Z and Escape to cancel

Backend Server (rivews-app/server/)

  • Express.js RESTful API
  • PostgreSQL — primary database with UUID keys, JSONB columns for annotation data
  • Google OAuth 2.0 — secure sign-in via Passport.js
  • JWT tokens — stateless session management
  • Redis caching — 30-minute TTL for proxied page HTML
  • User tier system — Free, Reviewer+, Outreach, Business, Agency with quota enforcement
  • Proxy service — serves annotated webpage views to viewers without the extension
  • Comment system — threaded comments on annotations with replies

Key Technical Innovation: View-Specific Coordinates

  • Desktop annotations: coordinates relative to desktop iframe
  • Mobile annotations: coordinates relative to mobile iframe
  • No coordinate transformation needed at render time
  • Each annotation includes a viewMode property (desktop / mobile)
  • Server and extension rendering are perfectly aligned

Tech Stack

LayerTechnologies
ExtensionChrome Manifest V3, Vanilla JS, HTML5 Canvas, html2canvas
ServerNode.js, Express.js, PostgreSQL, Redis
AuthGoogle OAuth 2.0, JWT, bcryptjs, Passport.js
InfraDocker-ready, Coolify hosting

Key Dependencies

  • express ^4.18.2 — web framework
  • pg ^8.11.0 — PostgreSQL client
  • passport ^0.6.0 + passport-google-oauth20 — OAuth
  • jsonwebtoken ^9.0.0 — JWT
  • redis ^4.7.0 — caching
  • axios ^1.8.4 — HTTP client for proxy
  • cheerio ^1.0.0 — server-side DOM manipulation
  • nanoid ^3.3.6 — unique ID generation

Monetization Model

TierPriceTargetCore Value
Free$0Casual reviewers5 rivews (public/private), annotations, comments, shareable links
Reviewer+$4.90/moPower reviewersUnlimited rivews, priority badge, 50MB storage
Outreach$9.90/moFreelancers & consultants50 outreach rivews/mo, open/reply tracking, email templates
Business$19.90/moSite ownersEmbeddable widget, moderation, analytics, domain claiming
Agency$39.90/moAgencies & teamsAll features, AI analysis, team accounts, API, white-label

Key design decisions:

  • Public rivews are free for everyone — reviewers are the supply side, never tax them
  • Site owners pay for the widget — they’re buying social proof (Trustpilot model)
  • Freelancers pay for outreach tools — lead gen ROI justifies the cost
  • No public user profiles — privacy first

API Endpoints

Auth Routes (/auth)

  • GET /auth/google — initiate OAuth flow
  • GET /auth/google/callback — OAuth callback
  • GET /auth/check — session check
  • GET /auth/me — dashboard data (stats, limits, user info)
  • GET /auth/status — auth status
  • POST /auth/logout — logout
  • PUT /auth/profile — update profile
  • DELETE /auth/account — delete account

Overlay Routes (/api/overlays)

  • POST /api/overlays — create overlay
  • GET /api/overlays/:id — get specific overlay
  • PUT /api/overlays/:id — update overlay (owner only)
  • DELETE /api/overlays/:id — delete overlay (owner only)
  • GET /api/overlays/for-url — find overlays for a URL
  • GET /api/overlays/user — user’s overlays with filtering
  • POST /api/overlays/:id/share — share overlay
  • GET /api/overlays/check-url — check if URL has overlays

Comment Routes (/api/comments)

  • GET /api/comments/:overlayId — get comments (threaded)
  • POST /api/comments/:overlayId — add comment
  • PUT /api/comments/:commentId — update comment
  • DELETE /api/comments/:commentId — delete comment

User Tiers & Quotas

TierMax OverlaysMax Annotations/OverlayMax Shares/Overlay
Free5503
Pro10020020
EnterpriseUnlimitedUnlimitedUnlimited

Annotation Types

TypeRequired FieldsOptional Fields
rectanglex, y, width, height, colorviewMode, text
circlex, y, radius, colorviewMode, text
penpoints, colorviewMode
highlighterpoints, colorviewMode
textx, y, text, colorviewMode, fontSize

Version History

VersionDateKey Changes
0.19Feb 2026Rebrand to “Rivews”, delete from dashboard, comment panel auth
0.18Feb 2026Core fixes: pen/highlighter, comments, share links, keyboard shortcuts
0.17—View-specific coordinate system, dual-view layout fixes
0.16—Responsive overlay system with element targeting
0.15—Proxy view comments, Redis integration
0.14—Smart comment system with text snapping
0.13—Enhanced drawing tools, undo, comment icons
0.1-0.12—Initial working versions

Roadmap Status

Phase 1: Core — DONE

Chrome extension, visual annotations, notes, comments, public/private toggle, Google OAuth, dashboard

Phase 2: Monetization — DONE

Tier system, quota enforcement, landing page (rive.ws), pricing page

Phase 3: Widget — IN PROGRESS

  • widget.js embeddable script — done
  • Widget API endpoints — done
  • Widget moderation panel for Business tier — pending
  • Domain claiming system — pending
  • Analytics dashboard — pending
  • “Powered by Rivews” removal for paid tiers — pending

Phase 4: Outreach Platform — IN PROGRESS

  • Outreach API (/api/outreach/*) — done
  • Create rivew programmatically — done
  • Campaign tracking (opens, replies) — done
  • AI-powered site analysis — pending
  • Suggested email templates — pending
  • CRM export — pending

Phase 5: Growth — PLANNED

  • Firefox / Safari extensions
  • Stripe payment integration
  • Team/workspace management
  • API key system for Agency tier
  • MCP server integration
  • White-label customization

Email Notifications (Planned)

Planned notification types: overlay sharing, comments, replies, view milestones, weekly digest (Pro+), quota warnings, tier upgrade confirmations.

Estimated implementation: ~24 hours. Uses nodemailer, handlebars templates, node-cron for scheduled sends. Includes rate limiting, preference management, and unsubscribe.


Project Structure

rivews-app/
├── extension/
│   ├── content.js          # Main extension logic + dual-view
│   ├── drawing.js          # Core drawing functionality
│   ├── toolbar.js          # Toolbar UI and tool selection
│   ├── popup.js / popup.html  # Extension popup
│   ├── overlay.css         # Annotation styling
│   └── manifest.json       # Extension config
├── server/
│   ├── server.js           # Main Express server
│   ├── config/database.js  # PostgreSQL config
│   ├── models/user.js      # User model with tier management
│   ├── routes/auth.js      # Auth routes
│   ├── routes/overlays.js  # Overlay CRUD
│   ├── routes/comments.js  # Comment management
│   ├── services/auth.js    # Passport config
│   ├── migrations/         # DB migration scripts
│   └── public/             # Static assets (dashboard, viewer)
└── docs/
    ├── API.md              # Full API documentation
    └── EMAIL_NOTIFICATIONS.md  # Email feature spec

Environment Variables

GOOGLE_CLIENT_ID=xxx
GOOGLE_CLIENT_SECRET=xxx
GOOGLE_CALLBACK_URL=http://localhost:3001/auth/google/callback
DATABASE_URL=postgresql://user:pass@localhost:5432/overlay_db
REDIS_URL=redis://localhost:6379
JWT_SECRET=xxx
SESSION_SECRET=xxx
COOKIE_DOMAIN=xxx
NODE_ENV=production
PORT=3001

Notes

  • tasks.md was not found in the repo root; annofix.md contains the dual-view annotation implementation checklist
  • Extension was renamed from “Overlay Links” → “Overly” → “Rivews” across versions
  • The project evolved from the “.mkt” concept (~1 year ago) — an overlay annotation system with comments, drawings, tutorials, and public/private layers

0 items under this folder.