A Progressive Web App (PWA) designed for Flesh and Blood and other trading card games. Built with a focus on speed, aesthetics, and physical playability.
🌐 Live Demo: https://fab-lifecounter.fly.dev/
This application is a full PWA, meaning it can be installed on your device and used just like a native app.
- Open the Live Demo in Safari.
- Tap the Share button (square with an up arrow).
- Scroll down and tap "Add to Home Screen".
- Tap Add in the top right corner.
- Open the Live Demo in Chrome.
- Tap the three dots in the top right corner.
- Tap "Install app" or "Add to Home screen".
- Open the Live Demo in your browser.
- Click the Install icon in the address bar (usually on the right side).
- Mirrored UI: Designed for two players sitting across from each other. The top zone is rotated 180° for effortless reading.
- Visual Delta Indicators: Shows exactly how much life was gained or lost (e.g.,
-5,+3) so players don't have to track changes in their heads. - Smart History: Automatically groups rapid point changes into single events, keeping your game log clean and readable.
- Dynamic Themes: Generates vibrant, distinct HSL colors for each player every session to ensure perfect visual contrast.
- PWA Ready: Install it to your home screen for a full-screen, native-app experience. Works offline once cached.
- Screen Wake Lock: Automatically prevents your device from sleeping during long matches.
- Premium Aesthetics: Features a modern glassmorphism design, smooth animations, and ultra-bold typography for maximum legibility.
- Node.js (v18 or higher)
- npm or yarn
-
Clone the repository:
git clone https://github.com/muunleit-projects/fab_lifecounter.git cd fab_lifecounter -
Install dependencies:
npm install
-
Run the development server:
npm run dev
-
Build for production:
npm run build
The project includes a multi-stage Dockerfile for easy deployment using Nginx:
docker build -t fab-lifecounter .
docker run -p 8080:80 fab-lifecounter- Vite: Ultra-fast frontend tooling.
- Vanilla JavaScript: Lightweight and high-performance.
- Vanilla CSS: Custom design system with glassmorphism and HSL color logic.
- Service Workers: Offline support and asset caching.
- Wake Lock API: Persistent screen activation.
This project is licensed under the MIT License.
Built for players, by players. ⚔️