hyperlab

0.0.18Β β€’Β PublicΒ β€’Β Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i hyperlab

Weekly Downloads

0

Version

0.0.18

License

UNLICENSED

Unpacked Size

22.1 kB

Total Files

9

Last publish

Collaborators

  • mksh.io