@termdraw/app 0.3.0
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 +21 -0
- package/README.md +73 -0
- package/dist/cli.js +63437 -0
- package/dist/highlights-eq9cgrbb.scm +604 -0
- package/dist/highlights-ghv9g403.scm +205 -0
- package/dist/highlights-hk7bwhj4.scm +284 -0
- package/dist/highlights-r812a2qc.scm +150 -0
- package/dist/highlights-x6tmsnaa.scm +115 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -0
- package/dist/injections-73j83es3.scm +27 -0
- package/dist/main.d.ts +8 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +80 -0
- package/dist/tree-sitter-javascript-nd0q4pe9.wasm +0 -0
- package/dist/tree-sitter-markdown-411r6y9b.wasm +0 -0
- package/dist/tree-sitter-markdown_inline-j5349f42.wasm +0 -0
- package/dist/tree-sitter-typescript-zxjzwt75.wasm +0 -0
- package/dist/tree-sitter-zig-e78zbjpm.wasm +0 -0
- package/package.json +77 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ben Vinegar
|
|
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,73 @@
|
|
|
1
|
+
# @termdraw/app
|
|
2
|
+
|
|
3
|
+
`@termdraw/app` is the standalone termDRAW terminal app for developers who want editable diagrams, UI mocks, and text graphics without leaving the terminal.
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
- Draw boxes, lines, paint strokes, and text as retained objects.
|
|
8
|
+
- Select, move, resize, and recolor objects after you draw them.
|
|
9
|
+
- Group related content inside boxes while everything stays aligned to terminal cells.
|
|
10
|
+
- Export plain text or fenced Markdown for docs, tickets, and prompts.
|
|
11
|
+
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
Requirements:
|
|
15
|
+
|
|
16
|
+
- [Bun](https://bun.sh) 1.3+
|
|
17
|
+
- A terminal with mouse support
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npm install --global @termdraw/app
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Quick start
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
termdraw
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Draw something, then press `Enter` or `Ctrl+S` to write the result to stdout.
|
|
30
|
+
|
|
31
|
+
## Usage
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
# save plain text directly to a file
|
|
35
|
+
termdraw --output diagram.txt
|
|
36
|
+
|
|
37
|
+
# export a fenced Markdown code block
|
|
38
|
+
termdraw --fenced > diagram.md
|
|
39
|
+
|
|
40
|
+
# show CLI help
|
|
41
|
+
termdraw --help
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
termDRAW! outputs terminal text, not SVG or bitmap graphics.
|
|
45
|
+
|
|
46
|
+
## OpenTUI package
|
|
47
|
+
|
|
48
|
+
If you want the embeddable OpenTUI components instead of the packaged app:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npm install @termdraw/opentui @opentui/core @opentui/react react
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Contributing
|
|
55
|
+
|
|
56
|
+
Contributions are welcome.
|
|
57
|
+
|
|
58
|
+
Before opening a PR:
|
|
59
|
+
|
|
60
|
+
- keep the change focused
|
|
61
|
+
- run `bun run check`
|
|
62
|
+
- add or update tests when editor behavior changes
|
|
63
|
+
- open an issue first for larger UX or API changes
|
|
64
|
+
|
|
65
|
+
## Security
|
|
66
|
+
|
|
67
|
+
Please report security issues privately through GitHub Security Advisories:
|
|
68
|
+
|
|
69
|
+
- <https://github.com/benvinegar/termdraw/security/advisories/new>
|
|
70
|
+
|
|
71
|
+
## License
|
|
72
|
+
|
|
73
|
+
MIT. See [LICENSE](LICENSE).
|