0.0.18 ā€¢ Published 3 years ago

hyperlab v0.0.18

Weekly downloads
43
License
UNLICENSED
Repository
-
Last release
3 years ago

hyperlab

šŸ— WIP

A frontend build system and microframework for Svelte designed for developer joy and velocity.

Features

  • šŸ”„ Ultrafast hot module replacement.
  • Static site generation.
  • Filesystem-based routing.
    • Nested routes.
    • Directory-based layout pages.
    • Global app layout.
  • Inlined global/critical CSS.
  • Data-fetching hooks.
  • HTML rendering.
  • An SPA router.
    • Preloads data.
    • Passes loading/fetching flags to components.
    • Components can wait on data or render eagerly.

Install

yarn add hyperlab # or npm

Develop

yarn run hyperlab

Runs your app with Snowpack.

Ship

yarn run hyperlab export

Generates static HTML pages and a client JS bundle with Rollup.

Roadmap

WIP

  • TypeScript and markdown/MDsveX support.
  • Error pages.
  • Plain js pages.
    • With jsdom support for prerendering.
  • More HTML features.
    • Partials.
    • Merge head/body with template/layouts.

Coming soon

  • "Get static routes" capability.
  • Generators for Netlify/Vercel/etc.
    • "Deploy on X" buttons.
    • Slugs, catchall routes and URL rewrites.
    • Abstraction for lambdas.
  • SEO defaults.
    • Meta tags.
    • Social cards.
    • Sitemaps.
  • PWA/service worker.
  • Per-component rehydration opt-out (i.e. server-only components).
  • SSR mode.
    • Vercel runtime integration.
    • Server hooks.
  • Better CSS extraction.
  • Support for React pages.