https://github.com/qddegtya/llpage
📜 Page operation model (in memory) with LRU & lifecycle strategy
https://github.com/qddegtya/llpage
lifecycle llpage lru micro-frontends
Last synced: 3 months ago
JSON representation
📜 Page operation model (in memory) with LRU & lifecycle strategy
- Host: GitHub
- URL: https://github.com/qddegtya/llpage
- Owner: qddegtya
- License: mit
- Created: 2022-01-20T08:42:06.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-04T05:15:56.000Z (over 1 year ago)
- Last Synced: 2025-06-17T08:49:43.555Z (4 months ago)
- Topics: lifecycle, llpage, lru, micro-frontends
- Language: JavaScript
- Homepage:
- Size: 83 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
> 🚀 page operation model (in memory) with LRU & lifecycle strategy.
[](#contributors) [](https://coveralls.io/github/qddegtya/llpage?branch=master)  [](https://snyk.io/test/github/qddegtya/llpage)
* Docs
* [Motivation](./docs/motivation.md)
* [Principle](./docs/principle.md)
* [Api](./docs/api.md)# Install
```
$ npm install llpage
```# Feature
* ⚙️ Support `keep-alive` in memory(LRU)
* 🚀 High-Performance page operator with Doubly Linked List(DLL)
* 💗 Elegant api such as `open`/`close`/`closeAll`/`refresh`/`closeOthers`
* 👀 reactive inside
* 📱 Support page lifecyle (sync/async)# Example
```javascript
import { createLLPageManager, createPage } from 'llpage'const testPage = createPage({
data: {},async onCreate() {
await xx()
}async onStart() {
await xx()
}
})const ll = createLLPageManager({
size: 10
})////////// some page op //////////
ll.open(testPage)
ll.close(testPage)
ll.closeOthers(testPage)
ll.closeAll()
```# Real-World Example
|name|description|homepage|
|:--|:--|:--|
|example|simple examples inside this repo|[view](./examples/README.md)|# Awesome list
|name|description|homepage|
|:--|:--|:--|
|Rice|📦 out-of-box micro-frontends solution|[view](https://github.com/qddegtya/rice)|## Contributors
Thanks goes to these wonderful people ([emoji key](https://github.com/all-contributors/all-contributors#emoji-key)):
| [
Archer (炽宇)](http://xiaoa.name)
[💻](https://github.com/qddegtya/llpage/commits?author=qddegtya "Code") [🚇](#infra-qddegtya "Infrastructure (Hosting, Build-Tools, etc)") [🚧](#maintenance-qddegtya "Maintenance") [🎨](#design-qddegtya "Design") [📖](https://github.com/qddegtya/llpage/commits?author=qddegtya "Documentation") |
| :---: |This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!