Skip to content

Verificación sin login + deploy en Vercel - #1

Open
leocagli wants to merge 7 commits into
mainfrom
vercel-deploy
Open

leocagli wants to merge 7 commits into
mainfrom
vercel-deploy

Conversation

@leocagli

@leocagli leocagli commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

Qué cambia

  • Verificación abierta en /: se pega un texto, titular o link, sin wallet ni cuenta.
    • GET /api/verify?q= busca chequeos publicados (Google Fact Check, se activa con GOOGLE_FACTCHECK_API_KEY) y cobertura en medios (Google News RSS).
    • Las calificaciones se pasan a falso / engañoso / verdadero con typesafe-ai/jev vía Vercel AI Gateway; si no está disponible, se muestran tal cual.
    • Historial solo en el navegador.
  • Vercel: la base JSON trabaja en /tmp (disco de solo lectura), / sirve la página estática y .vercelignore deja afuera node_modules.
  • GDELT quedó descartado: limita a una consulta cada 5 s por IP y en IPs compartidas devuelve 429.

La mini-app anterior (src/mini-app) queda en el repo pero ya no se publica: cargaba ethers desde cdn.ethers.io, que no existe más.

Al mergear

Con el proyecto conectado, cada push a main publica en https://trustblock.vercel.app.

🤖 Generated with Claude Code

CosmosPay-org and others added 3 commits October 7, 2026 19:13
- databaseService uses /tmp on Vercel (read-only filesystem), seeded from data/database.json
- serve src/mini-app from public/ so it loads at /
- .vercelignore keeps node_modules and build artifacts out of the upload

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Express answers every unmatched route with its JSON 404, so / never reached
public/index.html. A Vercel rewrite sends / to the static mini-app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- GET /api/verify?q= takes text, a headline or a link (uses the page title)
- fact-checks from Google Fact Check Tools (ClaimReview), active when
  GOOGLE_FACTCHECK_API_KEY is set
- coverage from Google News RSS; when every keyword is required and nothing
  matches, retries with 4- and 3-word combinations
- ratings are mapped to false/misleading/true with the typesafe-ai/jev model
  via Vercel AI Gateway; if it is unavailable the raw ratings are shown
- new public page (no wallet, no account), history kept in the browser
- GDELT dropped: it allows one request per 5 s per IP and returns 429 on shared IPs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
trustblock Ready Ready Preview Oct 8, 2026 12:15am UTC

@gitar-bot

gitar-bot Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Gitar is working

Gitar

…arch

- POST /api/image takes an uploaded image (resized in the browser to 1024 px
  JPEG, under Vercel's 4.5 MB body limit) or an image link
- asks a Roboflow classification model; configurable with ROBOFLOW_API_KEY,
  ROBOFLOW_MODEL (e.g. "fnd-classifier/1") and ROBOFLOW_AI_CLASSES
- shows the AI probability as an estimate, never as proof
- reverse image search links (Google Lens, TinEye, Bing) for the SIFT "trace" step

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- two models that run in the browser with transformers.js (no account, the
  image never leaves the device): Detectly v1 for general images and a ViT
  deepfake model for faces
- each option says what it is for, its size and how it did on a known set
  (Detectly 4 of 6, deepfake ViT 3 of 6)
- Roboflow stays as a third option, enabled only when the site has a key
  (GET /api/image/status)
- "artificial" added to the default AI class names

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Runs after every production deploy on Vercel, daily, and on demand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The reverse-search list used the class "links", the same as the header nav,
so the nav picked up flex-direction: column. The list is now "rlinks".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
Preview — 59e8f0c1 Deployed Oct 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants