JavaScript Variant¶
See also: API Reference (auto-generated from JSDoc)
Installation¶
Include js/src/brinkhaus-tools.js from the repository. Zero dependencies, browser-compatible.
git clone https://gitlab.com/brinkhaus/brinkhaustools.git
# Reference js/src/brinkhaus-tools.js in your project
Quick Start¶
<script src="brinkhaus-tools.js"></script>
<script>
const app = new BrApp({ name: "my-app" });
</script>
Modules¶
| Module | Class | Purpose |
|---|---|---|
| Diagnosis | BrDiagnosis |
Error codes, auto-expiry, global error catching |
| Log | BrLog |
Ring-buffer logger, structured entries |
| Settings | BrSettings |
localStorage-backed hierarchical JSON with dot-notation |
| Status | BrStatus |
Status source polling and aggregation |
| Version | BrVersion |
Build/version metadata |
| App | BrApp |
Central wiring point |
Error Code Ranges¶
| Range | Category |
|---|---|
| 9001-9099 | Storage errors |
| 9101-9199 | Rendering errors |
| 9201-9299 | API errors |
| 9301-9399 | Configuration errors |