Skip to content

Add lightweight container rating/upvote system using serverless KV storage #78

@ajnart

Description

@ajnart

Feature Suggestion:
Add a simple, database-free rating/upvote system for containers using serverless edge storage (e.g., Cloudflare Workers KV, Vercel Edge Config, or similar).

Why:

  • Help users discover popular and well-tested containers
  • No traditional database infrastructure needed
  • Minimal hosting overhead using free-tier serverless offerings
  • Community validation without complex marketplace features

Proposed Implementation:

  • Simple upvote counter for each container definition
  • Optional: Basic rating (1-5 stars) stored in KV pairs
  • Key format: container:{id}:upvotes or container:{id}:rating
  • Anonymous upvoting with IP/session throttling to prevent spam
  • Display upvote counts and ratings in the container gallery UI
  • Optional: Sort/filter containers by popularity or rating

Technical Approach:

  • Use Cloudflare Workers KV (free tier: 100k reads/day, 1k writes/day)
  • Or use Vercel Edge Config / Deno KV for similar functionality
  • Simple REST API endpoint: POST /api/vote and GET /api/stats/:containerId
  • Client-side caching to reduce KV reads
  • No user accounts needed - just simple community metrics

Benefits:

  • Zero database maintenance
  • Extremely low hosting costs (likely free tier sufficient)
  • Fast edge-based responses
  • Easy to implement and iterate on

This would provide community feedback signals without the complexity of a full marketplace or comment system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions