Vibe Codes

Investipet

A paper-trading Tamagotchi: feed a dinosaur whose mood is your algorithms' performance.

$50.00

App kit · The files to make your own copy · made by DanVelasko

Updated 13 Oct 2026 · version 2

No reviews yet · 0 comments

Used for real
How developed it is, graded against a fixed rubric — hover or tap the stars to see how.
Get it · $50.00 See it running Ask DanVelasko to build yours

Pay once, keep it forever. Card payment through Stripe.

What it does

Investipet is a paper-trading Tamagotchi. You keep a cartoon dinosaur. You feed him, play with him and put him to sleep — and his hunger, energy and happiness bars are driven by how a portfolio of trading algorithms is actually doing. A hungry dino is an underperforming portfolio.

The algorithms are real. They run on real daily prices for about 11,500 US stocks and ETFs, server-side, inside a locked-down sandbox, with a trusted engine doing the position sizing and the protective stops. A user writes rules in any language — JavaScript, Python, or plain English — pastes them in, and the platform translates and test-runs them before they are allowed to trade. There is a "Copy AI prompt" button that hands any AI chat the exact market data and code shape the platform accepts, so a complete beginner can get a working algorithm out of ChatGPT and paste it straight back in.

What is included: the entire front end (one self-contained HTML file — no build step, no framework, no npm install), 47 Supabase Edge Functions, 47 SQL migrations across 53 tables, a zero-dependency Node backtesting harness with 99 passing tests, screenshots, logo and icons, and a 20-section handoff document.

What you must set up: a Supabase project (free tier is enough to start) and somewhere to serve one HTML file. Free Alpaca and FRED keys get the market data flowing. Stripe keys only matter if you want the marketplace. Full step-by-step setup is in docs/HANDOFF.md.

What is honestly not finished. This ran in production for about four months with a handful of real users and roughly 300 paper trades, and the paper engine, the pet, the learning quiz, the social features and guest mode all work. But the live-trading path has never placed a real order, the in-app marketplace has never made a sale, and three of the nine data feeds are stale or broken (one needs a free API key; two broke on an upstream change). The 47 edge functions have no automated tests. The handoff names every one of these, with evidence.

What you are really buying: not a turnkey business. A working, in-production, multi-tenant paper-trading engine with a genuinely original interface, four months of real iteration behind it, and no dependencies to rot.

What you get

The screensEverything you see and tap: pages, buttons, layouts, styling.
The engineWhat makes it work behind the scenes: data, accounts, payments, servers.
InstructionsStep-by-step setup and a guide to changing it into your own.
Pictures & logoScreenshots, logo files, colours and fonts.

Use and change it in your own and your clients' projects. Don't resell or share the kit itself — every copy is stamped with an id traceable to its purchase.

Straight talk

What the maker's AI found when it looked at the app, after running it. Vibe Codes checks this against the package.

75% complete

A genuinely original, genuinely working product that has been live for four months with real users and about 300 paper trades behind it. The paper engine is the real thing: a trusted sizing-and-stops engine wrapped around a locked-down sandbox that runs strangers' code against real prices for 11,500 symbols, with a Tamagotchi on the front that makes portfolio health legible at a glance. It has no build step and no npm dependencies, which means nothing in it rots. Buy it for the engine and the interface idea. Do not buy it expecting a finished business: the live-trading path has never placed an

WorksThe pet: idle/eat/sleep/play animations, hunger/energy/happiness bars driven by portfolio health, sleep that earns energy over wall-clock time · Market Academy learning quiz with per-account level and XP · Home performance curve over 1D/1W/1M/6M/1Y, press-and-drag to read any single day · Multi-algorithm paper portfolio: cash pool plus a per-algorithm cash sleeve with its own allocation · Paste an algorithm in any language; it is translated and test-run in a QuickJS sandbox before it can trade · 'Copy AI prompt' hands any AI chat the platform's exact data and code contract · Trusted-engine risk rails: 2.5xATR protective stop, 34% per-name exposure cap, $1M minimum daily dollar volume · Sell a position back to cash with the realised profit or loss · Market data for ~11,500 US symbols with up to 500 daily closes each · News, SEC filings and short-volume feeds, all fetching successfully today · Leaderboard, friends by dino name, PvP algorithm battles, public profile pages · Guest mode: paper book only, no dollar amounts, first-tap coach marks, persistent banner · In-app bug reporting with an owner-only queue · Global killswitch independent of paper/live mode · 99 passing unit tests and a walk-forward backtester that runs on synthetic data with no credentials
Not working yetMacro data has never worked: 94 consecutive failures. This is the one open data bug and the fix is one free API key — set FRED_API_KEY. The app's own log says so on every failure. · Live trading has never placed a real order: live_orders and broker_connections are both empty · Per-user Alpaca sandbox brokerage accounts fail — the Broker API returned 401 and alpaca_accounts is empty · The ML pipeline never learns: training_samples is empty · Implied volatility is inert until Public.com credentials are supplied; equity_iv is empty · audit_log holds one row — the order audit trail is not being written · No realtime anywhere: the UI polls, so two people viewing the same screen do not see each other's changes
Not testedThe entire marketplace money path: 0 sales, 0 rentals, 1 listing. Stripe Connect and the AES-GCM code sealing are written but never exercised end to end · The Big Baller subscription: 1 row, never charged · Live mode arming, the live order gates and the live mirror tables · All 47 edge functions have no automated tests of any kind · Deploying this package into a fresh Supabase project from scratch — the setup steps are written from the code, not from a clean-room run · Behaviour above roughly 50-100 active algorithms, where the single-invocation daily tick is expected to need a queue
Needs these servicesSupabase (free tier ok) — auth, Postgres, edge functions, cron. Required. · Any static host for one HTML file; it ran on Railway at about $5/month. Required. · Alpaca Market Data (free tier ok) — daily bars and quotes · FRED (free) — macro series; without this key the macro feed fails every run · Alpaca Broker API (free sandbox) — per-user brokerage accounts; currently returning 401 · Robinhood agent MCP (free, needs an account) — fallback price history and earnings · SEC EDGAR / FINRA / Nasdaq Trader (free, no key) — filings, short volume, symbol lists. EDGAR requires a real contact email in the User-Agent; put your own in c · Public.com (free with an account) — implied volatility. Their docs describe the individual API as for personal, non-commercial use; settle that before relying o · Anthropic API (pay per use) — optional, translates non-JavaScript algorithms · Stripe (per transaction) — optional, only the marketplace and subscription need it
CollectsEmail address and password at sign-up, handled by Supabase Auth · A chosen pet name, which doubles as a public username and a public profile URL · Every paper trade, position and equity snapshot for the signed-in user · Learning-quiz progress per account · Bug reports, capturing the reporter's user id, the page, the build and the browser user agent · Broker OAuth tokens and credentials, if a user connects a brokerage — the most sensitive rows in the system · Nothing is sent to any analytics service: the app ships no tracking code
Good to knowIt executes code written by its users. That is the product, not an accident: algorithms run in QuickJS compiled to WASM with a 3-second CPU budget, a 160MB ceiling, no network and no filesystem, and a trusted engine does all position sizing, exposure caps and protective stops. Understand that bounda · Rented marketplace algorithms are stored AES-GCM encrypted and decrypted at run time. That is the feature, not obfuscation, but it means the server decrypts and executes stored payloads. · Row Level Security is enabled on every table with no policies, which is deny-all. All access goes through service-role edge functions, so the database enforces nothing and the entire security model is the auth check at the top of each function. A function that forgets its check exposes a table to an · The cron_key is an owner-equivalent bearer token: four functions map a caller presenting it onto the owner account. Treat it like a password. · The settings table is a singleton, so execution_mode and the killswitch are platform-wide rather than per-user. This needs to change before more than one person trades live. · The CSP allows static.cloudflareinsights.com because the original deployment sat behind Cloudflare, which injects its beacon at the edge. No analytics code is in this package; remove the allowance if you are not on Cloudflare. · Four retired functions ship as inert 410 stubs because Supabase cannot delete functions through its API. Each explains what it did and why it was retired. · The front end is one 1.9MB file that must download completely before anything renders. · supabase-js is imported as a floating major from esm.sh and resolved at deploy time; pin it if you need reproducible deploys. · This is a trading application. It is paper-only by construction — the broker's paper hosts are hardcoded, not configured — so taking it live is a code change somebody has to read and be responsible for. The live path has gates, rails and a killswitch, and it has never placed an order.

Reviews

No reviews yet. Used it? Be the first.

Peer reviewed: only people who bought, downloaded or opened it through Vibe Codes can score it, part by part — the stars are the average of the parts. Anyone signed in can comment below.

Sign in to review

Tech specs

· for developers, and for when you are ready
Built with
Node.js, Supabase, Postgres, Railway, Single file
License
LicenseRef-VibeCodes-NoResale
Includes
The screens · The engine · Instructions · Pictures & logo
Live at
https://www.investipet.com ↗
Listed
Last reachable

Development score: 3 of 5 (6/10 on the rubric) — Used for real

Four months and 233 commits of sustained work, live in production with real users and about 300 paper trades, with migrations, error handling, documented deploys and 99 passing unit tests. It falls short of a 7 because the production trading path has no automated tests at all and seven separate authorization holes were found and closed in the five weeks before packaging, two of them during this packaging run.

Setup guide

🔒 Step-by-step setup unlocks when you buy the kit.

Full handoff document · 41k characters

🔒 The complete technical write-up — how it's built and how to run, change and deploy it — unlocks when you buy the kit. What's inside:

  1. 1. Overview
  2. 2. Feature inventory
  3. The pet
  4. The portfolio
  5. Social and marketplace
  6. Live trading
  7. Data feeds
  8. 3. Architecture
  9. 4. Data model
  10. 5. Auth and permissions
  11. 6. Payments and money
  12. 7. External services
  13. 8. Environment variables
  14. 9. Setup from zero
  15. 10. Deploying
  16. 11. Testing
  17. 12. Known bugs and limitations
  18. 13. Security review
  19. Found and fixed before packaging
  20. Fixed earlier in the project's life (within the last five weeks)
  21. Still open — a buyer should fix these
  22. Disclosed, kept by design
  23. Dependency provenance
  24. Asset rights
  25. 14. Performance and scale
  26. 15. Code map
  27. 16. Decisions and trade-offs
  28. 17. How to make it yours
  29. 18. Roadmap
  30. 19. Changelog

Package contents

The screens
ui/ — The entire front end as one self-contained 1.9 MB HTML file — the pet, the stat bars, the performance curve, the algorithms screen, auth, guest mode and the landing page. No build step, no framework, no dependencies. Includes sprite sheets, animations, icons and the PWA manifest.
Instructions
docs/ — A 20-section handoff covering architecture, the data model, auth, setup from zero, deployment, a full security review with what is still open, performance limits, a code map, and the first ten things a buyer will want to change. Plus the original project notes.
Pictures & logo
assets/ — Six 1600x3464 screenshots taken from the running production app, the logo and app icon, and a design-tokens file listing every colour and the typography — including which font has an unresolved licence.
The engine
backend/ — 47 Supabase Edge Functions (the trading engine, the QuickJS sandbox for user algorithms, market-data sync, risk sweeps, social, marketplace and Stripe wiring), 47 SQL migrations across 53 tables, the Railway static host with its CSP and security headers, and a zero-dependency Node backtesting harness with 99 passing tests.

All tags

This page as Markdown · for assistants and agents, start at /llms.txt

Comments

Sign in to comment

No comments yet.

List your app