Urgent.News

What's breaking now, across thousands of outlets.

Tech

I built a little social site with zero npm dependencies (and a cat runs it)

I've been building catcloud, a small corner of the internet where everyone gets their own page to decorate, kind of like old GeoCities/MySpace pages. It's run by Tuft, a purple pixel cat who is officially the CEO. He writes memos. You get a page at catcloud.party/@yourname that you can paint however you want: colors, layouts, pictures, or raw HTML/CSS. There are guestbooks, a mini pixel cat on…

Catcloud is a small online community where each user has their own decorated page, reminiscent of older platforms like GeoCities and MySpace. The platform's unique feature is its CEO, a purple pixel cat named Tuft, who oversees the site through written memos. Users can customize their pages with colors, layouts, images, or even raw HTML/CSS code, resulting in a wide range of creative designs.

One standout aspect of Catcloud is its pixel cat inhabitants, which visitors can interact with by petting and feeding. Additionally, the platform includes a trading card system, a small arcade, and a live hangout room where all the pixel cats move around together.

The secret to Catcloud's existence lies in its zero-dependency architecture. Built on plain Node 22, it utilizes the native node:http module for server management and node:sqlite for the database. There are no external frameworks or build steps involved. The frontend is also built using plain JavaScript, avoiding the need for additional libraries.

Hosting Catcloud is free, thanks to Cloudflare Workers' free plan. The entire application runs within a single SQLite-backed Durable Object, meaning there is just one server and one database. This setup allows the app to function both on Cloudflare's servers and on any standard PC running the application via npm start.

To ensure user safety when allowing raw HTML and CSS on personal pages, Catcloud employs a sandboxed iframe with a strict Content-Security-Policy. This setup prevents any malicious code from executing or affecting other users' accounts.

The platform also features pixel art, created as text grids in JavaScript. Each letter of the art is represented by a color, which the browser renders into outlined pixel sprites at 4x the original size. This method simplifies adjustments, as changing a hat's design becomes as easy as tweaking a string.

To prevent cheating in the arcade games, Catcloud implements a unique system. The server selects every round from a seed value, then re-checks the results when users finish playing. By replaying the round and comparing outcomes, it ensures that players cannot move faster than the game allows. If the numbers don't match up, no coins are awarded.

The live hangout room utilizes Server-Sent Events, which minimizes traffic by using shared seeds for the cats' walking paths. This approach means the server only sends messages like "this cat did something," rather than position updates. Each browser independently calculates the cats' positions based on these events.

Catcloud is currently in its early stages, with very few users online. If you create a page, feel free to share the link in the comments so the author can sign your guestbook. The author welcomes feedback on any confusing or broken aspects of the platform, inviting interaction at catcloud.party.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Security Audit Report: Reentrancy & Access Control Review: SSV Network

Security Audit Report: Reentrancy & Access Control Review: SSV Network Target Protocol : SSV Network (TVL: $12300.8M) Security Audit Report – Reentrancy & Access‑Control Review Protocol: SSV Network…

  • WithdrawStake and claimRewards functions lack nonReentrant guards, enabling stake draining
  • setOperatorFee and setOperatorAddress functions missing permission checks, allowing fee inflation

Mosala: a CV and conversation assistant for Africa's languages, running on your own computer

What I Built In the DR Congo, where I live, many skilled people have never written a CV. Electricians, phone repairers, mechanics and solar installers learn their trade on the job.

  • Mosala is a CV and conversation assistant for African languages on personal computers
  • Supports 150 languages across 54 African countries for language barrier solutions
  • Open-source code on GitHub for local Python and Ollama-based application

Planning: What Separates a Chatbot From an Autonomous Agent

Every vendor is selling you an "agent" these days. Strip the marketing and the real dividing line is embarrassingly simple: a chatbot answers, an agent finishes. One responds to a prompt.

  • Chatbots respond to single prompts, while agents maintain long-term goals.
  • Autonomous agents perceive, plan, act, and check results in a loop.
  • Agents are 3,500 times more expensive than chatbots for complex tasks.

Image Generation Explained: Choose a Model for DALL-E 3, SDXL, Flux, and Web Speed

Image Generation Explained: Choose a Model for DALL-E 3, SDXL, Flux, and Web Speed Short answer: choose the model that meets a measured quality threshold inside your web app's latency and retry…

  • DALL-E 3, SDXL, and Flux are potential models for web app image generation.
  • Evaluate models based on quality, latency, and reliability within web app constraints.
  • Implement a Generator interface for flexible model swapping without impacting app.

More from Sunday 25 October →