Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tomatometro by Dojo Coding: Sentiment polling for electoral candidates

Tomatometro

The voting, scoring and ranking API of Tomatometro, where the public rates electoral candidates as fresh or rotten.

Public sentiment polling platform for electoral candidates.

License: Proprietary Framework: Next.js Storage: Vercel KV

API endpoints · Scoring · Architecture · Report an issue

Stack

  • Next.js 16
  • TypeScript
  • Vercel KV (Redis)

Architecture

src/
├── data/           # Static data (candidates, debates)
├── lib/            # Core logic (scoring, storage)
├── app/api/        # REST endpoints
└── types/          # TypeScript definitions

API Endpoints

Endpoint Method Description
/api/votos POST Submit vote
/api/ranking GET Get ranked candidates
/api/candidatos GET List all candidates
/api/stats GET Platform statistics

Scoring

score = (frescos / (frescos + podridos)) * 100

Default score when no votes: 50

Rate Limiting

  • 100 votes per hour per device fingerprint
  • Session-based duplicate vote prevention (24h TTL)

Environment Variables

KV_REST_API_URL=
KV_REST_API_TOKEN=
KV_REST_API_READ_ONLY_TOKEN=

License

Proprietary. Built by Dojo Coding.

Dojo Coding

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages