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
viewModeproperty (desktop/mobile) - Server and extension rendering are perfectly aligned
Tech Stack
| Layer | Technologies |
|---|---|
| Extension | Chrome Manifest V3, Vanilla JS, HTML5 Canvas, html2canvas |
| Server | Node.js, Express.js, PostgreSQL, Redis |
| Auth | Google OAuth 2.0, JWT, bcryptjs, Passport.js |
| Infra | Docker-ready, Coolify hosting |
Key Dependencies
express ^4.18.2— web frameworkpg ^8.11.0— PostgreSQL clientpassport ^0.6.0+passport-google-oauth20— OAuthjsonwebtoken ^9.0.0— JWTredis ^4.7.0— cachingaxios ^1.8.4— HTTP client for proxycheerio ^1.0.0— server-side DOM manipulationnanoid ^3.3.6— unique ID generation
Monetization Model
| Tier | Price | Target | Core Value |
|---|---|---|---|
| Free | $0 | Casual reviewers | 5 rivews (public/private), annotations, comments, shareable links |
| Reviewer+ | $4.90/mo | Power reviewers | Unlimited rivews, priority badge, 50MB storage |
| Outreach | $9.90/mo | Freelancers & consultants | 50 outreach rivews/mo, open/reply tracking, email templates |
| Business | $19.90/mo | Site owners | Embeddable widget, moderation, analytics, domain claiming |
| Agency | $39.90/mo | Agencies & teams | All 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 flowGET /auth/google/callback— OAuth callbackGET /auth/check— session checkGET /auth/me— dashboard data (stats, limits, user info)GET /auth/status— auth statusPOST /auth/logout— logoutPUT /auth/profile— update profileDELETE /auth/account— delete account
Overlay Routes (/api/overlays)
POST /api/overlays— create overlayGET /api/overlays/:id— get specific overlayPUT /api/overlays/:id— update overlay (owner only)DELETE /api/overlays/:id— delete overlay (owner only)GET /api/overlays/for-url— find overlays for a URLGET /api/overlays/user— user’s overlays with filteringPOST /api/overlays/:id/share— share overlayGET /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 commentPUT /api/comments/:commentId— update commentDELETE /api/comments/:commentId— delete comment
User Tiers & Quotas
| Tier | Max Overlays | Max Annotations/Overlay | Max Shares/Overlay |
|---|---|---|---|
| Free | 5 | 50 | 3 |
| Pro | 100 | 200 | 20 |
| Enterprise | Unlimited | Unlimited | Unlimited |
Annotation Types
| Type | Required Fields | Optional Fields |
|---|---|---|
| rectangle | x, y, width, height, color | viewMode, text |
| circle | x, y, radius, color | viewMode, text |
| pen | points, color | viewMode |
| highlighter | points, color | viewMode |
| text | x, y, text, color | viewMode, fontSize |
Version History
| Version | Date | Key Changes |
|---|---|---|
| 0.19 | Feb 2026 | Rebrand to “Rivews”, delete from dashboard, comment panel auth |
| 0.18 | Feb 2026 | Core 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=3001Notes
- tasks.md was not found in the repo root;
annofix.mdcontains 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