DEV Community

William Wang
William Wang

Posted on

How I Built an AI Investment Principles Database with 1,377 Rules from 26 Legendary Investors

The Problem

Most retail investors lose money not because they lack knowledge, but because they lack discipline. I studied this problem for months and found that the greatest investors all share similar principles — but this wisdom is scattered across hundreds of books, interviews, and annual letters.

What I Built

KeepRule is a free, open platform that organizes investment principles from 26 legendary investors including Warren Buffett, Charlie Munger, Benjamin Graham, Ray Dalio, and Howard Marks.

Key Features

  • 1,377 Investment Principles organized by master and topic
  • AI Analysis Prompts — copy-paste prompts styled after each master's analytical framework
  • Investment Psychology Test — discover your investor personality type among 8 archetypes
  • Interactive Scenarios — "What would Buffett do?" decision-making exercises
  • 5 Languages — EN, ZH, ES, FR, AR

Tech Stack

  • Frontend: Nuxt 3 (SSR) + Vue 3 + TypeScript + Pinia
  • Backend: Go-Zero (Go microservices framework)
  • Database: MySQL + Redis (12h TTL caching)
  • AI: Claude Sonnet for analysis generation
  • Deployment: PM2 + Nginx on cloud server
  • SEO: 4,756 indexed pages, programmatic SEO for quote topic pages

What I Learned

  1. SSR is essential for SEO — Client-side rendering killed our Google indexing initially
  2. Programmatic SEO works — Auto-generating pages from structured data scaled to 2,000+ pages
  3. Content depth > content volume — One detailed principle page outperforms 10 thin ones
  4. Multi-language is a competitive moat — No competitor offers investing wisdom in 5 languages

Try It

Check it out at keeprule.com — completely free, no signup required.

The investment psychology test is especially popular: Take the test


What investment principles guide your decisions? I'd love to hear in the comments.

Top comments (0)