Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xantredev/preact-signals
Preact Signals: Supercharge your React/Preact development! Unleash the power of reactive programming with hooks, components, a TanStack query adapter, and more. Code smarter, not harder
https://github.com/xantredev/preact-signals
components javascript preact react reactive-programming standard-library typescript utilities
Last synced: 4 days ago
JSON representation
Preact Signals: Supercharge your React/Preact development! Unleash the power of reactive programming with hooks, components, a TanStack query adapter, and more. Code smarter, not harder
- Host: GitHub
- URL: https://github.com/xantredev/preact-signals
- Owner: XantreDev
- License: mit
- Created: 2023-02-04T19:50:01.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-16T10:12:14.000Z (9 days ago)
- Last Synced: 2024-12-20T16:02:46.896Z (5 days ago)
- Topics: components, javascript, preact, react, reactive-programming, standard-library, typescript, utilities
- Language: TypeScript
- Homepage: https://preact-signals.netlify.app/#/
- Size: 3.82 MB
- Stars: 72
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `@preact-signals` Monorepo
Goal of the project to provide comprehensive tooling for using [`preact/signals`](https://github.com/preactjs/signals)
### Playground:
[![image](./example.jpg) check in stackblitz](https://stackblitz.com/edit/vitejs-vite-h8ib6b?file=src%2FApp.tsx)
## Packages
- [`@preact-signals/utils`](./packages/utils): A package that contains a lot of utils for many purposes. I think it should be kinda stdlib for using preact signals. Utils contains: Solid js like resource, for handling async reactivity, Simple flat store implementation that wraps values into signals getters, Vue deep reactivity tracking, high order components.
- [`@preact-signals/safe-react`](./packages/react): Unofficial `@preact/signals` integration for react, that tries to be bullet proof.
- [`@preact-signals/query`](./packages/query): Tanstack query core preact signals bindings
- [`@preact-signals/unified-signals`](./packages/unified-signals/): This package reexports `@preact/signals-react`, with hooks shims in case of overwriting dependencies. And also polyfills newest preact signals features.## Contributing
Contributions are welcome!
1. Clone the repository: `git clone https://github.com/XantreDev/preact-signals.git`
2. Install dependencies: `pnpm install`
3. Transpile packages and start vite devservers: `pnpm watch`
4. Make changes
5. Commit changes to new branch
6. Run `pnpm changeset` and make PR## License
This project is licensed under the [MIT License](LICENSE).