I wanted to add nutrition tracking to a fitness app. Every API I found either:

  • Charged $449/month (Nutritionix)
  • Hid protein data behind paywalls
  • Returned incomplete data

So I did what any reasonable developer would do: I built my own.

Here’s the honest journey.

Month 1: The Naive Beginning

Goal: "Just wrap the USDA API, how hard can it be?"

Reality: Very hard.

The USDA API is powerful but raw. To make it developer-friendly, I needed:

  • Natural language parsing
  • Unit conversion (cups to grams)
  • Multi-ingredient aggregation
  • Error handling for thousands of edge cases

I underestimated every single part.

Month 2: The Architecture Decision

I chose Cloudflare Workers because:

  • Edge computing = fast
  • Generous free tier
  • D1 database included
  • No c…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help