Lurker News
Here's a little side project I’ve been working on: https://totalrealreturns.com/ The Total Real Returns chart demonstrates the preservation or growth of real wealth more clearly than conventional (nominal-dollar, price-only) stock charts, because: (1) we include the effects of inflation-diminished purchasing power, and (2) we include the effects of reinvesting dividends from the initial investment.

I found it harder to explain the y-axis in words than it was to do the math, so please let me know if you think the "baguettes" explanation on the homepage helps.
I was up until 4am ET finishing some features on this, and then at 8:30am ET the BLS released the new CPI numbers through their API: https://download.bls.gov/pub/time.series/cu/ and I was able to manually re-run my daily cronjob with the new numbers, so it's up to date! If you catch any bugs, please let me know via the “Report a bug” link in the footer of every page.
Some FAANG examples: https://totalrealreturns.com/s/META
https://totalrealreturns.com/s/GOOGL
https://totalrealreturns.com/s/AMZN
https://totalrealreturns.com/s/AAPL
https://totalrealreturns.com/s/NFLX
Comparing three Vanguard treasury funds, showing vividly the impact of bond duration (short-term, intermediate-term, long-term) on both risk and reward: https://totalrealreturns.com/s/VFISX,VFITX,VUSTX

Comments (272) 48 threads

Earlier comments
jackallis#
amy "only issue" is now what? sure chart looks to good to look; there is good info but what actions do i take now that inflation eats everything, like salt to metal.
nestvine1 reply#
What tech stack are you using? The speed is impressive.
compumike1 reply#
BACKEND:

It's about 3000 lines of Crystal code https://crystal-lang.org/ -- it's been an absolute dream to program in. Ruby-like syntax, statically compiled performance. Nice standard library. Would recommend :)
Performance == caching
Local ephemeral filesystem for shortest-term caching.
Redis for shared medium-term caching and locking.
S3-compatible object storage for longest-term caching (for raw data feeds pulled every evening by a cronjob).
FRONTEND:
Bootstrap
uPlot https://github.com/leeoniya/uPlot
Just a sprinkle of inline JS+CSS on the page.

leeoniya1 reply#
uPlot spotted in the wild! <3
compumike#
uPlot is great! Thank you for building it! :)
zitterbewegung#
This is neat you can see the s&p having gained approximately 6 percent on average and inflation targeted almost to be 2 percent.
dcolkitt#
Would be interesting to insert the classic 60/40 stock/bond portfolio. Maybe also potentially a commodity index as well.

Load more comments