Menu

1 / 3

Building Privacy-First Personal Activity Insights in React Native

DEV Community: typescript·Ravi Seta·3 days ago
#xrQxXjG5
#devtotypescript#devto#dev#activity#insights
Reading 0:00
15s threshold

After implementing a 30-Day Activity Calendar in EdgeFit, I wanted to move beyond simply displaying fitness metrics.

The next milestone was Personal Activity Insights.

EdgeFit is my privacy-first fitness companion built using React Native, TypeScript, HealthKit, and SQLite.

What's new?

Activity Consistency

Understand how many days have recorded activity across a recent period.

Weekly Step Comparison

Compare average daily steps across consecutive weeks, while accounting for missing data.

Exercise Frequency

Understand how many different days contain recorded workouts.

The engineering challenge

One important lesson when working with health data is that missing data is not the same as zero activity.

If a metric is unavailable, treating it as zero could produce misleading comparisons and insights.

That's why I'm focusing on explainable calculations and data-coverage requirements.

Why not use AI immediately?

I want to explore on-device machine learning, but first I need a deterministic…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.