Running the frontend on the user’s device

Server-side rendering (SSR) frameworks help with search indexing, yet Node.js SSR runtimes can consume 500MB to 1GB of server RAM to render HTML strings for visitors.

While designing CommunityWeave, I built a pre-compiled client instead to keep server memory low.

Running the Interface on the Device

I compile the Vue 3 and Vite frontend into static assets, then package it with Capacitor as an Android APK or serve it as an installable web app:

  • The user's phone handles DOM updates, view state, and interactive components in device RAM.
  • The server runs no JavaScript runtime and holds no render buffers.
  • My Django REST API answers requests with compact JSON payloads.

Lower Hosting Cost

A modest 1GB RAM VPS handles hundreds of mobile users when the server reads SQLite and returns JSON. Letting the user's phone render the interface keeps server bills low and screens responsive.

← Journal