svish.dev

The engineering behind it

Three projects, what was hard in each, and how it was verified. Specifics over adjectives.

Robo — a robotics simulator in the browser

TypeScriptMuJoCo (WASM)Three.jsBlocklyROS 2Vitest

Real rigid-body physics and a block-based programming environment that runs entirely client-side, so a beginner needs no install and the host needs no GPU servers. Open it.

  • Beginner on top, ROS 2 underneath. Blocks compile to async JavaScript you can read and edit. A rosbridge v2 client exposes /cmd_vel (with a 0.5 s watchdog), /odom, /scan, /joint_states, /clock and a camera as sensor_msgs/Image. Multi-robot scenes get namespaced topics.
  • Bring your own robot. MJCF and URDF import with validation: the new model is compiled before the old one is disposed, so a bad file shows an error and never kills the running scene. URDF joints without actuators get virtual PD motors.
  • Debugged by measuring. A rover crawled at 0.18 m/s instead of 0.6; instrumenting contacts showed the caster wheels touching the floor. Wheel jitter was fixed with the implicit-fast integrator plus rotor armature.
  • Performance. About 2% of one CPU core at 60 Hz in the rover scene (physics ≈ 0.08 ms and render ≈ 0.2 ms per frame, measured).
  • Verified. 22 headless tests run the real physics: every lesson is solved by a test, sensors are checked, and the ROS wire protocol is exercised against a fake WebSocket. CI runs typecheck, tests and build on every push.
  • Honest limits are written down in the README: no DDS nodes in the browser, 160×120 camera at about 5 Hz, no depth sensing yet.

Tend — a habit app for Android and Wear OS

Expo / React NativeKotlin (Wear OS)Health Connect

A calm habit tracker, shipped across phone, watch and home screen. Read about it.

  • One-tap workout logging, day streaks with freezes, and reminder nudges.
  • A Wear OS app with a quick-log tile, synced to the phone through a bridge, plus watch data via Health Connect.
  • A home-screen widget, release signing and a store listing prepared.

This site — sign-in that stores nothing

AstroWeb CryptoVercel

The brief was strong authentication with only a nickname and an email. The design that fits best stores no user data at all.

  • Passwordless magic link. The email link and the session cookie are HMAC-SHA-256 signed tokens with separate derived keys, so a sign-in link can never be replayed as a session. Links last 15 minutes; sessions 30 days.
  • Hardened edges. HttpOnly + Secure + SameSite cookies, same-origin checks, strict input validation, a honeypot, rate limits, constant-time signature checks, and a fixed redirect (no open redirect).
  • No database means nothing to leak. Your nickname and email live in your cookie and the email you receive, nowhere else. The trade-off, stated plainly: signing out of one device doesn't revoke the others until they expire.
  • Static first. Pages are prebuilt and cached on the CDN; only /api/* runs as functions. Auth logic is dependency-free and unit-tested (tampering, expiry, wrong key, token-type confusion).

Every commit behind this is in the build log.