riteshjs 0.0.0-stage → 0.1.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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jarrod Baumann
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 CHANGED
@@ -1,3 +1,69 @@
1
- # Temporary Holding Version
1
+ # ritesh
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ `rite` is a shell for the browser, built on [xterm.js](https://xtermjs.org). Embed it in a page, give it your own files and commands, and optionally connect it to a server.
4
+
5
+ rite has its own small language: quoting, `|`, `&&`, `||`, `;`, redirects into an in-memory filesystem, `$VARS`, globs, and aliases. It is not bash; see [docs/language.md](https://github.com/jarrodb/ritesh/blob/master/docs/language.md).
6
+
7
+ > Status: in development. Not published yet.
8
+
9
+ ## Use
10
+
11
+ ```sh
12
+ npm install riteshjs
13
+ ```
14
+
15
+ ```ts
16
+ import { createRite, defineCommand } from "riteshjs"
17
+ import "riteshjs/rite.css"
18
+
19
+ const hello = defineCommand({
20
+ name: "hello",
21
+ summary: "say hello",
22
+ usage: "hello [name]",
23
+ run: async (p) => { await p.out(`hello, ${p.args[0] ?? "world"}\n`) },
24
+ })
25
+
26
+ createRite({
27
+ element: document.getElementById("term")!,
28
+ hostname: "example",
29
+ motd: "type help",
30
+ files: { "/home/guest/about.txt": "about this site\n" },
31
+ commands: [hello],
32
+ })
33
+ ```
34
+
35
+ From a CDN, with no build step:
36
+
37
+ ```html
38
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/riteshjs@VERSION/dist/rite.css">
39
+ <script src="https://cdn.jsdelivr.net/npm/riteshjs@VERSION/dist/rite.bundle.min.js"></script>
40
+ <script>Rite.createRite({ element: document.getElementById("term") })</script>
41
+ ```
42
+
43
+ Release notes list the SRI hashes for each version.
44
+
45
+ ## Server
46
+
47
+ `github.com/jarrodb/ritesh/server` serves a read-only filesystem and commands to rite over the [rite.1 protocol](https://github.com/jarrodb/ritesh/blob/master/docs/protocol.md).
48
+
49
+ ```mermaid
50
+ flowchart LR
51
+ page[page with rite] <-->|WebSocket, rite.1| server[ritesh/server]
52
+ server --> fs[fs.FS]
53
+ server --> cmds[commands]
54
+ ```
55
+
56
+ ## Develop
57
+
58
+ ```sh
59
+ npm ci
60
+ npm run build
61
+ npm run lint
62
+ npm test
63
+ npm run check:package
64
+ (cd server && go test -race ./...)
65
+ ```
66
+
67
+ ## License
68
+
69
+ MIT. See [LICENSE](https://github.com/jarrodb/ritesh/blob/master/LICENSE). The bundle includes xterm.js; see [THIRD_PARTY_NOTICES](THIRD_PARTY_NOTICES).
@@ -0,0 +1,104 @@
1
+ ritesh bundles the following third-party software in dist/.
2
+
3
+ ================================================================
4
+ @xterm/xterm 6.0.0
5
+ https://github.com/xtermjs/xterm.js
6
+ ================================================================
7
+
8
+ Copyright (c) 2017-2019, The xterm.js authors (https://github.com/xtermjs/xterm.js)
9
+ Copyright (c) 2014-2016, SourceLair Private Company (https://www.sourcelair.com)
10
+ Copyright (c) 2012-2013, Christopher Jeffrey (https://github.com/chjj/)
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ of this software and associated documentation files (the "Software"), to deal
14
+ in the Software without restriction, including without limitation the rights
15
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ copies of the Software, and to permit persons to whom the Software is
17
+ furnished to do so, subject to the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be included in
20
+ all copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
28
+ THE SOFTWARE.
29
+
30
+ ================================================================
31
+ @xterm/addon-fit 0.11.0
32
+ https://github.com/xtermjs/xterm.js
33
+ ================================================================
34
+
35
+ Copyright (c) 2019, The xterm.js authors (https://github.com/xtermjs/xterm.js)
36
+
37
+ Permission is hereby granted, free of charge, to any person obtaining a copy
38
+ of this software and associated documentation files (the "Software"), to deal
39
+ in the Software without restriction, including without limitation the rights
40
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
41
+ copies of the Software, and to permit persons to whom the Software is
42
+ furnished to do so, subject to the following conditions:
43
+
44
+ The above copyright notice and this permission notice shall be included in
45
+ all copies or substantial portions of the Software.
46
+
47
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
48
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
49
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
50
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
51
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
52
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
53
+ THE SOFTWARE.
54
+
55
+ ================================================================
56
+ @xterm/addon-unicode11 0.9.0
57
+ https://github.com/xtermjs/xterm.js
58
+ ================================================================
59
+
60
+ Copyright (c) 2019, The xterm.js authors (https://github.com/xtermjs/xterm.js)
61
+
62
+ Permission is hereby granted, free of charge, to any person obtaining a copy
63
+ of this software and associated documentation files (the "Software"), to deal
64
+ in the Software without restriction, including without limitation the rights
65
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
66
+ copies of the Software, and to permit persons to whom the Software is
67
+ furnished to do so, subject to the following conditions:
68
+
69
+ The above copyright notice and this permission notice shall be included in
70
+ all copies or substantial portions of the Software.
71
+
72
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
73
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
74
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
75
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
76
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
77
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
78
+ THE SOFTWARE.
79
+
80
+ ================================================================
81
+ @xterm/addon-web-links 0.12.0
82
+ https://github.com/xtermjs/xterm.js
83
+ ================================================================
84
+
85
+ Copyright (c) 2017, The xterm.js authors (https://github.com/xtermjs/xterm.js)
86
+
87
+ Permission is hereby granted, free of charge, to any person obtaining a copy
88
+ of this software and associated documentation files (the "Software"), to deal
89
+ in the Software without restriction, including without limitation the rights
90
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
91
+ copies of the Software, and to permit persons to whom the Software is
92
+ furnished to do so, subject to the following conditions:
93
+
94
+ The above copyright notice and this permission notice shall be included in
95
+ all copies or substantial portions of the Software.
96
+
97
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
98
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
99
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
100
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
101
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
102
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
103
+ THE SOFTWARE.
104
+