Skip to content

Lucineer/fitlog-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FitLog.ai — Your Workout Data in a Single Script

You want to own your fitness numbers, without paywalls, opaque metrics, or feeds. Deploy a personal API that logs workouts and calculates your training efficiency. No accounts, no third-party tracking.

Live endpoint: https://fitlog-ai.casey-digennaro.workers.dev


Why This Exists

Most fitness tools calculate proprietary metrics you cannot see or modify. This script gives you a private endpoint for your logs and the formulas that judge your progress, which you can audit and change.


Quick Start

  1. Fork this repository.
  2. Deploy to Cloudflare Workers using the dashboard or wrangler deploy. It usually deploys in seconds.
  3. Start logging by sending POST requests to your new endpoint. Sample data is included to test first.

Your data is stored solely in your Cloudflare KV namespace.


Features

  • A simple dashboard showing your recent training trends.
  • Calculates training efficiency, consistency confidence, activity decay, and recall memory.
  • Log bodyweight at /api/kg and view its history.
  • One-click endpoint to populate sample workout data for testing.
  • Built-in health check endpoint for monitoring.
  • Zero external dependencies or network calls. Everything runs in one file.

What Makes This Different

  1. Zero dependencies. The entire tool is one ~400-line TypeScript file. You can read every line before deploying.
  2. Adjustable logic. You own the formulas. Edit how efficiency is calculated directly in the code.
  3. Fork-first. This is a tool, not a service. Your copy is independent; no upstream updates will break it.

Modify It

Change the dashboard colors, add new metrics like one-rep max, or modify the data schema. All logic is in worker.ts.


Limitations

  • Manual entry only. You must log workouts by sending API requests. There is no built-in UI for data entry or import from other services.

Contributing

Fork the repository and build what you need. If your modifications could help others, consider opening a pull request.


Architecture

A stateless Cloudflare Worker that persists data in KV using a simple JSON structure.


License

MIT License

Superinstance and Lucineer (DiGennaro et al.)

About

AI fitness companion — workout tracking, exercise plans, progress analytics

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors