@coherent.js/devtools 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Thomas Drouvin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,66 @@
1
+ # @coherent.js/devtools
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@coherent.js/devtools.svg)](https://www.npmjs.com/package/@coherent.js/devtools)
4
+ [![license: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](../../LICENSE)
5
+ [![Node >= 20](https://img.shields.io/badge/node-%3E%3D20-brightgreen)](https://nodejs.org)
6
+
7
+ Developer tools for Coherent.js applications: inspector, profiler, and logger utilities.
8
+
9
+ - ESM-only, Node 20+
10
+ - Lightweight debugging and profiling helpers
11
+ - Designed to pair with `@coherent.js/core`
12
+
13
+ For a high-level overview and repository-wide instructions, see the root README: ../../README.md
14
+
15
+ ## Installation
16
+
17
+ ```bash
18
+ pnpm add @coherent.js/devtools
19
+ ```
20
+
21
+ ## Quick start
22
+
23
+ JavaScript (ESM):
24
+ ```js
25
+ import { logger } from '@coherent.js/devtools/logger';
26
+ import { createProfiler } from '@coherent.js/devtools/profiler';
27
+
28
+ logger.info('Starting app');
29
+
30
+ const profiler = createProfiler('render');
31
+ profiler.start();
32
+ // ... render work ...
33
+ profiler.stop();
34
+ ```
35
+
36
+ TypeScript:
37
+ ```ts
38
+ import { logger } from '@coherent.js/devtools/logger';
39
+ import { createProfiler } from '@coherent.js/devtools/profiler';
40
+
41
+ logger.debug('Bootstrapping');
42
+
43
+ const profiler = createProfiler('render');
44
+ profiler.start();
45
+ // ... work ...
46
+ profiler.stop();
47
+ ```
48
+
49
+ ## Exports
50
+
51
+ - `@coherent.js/devtools` (index)
52
+ - `@coherent.js/devtools/inspector`
53
+ - `@coherent.js/devtools/profiler`
54
+ - `@coherent.js/devtools/logger`
55
+
56
+ ## Development
57
+
58
+ ```bash
59
+ pnpm --filter @coherent.js/devtools run test
60
+ pnpm --filter @coherent.js/devtools run test:watch
61
+ pnpm --filter @coherent.js/devtools run typecheck
62
+ ```
63
+
64
+ ## License
65
+
66
+ MIT © Coherent.js Team