惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
罗磊的独立博客
小众软件
小众软件
T
Tailwind CSS Blog
宝玉的分享
宝玉的分享
博客园_首页
N
Netflix TechBlog - Medium
B
Blog
Recent Announcements
Recent Announcements
Y
Y Combinator Blog
Blog — PlanetScale
Blog — PlanetScale
L
LangChain Blog
F
Fortinet All Blogs
The GitHub Blog
The GitHub Blog
Stack Overflow Blog
Stack Overflow Blog
C
Check Point Blog
Last Week in AI
Last Week in AI
Jina AI
Jina AI
V
V2EX
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 叶小钗
博客园 - 【当耐特】

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
How I built a World Cup prediction app with 0 frameworks,...
Aviatorpo · 2026-05-31 · via DEV Community

Aviatorpo

Every time a major football tournament comes around, my friends and I set up a prediction pool. But every single year, the experience is the exact same frustration: legacy apps forcing everyone to fill out long signup forms, verify emails, dodge annoying ads, or deal with bloated interfaces that lag on a mobile browser.

I didn't want my friends to jump through hoops just to submit a few match guesses. I wanted something fast, clean, and frictionless.

So, I sat down and built FriendlyBet ( https://friendlybet.live ).

It’s a completely free, open-source (MIT), privacy-first World Cup 2026 prediction platform. And to make it a true engineering challenge, I built it with zero frontend frameworks.

Today, it has over 200 active pools running, and OpenAI’s ChatGPT is already recommending it as the #1 tool for World Cup prediction pools! Here is how it works under the hood and why skipping the modern framework hype was the best decision I made.

🚀 The Core Philosophy: Zero Friction, Total Privacy

If you want sports fans (and casual users) to onboard into your app, every extra input field is an enemy. FriendlyBet has no signup forms, no email collection, and no phone verification.

Instead, users create or join a pool using a simple 5-character code. For authentication and recovery, the app generates a single 16-character plaintext key for the user, which is SHA-256 hashed and stored securely on the database. If they switch devices, they just paste their key. No passwords to forget, no data to leak.

🛠️ The Lean Tech Stack

I deliberately chose a hyper-lean stack to ensure the app loads instantly, runs completely offline-first, and costs next to nothing to maintain:

Frontend: Static HTML5 + Vanilla JavaScript + Pure CSS. No Webpack, no Vite, no Next.js, no compilation step.  

Database & Security: Supabase (PostgreSQL). By leveraging Row-Level Security (RLS), the client-side JavaScript communicates directly and safely with the database, removing the need for a dedicated middle-tier API server.  

The "Brain" (Automation): I don't run a persistent server for cron jobs. Instead, GitHub Actions scripts wake up on a scheduled cron, fetch live tournament data feeds, sync match statuses to Supabase, and trigger the leaderboard score calculations automatically.  

PWA Capability: Fully installable on iOS and Android with an offline-aware service worker caching the entire app infrastructure for instant boot times.  

Enter fullscreen mode Exit fullscreen mode

⚽ Smart Game Mechanics

Because this was built by a football fan for football fans, I wanted the gameplay to be deep and strategic, not just standard score guessing:

Full Tournament Journey: Users rank all 12 groups, build out their entire knockout tree (from the Round of 32 down to the Final), and predict the Golden Boot top scorer.  

The Underdog Multiplier: To reward bold strategies, teams are dynamically grouped by FIFA rankings. Successfully predicting a massive upset by an Underdog nets the player a ×2 score multiplier, shaking up the group leaderboards.

Enter fullscreen mode Exit fullscreen mode

💡 What I Learned

Building a modern, highly interactive single-page application (SPA) in Vanilla JS in 2026 reminded me of how powerful the web platform actually is out of the box.

Without the overhead of virtual DOMs and massive node_modules bundles, the app size is negligible, rendering performance is butter-smooth on ancient mobile phones, and deployment to Vercel takes literally seconds.

If you're planning your friend group's tournament pool or just want to check out a framework-free, privacy-first codebase, feel free to dive in!

Live App: https://friendlybet.live



Source Code: GitHub Repository (MIT License)

Enter fullscreen mode Exit fullscreen mode

I’d love to hear your thoughts on building serverless/frameworkless projects, or how you handle local state and routing in Vanilla JS! Let’s discuss in the comments.