Show HN: Mochia, a virtual pet browser game, built with Rust, SolidJS, Postgres
Show HN (score: 15)Description
Technical Details:
* Backend monolithic Rust server runs on a single $5/month VPS
* Lean frontend with just 3 dependencies (SolidJS, Solid Router, and Mutative)
* Around 130,000 combined lines of code (frontend + backend)
* Rust server uses axum, sqlx, tokio, rand, strum, tungstenite (websockets)
* No server crashes or data loss in 3 years (thank you Rust + Postgres!)
* Almost all graphics (500+ assets) are SVGs for perfect detail at every zoom level
* Fully mobile responsive and playable on all modern browsers and devices
* Actor model for player actions enables trivial parallel, multi-core scaling
* Single page application that preloads entire game world on initial page load
* Instantaneous navigation between pages (no additional page fetches required)
* Lightweight game engine for minigames, powered by custom WebGL shaders
* Rust is the single source of truth for data structures shared between browser and server
* Custom derive macros used to autogenerate TypeScript bindings and binary decoding functions
* Binary WebSocket messages with custom protocol for client-server communication
* O(1) selection for nested, weighted-random item reward pools
* Minigames can be played without an account (but rewards can't be saved)
Features: * Completely free to play with no ads or tracking
* Multiplayer browser-based virtual world with 80+ locations to explore
* Dark mode toggle switch
* Simple minigames that smoothly run at your display's refresh rate
* Public leaderboards that track the top scores in each minigame
* Pet training system with turn-based card-based battle arena
* Dynamic player economy with player-run shops
* Player guilds that members can level up to unlock perks
* Abandoned mines area created by maze generation algorithm
* Create / adopt pets, adorn them with hats, give them pets, change their color, etc.
* 220 items to collect (food, toys, cosmetics, books, charms, tiny creatures, etc.)
* In-game currency with banking, auctions, stock market, and jobs system
* Villagers you can talk to, befriend, and complete quests and jobs for
* Optional push notifications (like for when you win an auction)
* 38 achievement avatars to unlock
* Social features: befriend others, send gifts, and share your recent activity
* NPC shops that restock over time (sometimes with very rare items!)
* Luck system with ways to boost your luck for better rewards
* Many puzzles that grant items or MP (currency) when solved
* Fishing, gardening, caves, random events, fountains, galleries, etc.
* Wheels to spin, treasure maps to complete, and secrets to explore!
* Much, much more but I don't want to spoil everything!
Links: * Website URL: https://mochia.net
* Community Discord: https://discord.gg/ub6z8YH866
* Gameplay Video: https://www.youtube.com/watch?v=CC6beIxLq8Q
* Screenshots Album: https://imgur.com/a/FC9f9u3
I'd love to answer any questions, hear any thoughts, or read any sort of feedback or criticism!More from Show
Show HN: UK Butchers Meat Price Tracker
Show HN: UK Butchers Meat Price Tracker Hey all!<p>Long time lurker, thought I would contribute back something to the community (at least the meat eaters in the UK). One thing that's been a pain for me to get a good understanding of is what the best price is for online butchers based around the UK. I like high quality meat (including some of the bigger cuts for kamado/bbq), and I'm willing to pay a premium however there isn't a single resource that would let me get an overview of what's available and price movements over time.<p>For my Xmas meat I didn't want to start building out a spreadsheet so I built a price tracker with quite a few convenience features to make it easy to search for certain cuts of meat across commonly mentioned butchers on Reddit and other communities.<p>If you find it useful let me know if there are any features that could help to make it even easier to find the cuts of meat that you're looking for!<p>Here's the tracker: <a href="https://offer-spider.onrender.com" rel="nofollow">https://offer-spider.onrender.com</a><p>Hosted on Render, built with Nextjs and SQLite. Spidering various custom e-com sites (WooCommerce, Shopify) on a daily basis.<p>My current TODOs: - Search is currently free-text OR. Add AND to allow focussing down a search, and select from facets/categories/taxonomy - Common search terms to pre-fill - Exposing price over time metrics - Further consolidation of SKUs to an internal taxonomy - More butchers - Expanding to other use cases outside of meat!
Show HN: sudocode – manage specs, tasks, and context-as-code for coding agents
Show HN: sudocode – manage specs, tasks, and context-as-code for coding agents sudocode is a lightweight context management system for coding agents that lives in your repo. It helps organize the chaos of human-AI collaboration by capturing user intent as durable specs and tracking agent activity as issues, all version-controlled with Git. This "context-as-code" approach reduces agent amnesia and accelerates development on long-horizon tasks.
Show HN: Phishcan, Canada's first open and free threat intelligence platform
Show HN: Phishcan, Canada's first open and free threat intelligence platform Phishcan provides crucial threat intelligence, and it currently tracks phishing domains for:<p>• Scotiabank, Desjardins, RBC, Interac…<p>• Telecom providers, provincial power and health services...<p>• Federal & provincial services, CRA, Canada Post, Service Canada, Revenue Québec...<p>How Phishcan works:<p>• Parsing millions of domains: Continuously scanning and analyzing vast numbers of domains to detect suspicious patterns and potential phishing sites.<p>• Monitoring threat actors : close watch on cyber‑criminal infrastructures and their new domain registrations.<p>• Data enrichment : adding contextual insights and connections to improve the information<p>• Feeds are updated every 12 hours.<p>• You can use the API freely at: <a href="https://phishcan.com/api-docs" rel="nofollow">https://phishcan.com/api-docs</a><p>Data is also available on: <a href="https://github.com/Phishcan/phishcan-data" rel="nofollow">https://github.com/Phishcan/phishcan-data</a><p>I plan to improve the whole platform with more data during my free time!
No other tools from this source yet.