Developer shares lessons from building a path-based static hosting platform
A developer built a static hosting service called Plopino that serves user boards under URL paths rather than subdomains, avoiding wildcard certificates and per-board DNS setup. Key challenges included correctly handling relative URLs in user-uploaded HTML, where root-relative links could accidentally point to the host site's own file space. File uploads required careful encoding logic to support folder drags and international filenames, particularly for Chinese-locale machines using GB18030 encoding. Thumbnails and Office document previews were handled through persistent worker pools and a single headless Chromium instance to avoid performance bottlenecks. The platform also supports 20 languages including RTL scripts, with automated tests enforcing translation key order, placeholder consistency, and BCP-47 language tag validity.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in