phantom-page

phantom-page

Routes that materialize from thin air

localhost:3000/
routes.js
init({
  routes: {
    '/*': (params) => `
      <h1>${params.path}</h1>
      <p>Generated at ${new Date()}</p>
    `
  }
});
One catch-all route turns any URL into a page
localhost:3000/hello

No static files exist for these URLs. A Service Worker intercepts navigation and your function generates the HTML on the fly. Type anything above — it all works.