# anys **Repository Path**: frustigor/anys ## Basic Information - **Project Name**: anys - **Description**: 简单灵活扩展的前端监控SDK - **Primary Language**: JavaScript - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 1 - **Created**: 2023-08-27 - **Last Updated**: 2024-03-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ANYS Most agile javascript application montior SDK. ## What's Anys? Anys is a javascript sdk which help developers, enterprise teams and website builders to monitor their applications or websites easly. The biggest characteristic of Anys is the architecture with agile design with which we can compose different features for different demands quickly. ## Idea 1. Core-Plugin architecture, core to provide main process and lifecycle, plugins to serve features 2. Plugins' features are controllered by initialize configuration 3. Plugin can be dependented by another 4. Logs formatter 5. Separate collection and reporting, so that we can arrange, store and filter logs in local 6. Small and light In the architecture, we have two space, and when we invoke the core SDK instance's methods, it will call plugins' hooks to finish their works. ![](assets/lifecycle.png) Plugin hooks and their order: - optins(): { key: value } - defines(): { key(): value } - filters(): array of filter() - init(): void - start(): void - write(log): void - read(message): logs - arrange(logs, allLogs): logs group (array of logs array) - send(logs, allPluginReadResults): void - clear(logs): void - stop() This architecture make the monitor more agile to compact your real demands.