NGXS is a state management pattern + library for Angular
- β¨ Learn about it on the docs site
- π See it in action on Stackblitz
- π Checkout the sample application
- π§ Scaffolding application using NGXS Schematics
- π Read the blog posts
- β‘οΈ Development of NGXS Labs
- π Learn about updates from the changelog
- β€οΈ Give back by becoming a Contributor or a Sponsor
NGXS tries to make things as simple and accessible as possible. There can be a lot of boilerplate code in state management, thus a main goal of NGXS is to reduce boilerplate allowing you to do more things with less. It is also not necessary to be super familiar with RxJs.
The idea with this github organisation is to provide a place for the community to create libraries that augment the main framework with functionality that does not need to be integrated directly into the framework and therefore can evolve through their initial iterations of experimentation without affecting the main @ngxs/store library.
To get started locally, follow these instructions:
- If you haven't done it already, make a fork of this repo.
- Clone to your local computer using git.
- Make sure that you have installed NodeJS.
- Make sure that you have yarn installed.
- Run
yarn install
. - Run
yarn build:packages
.
- Run development mode
yarn build:packages --package store --watch
- Run serve integration examples
yarn start
- ...development...
- Run tests
yarn test:ci
- Create pull request
- Create a new project folder
packages/my-super-plugin
- Create template library with ngPackagr
- Add your project to package.json
- Run development mode
yarn build:packages --package my-super-plugin --watch
- ...development...
- Run build
yarn build:packages --package my-super-plugin
- Run tests
yarn test:ci
- Create pull request
If you have ideas for creating unique libraries, you can join us. Email us at ngxs.lead@gmail.com
. Or you can email us on Twitter or Slack.
Project | Package | Version | Links |
---|---|---|---|
NGXS CLI | @ngxs/cli |
||
NGXS Schematics | @ngxs/schematics |
Project | Package | Version | Links |
---|---|---|---|
NGXS Store | @ngxs/store |
||
NGXS Logger-plugin | @ngxs/logger-plugin |
||
NGXS Devtools-plugin | @ngxs/devtools-plugin |
||
NGXS WebSocket-plugin | @ngxs/websocket-plugin |
||
NGXS Form-plugin | @ngxs/form-plugin |
||
NGXS Router-plugin | @ngxs/router-plugin |
||
NGXS Storage-plugin | @ngxs/storage-plugin |
||
NGXS HMR | @ngxs/hmr-plugin |
Project | Package | Version | Links |
---|---|---|---|
NGXS-labs Emitter | @ngxs-labs/emitter |
||
NGXS-labs Immer-adapter | @ngxs-labs/immer-adapter |
||
NGXS-labs Dispatch | @ngxs-labs/dispatch-decorator |
||
NGXS-labs Async-storage-plugin | @ngxs-labs/async-storage-plugin |
||
NGXS-labs Entity-state | @ngxs-labs/entity-state |