dumbtv
dumbtv takes the ads, screen tracking and update nags out of your Fire TV over ADB. No root, none of your apps touched, every step can be undone. Free and open source.
Share PDFs securely with password protection and email-based access control.
SecurityTypeScript · CSSGitHub @artyprathamOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Loading the full README. The saved excerpt is shown below.
Secure, view-only PDF sharing with AES-256-GCM encryption, password protection, email-based access control, and watermarked viewing.
PDFs are encrypted with AES-256-GCM and stored directly in PostgreSQL (bytea). No S3 or external object storage required.
Backend — Node.js 20, Express, TypeScript, Prisma, Redis (ioredis), bcrypt, JWT, MuPDF (WASM), Sharp
Frontend — Next.js, React, TypeScript, Tailwind CSS, Zustand, Zod
Infrastructure — Neon Postgres, Upstash Redis, Render (API), Vercel (Web)Read the full README ↗Secure, view-only PDF sharing with AES-256-GCM encryption, password protection, email-based access control, and watermarked viewing.
Frontend (Next.js) → Backend (Express + TypeScript)
Vercel Render
│
┌──────────┼──────────┐
▼ ▼
Neon Postgres Upstash Redis
(PDFs + data) (sessions + rate limits)
PDFs are encrypted with AES-256-GCM and stored directly in PostgreSQL (bytea). No S3 or external object storage required.
Backend — Node.js 20, Express, TypeScript, Prisma, Redis (ioredis), bcrypt, JWT, MuPDF (WASM), Sharp
Frontend — Next.js, React, TypeScript, Tailwind CSS, Zustand, Zod
Infrastructure — Neon Postgres, Upstash Redis, Render (API), Vercel (Web)
sameSite: strict# Clone
git clone https://github.com/artypratham/SecureView.git
cd SecureView
# Install all dependencies (monorepo workspaces)
npm install
# Configure environment
cp apps/api/.env.example apps/api/.env
cp apps/web/.env.example apps/web/.env
# Edit both .env files with your credentials
# Generate a secure encryption key
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
# Copy the output into ENCRYPTION_MASTER_KEY in apps/api/.env
# Setup database
cd apps/api
npx prisma db push
cd ../..
# Run development servers
npm run dev:api # Backend on :3001
npm run dev:web # Frontend on :3000
apps/api/.env)| Variable | Description | Example |
|---|---|---|
DATABASE_URL | PostgreSQL connection string | postgresql://user:pass@host/db?sslmode=require |
REDIS_URL | Redis connection string | rediss://default:xxx@host:6379 |
JWT_SECRET | Secret for signing JWTs (min 32 chars) | Random string |
JWT_EXPIRY | Viewer session token expiry | 15m |
AUTH_TOKEN_EXPIRY | Admin auth token expiry | 7d |
ENCRYPTION_MASTER_KEY | AES-256 master key (64 hex chars) | node -e "console.log(require('crypto').randomBytes(32).toString('hex'))" |
PORT | Server port | 3001 |
NODE_ENV | Environment | production |
CORS_ORIGINS | Allowed origins (comma-separated) | https://your-app.vercel.app |
apps/web/.env)| Variable | Description | Example |
|---|---|---|
NEXT_PUBLIC_API_URL | Public API URL (used by browser) | https://secureview-api.onrender.com |
API_INTERNAL_URL | Internal API URL (used by SSR/proxy) | Same as above for Vercel |
| Method | Path | Description |
|---|---|---|
| POST | /api/auth/register | Register new user |
| POST | /api/auth/login | Login (sets httpOnly cookie) |
| GET | /api/auth/me | Get current user profile |
| POST | /api/auth/logout | Logout (clears cookie) |
| Method | Path | Description |
|---|---|---|
| POST | /api/documents | Upload PDF (multipart, max 50MB) |
| GET | /api/documents | List user's documents (paginated, max 100/page) |
| GET | /api/documents/:id | Get document details |
| PUT | /api/documents/:id | Update document settings |
| DELETE | /api/documents/:id | Delete document |
| POST | /api/documents/:id/emails | Add allowed emails |
| DELETE | /api/documents/:id/emails | Remove allowed email |
| GET | /api/documents/:id/audit-log | Get audit log (paginated) |
| Method | Path | Description |
|---|---|---|
| POST | /api/view/:slug/verify | Verify access (email + password) |
| GET | /api/view/:slug/pages/:num | Get watermarked page image (PNG) |
| GET | /api/view/:slug/info | Get document info (name, page count) |
| Method | Path | Description |
|---|---|---|
| GET | /api/admin/dashboard | Dashboard stats |
| POST | /api/admin/documents/:id/revoke | Revoke all active sessions |
| Method | Path | Description |
|---|---|---|
| GET | /api/health | Health check (DB + Redis status) |
npm run test:api # Backend tests
npm run test:web # Frontend tests
secureviewDATABASE_URLus-west-1 for Oregon)rediss:// connection string — you'll need it as REDIS_URLapps/api/render.yamlsync: false:
DATABASE_URL — from NeonREDIS_URL — from UpstashENCRYPTION_MASTER_KEY — generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"CORS_ORIGINS — your Vercel frontend URL (e.g., https://secureview.vercel.app)secureview-apiapps/api./DockerfileNODE_ENV=production
PORT=3001
DATABASE_URL=<your-neon-connection-string>
REDIS_URL=<your-upstash-redis-url>
JWT_SECRET=<generate-random-32-char-string>
JWT_EXPIRY=15m
AUTH_TOKEN_EXPIRY=7d
ENCRYPTION_MASTER_KEY=<generate-64-hex-chars>
CORS_ORIGINS=https://your-app.vercel.app
/api/healthThe Dockerfile automatically runs prisma migrate deploy on startup, so your database schema will be applied on first deploy.
vercel.json — no framework/build settings changes neededNEXT_PUBLIC_API_URL=https://secureview-api.onrender.com
API_INTERNAL_URL=https://secureview-api.onrender.com
Replace secureview-api.onrender.com with your actual Render service URL.https://your-api.onrender.com/api/health — should return {"status":"healthy"}CORS_ORIGINS on Render if your Vercel URL differs from what you initially setRender: Settings → Custom Domains → Add your API domain → Update DNS
Vercel: Settings → Domains → Add your frontend domain → Update DNS
After adding custom domains, update:
CORS_ORIGINS on Render to include the new frontend domainNEXT_PUBLIC_API_URL and API_INTERNAL_URL on Vercel to the new API domainMIT