plack
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

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.

Package Sidebar

Install

npm i plack

Weekly Downloads

1

Version

0.0.8

License

MIT

Unpacked Size

60.4 kB

Total Files

15

Last publish

Collaborators

  • osdevisnot