展示HN:在一个HTML文件中,一个鼓励我的孩子投资的应用程序。
Show HN: In a single HTML file, an app to encourage my children to invest

原始链接: https://roberdam.com/en/dinversiones.html

受俄罗斯谚语“奶来时灵魂也来,奶去时灵魂也去”的启发,一位父亲想为儿子寻找一种超越传统学校教育的金融素养培养方式。他没有给儿子购买生日礼物,而是鼓励他用现金来开始投资。 为了使这个概念更具体,他用HTML创建了一个名为“D-investments”的简单应用程序,并安装在一个旧智能手机上。这个“仪表盘”被安装在冰箱上,以每日、每周和每月收益的形式直观地显示投资随时间增长的情况。 该应用程序允许输入投资金额、利率和开始日期,自动计算并展示复利的力量。父亲希望通过扮演“投资代理”的角色,并使用真实的利率,让儿子深刻理解时间和投资如何协同工作——他认为这比任何物质礼物都更有价值。该应用程序易于访问和安装,是一个渐进式Web应用程序。

相关文章

原文

“What comes with the milk, leaves with the soul”
— Russian proverb.


Access the app:
Click here to open and install D-investments

This is how the icon will appear on your phone

This is how the icon will appear on your phone

One thing that school doesn’t teach you (not even high school) is how to manage your personal finances.

As my eldest son’s birthday was approaching, we suggested that instead of asking for physical gifts, he ask for their equivalent in money. That way, he gathered a decent amount of capital for his first investment adventure.

I explained to my kids that investing is like having a magic box that generates more money over time. To make it more visual and interactive, I decided to create a small app where they could see their investment grow day by day.


My first idea was to build a physical piggy bank with a display, showing the accumulated amount. However, that mixed up the concept of saving with investing, and also required buying extra hardware.

So I looked for a quicker, cheaper way: revive an old smartphone and create a simple app using plain HTML.

The result was D-investments, a mix between Diversions and Investments.


The app is essentially a single HTML file that installs on the phone as a PWA (Progressive Web App).

The phone is attached to the fridge and works as a panel or dashboard where my kids can see their money growing each day.

I act as their investment agent, assigning realistic interest rates — high enough to keep them motivated, but moderate enough to reflect how the real world works.


The app includes a screen where you can enter:

  • The kids’ names
  • The invested amount
  • The interest rate
  • The start date
Configuration screen

Configuration screen

With that data, the app automatically calculates and displays:

  • Daily gain
  • Weekly gain
  • Monthly gain
  • Total updated balance
D-iNvestments dashboard screen

Dashboard view installed on the fridge showing daily growth.


  • An old smartphone
  • A suction mount to attach it to the fridge
Affordable phone mount

Affordable phone mount - Price on AliExpress: $0.90

  • The D-iNvestments app, in HTML format
Phone installed on the fridge

D-iNvestments showing daily capital growth.


The process is as simple as opening the link from a smartphone and tapping “Install” when prompted by the browser.
From then on, it behaves like a native app.

Access the app:
Click here to open and install D-investments


The goal wasn’t just to teach my kids the value of money, but to show them visually how investment and time work as allies.

Each day, as they watch their small fund grow, they grasp the magic of compound interest — and that, more than any gift, is a lesson I hope will stay with them for life.

💬 Want to comment or improve the app? Contact me at:
@roberdam

联系我们 contact @ memedata.com