GitHunt
GG

ggorlen/vanillaspa

Vanilla JS single page app experiment

Vanilla SPA

POC vanilla SPA experiment

Resources

TODO

  • "/gists/:username" format support, can use https://www.npmjs.com/package/route-parser
  • find a better way to handle elements no longer existing and fetch calls needing abortion after a navigation occurs.
    • maybe return a promise and reject it if the page reloads.
    • or return/store references to any elements we care about in a systematic way as a cleanup function.
      • kind of getting into virtual DOM territory... could try simple hooks?
  • Sanitize inputs with https://www.npmjs.com/package/escape-html
  • Wrapper for fetch

Languages

JavaScript86.0%CSS7.3%HTML6.7%

Contributors

Created May 25, 2025
Updated January 25, 2026