Urgent.News

What's breaking now, across thousands of outlets.

Tech

I built a free fitness tracker with no backend and no account — here's what I learned

A few months ago I got tired of every calorie tracker either paywalling basic features or demanding I create an account just to log a banana. So I built Nawtch — a free fitness tracker that runs entirely in your browser, stores everything locally via IndexedDB, and never asks you to sign up. Here's the messy, honest version of how it actually came together. It didn't start as "Nawtch" The app was…

A few months ago, the author grew tired of calorie trackers that either required paying for basic features or demanded users create an account to log their food. This led to the creation of Nawtch, a free fitness tracker that operates entirely within the browser and stores data locally using IndexedDB, without requiring any account sign-up.

The app's name was originally "Foop," but it was changed due to it being taken by other apps. The author emphasizes the importance of checking name availability before starting a project.

The initial development of Nawtch was done as a single-page application (SPA) with client-side JavaScript routing. However, this approach had two significant drawbacks once the author started considering growth potential. Firstly, there was no SEO value as Google could only index a single URL, regardless of the features present.

Secondly, the lack of individual entry points made it difficult for users to find specific features without going through the homepage. To address these issues, the author rebuilt Nawtch into a multi-page application, with separate pages for index, foods, weight, programs, and history. Each page had its own metadata and could be loaded independently, making the app more accessible and user-friendly.

A crucial technical consideration during the development process was the scope of IndexedDB, which is tied to the origin rather than the HTML file. This meant that splitting the app into multiple pages was technically feasible, but the author had to be cautious and audit every instance of in-memory state being passed between views, as it now needed to be handled separately due to the distinct page loads.

Despite the challenges, the author successfully migrated the app and ensured that data persisted seamlessly across page loads on the same domain.

When it came to monetization, the author initially planned a three-tier system: free (with limited features), a one-time Premium unlock, and a Premier subscription for cloud sync. However, upon further reflection, they realized that the entire purpose of Nawtch was to provide "no friction, no accounts, and no paywalls." Therefore, the author scrapped the monetization plan and decided to keep Nawtch free forever, with all features unlocked and no account required.

The primary sources of revenue for the app are non-intrusive banner ads and, eventually, a paid tier that specifically caters to cloud sync or AI-assisted logging. The author emphasizes the importance of monetization that aligns with the actual costs associated with providing these features, rather than imposing unnecessary paywalls.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

An AI-Supervised Remote Exam Went So Badly That 58,000 Students Must Retake It

An anonymous reader quotes a report from Ars Technica: Earlier this summer, nearly 160,000 applicants took the entrance exam for UNAM, Mexico's largest university.

  • 58,000 students at UNAM must retake AI-supervised remote exam
  • Exam results showed 16.3% scoring 100+, up from 3.5% historically
  • Technical commission formed to investigate widespread cheating suspicions

Samantha Morton Says She’s Been Out of Work Since Filming ‘The Odyssey’

“The politics of the industry has changed massively,” the 49-year-old actress adds of her career's ebbs and flows The post Samantha Morton Says She’s Been Out of Work Since Filming ‘The Odyssey’…

  • Samantha Morton hasn't worked since "The Odyssey"
  • She praised Nolan's invitation to "The Odyssey" set
  • Best known for Oscar-nominated roles in "Sweet and Lowdown"

How do other countries tax gas?

Even though Norway and Qatar are fundamentally different countries than Australia, they do much better than us when it comes to converting gas exports into cash for their citizens.

More from Monday 3 August →