plack

The 2 kB Javascript Framework for Modern Web Applications

Usage no npm install needed!

<script type="module">
  import plack from 'https://cdn.skypack.dev/plack';
</script>

README

plack

The 2 kB Javascript Framework for Modern Web Applications

GitHub Workflow npm bundle size npm NPM codecov

Motivations

I always wondered if we can get a working solution for modern React API with minimal footprint. I was using Preact in some of my projects, which combined with hooks clocked at about 5 kB. In many of these projects, I was hardly reaching out to preact-compat. At this point, I started wondering if we can achieve < 5 kB if we forgo some react compatibility. plack is an attempt to get a working solution using just JSX, Functional Components and Hooks under 2 kB.

What's Included?

  • JSX and Functional Components
  • Client Side Hydration
  • Hooks (useState, useReducer, useMemo, useRef, useCallback)

What's Coming?

  • use{Effect,LayoutEffect} Hooks
  • useContext Hook
  • Server Side Rendering

License

plack is licensed under the MIT License.

Documentation is licensed under Creative Common License.

Created with ❤️ by @osdevisnot and all contributors.