hostty 0.1.0.alpha-arm64-darwin

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.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/.hostty.yml +18 -0
  3. data/.ruby-version +1 -0
  4. data/LICENSE.txt +21 -0
  5. data/README.md +65 -0
  6. data/Rakefile +70 -0
  7. data/THIRD_PARTY_NOTICES.txt +247 -0
  8. data/docs/assets/demo.svg +168 -0
  9. data/docs/assets/hostty-dark-static.svg +27 -0
  10. data/docs/assets/hostty-dark.svg +92 -0
  11. data/docs/assets/hostty-light-static.svg +27 -0
  12. data/docs/assets/hostty-light.svg +92 -0
  13. data/docs/development/README.md +120 -0
  14. data/docs/development/architecture.md +169 -0
  15. data/docs/features/README.md +45 -0
  16. data/docs/features/command-line.md +46 -0
  17. data/docs/features/configuration.md +131 -0
  18. data/docs/features/domains.md +81 -0
  19. data/docs/features/plain-output.md +56 -0
  20. data/docs/features/stopping.md +69 -0
  21. data/docs/features/tabs.md +120 -0
  22. data/docs/features/terminal-emulator.md +66 -0
  23. data/exe/hostty +6 -0
  24. data/lib/hostty/cli.rb +86 -0
  25. data/lib/hostty/config.rb +78 -0
  26. data/lib/hostty/domains.rb +22 -0
  27. data/lib/hostty/exceptions.rb +7 -0
  28. data/lib/hostty/ghostty/frame.rb +203 -0
  29. data/lib/hostty/ghostty/libghostty-vt.dylib +0 -0
  30. data/lib/hostty/ghostty/library.rb +148 -0
  31. data/lib/hostty/ghostty/mouse.rb +77 -0
  32. data/lib/hostty/ghostty/screen.rb +112 -0
  33. data/lib/hostty/manager/child.rb +36 -0
  34. data/lib/hostty/manager/events.rb +27 -0
  35. data/lib/hostty/manager/process_exited.rb +28 -0
  36. data/lib/hostty/manager/signal_received.rb +23 -0
  37. data/lib/hostty/manager.rb +102 -0
  38. data/lib/hostty/output.rb +37 -0
  39. data/lib/hostty/plain/app.rb +23 -0
  40. data/lib/hostty/plain/pipe.rb +55 -0
  41. data/lib/hostty/port_chooser.rb +62 -0
  42. data/lib/hostty/process_config.rb +80 -0
  43. data/lib/hostty/terminal/cell.rb +35 -0
  44. data/lib/hostty/terminal/style.rb +87 -0
  45. data/lib/hostty/tui/app.rb +277 -0
  46. data/lib/hostty/tui/desktop.rb +51 -0
  47. data/lib/hostty/tui/input.rb +69 -0
  48. data/lib/hostty/tui/layout.rb +68 -0
  49. data/lib/hostty/tui/mouse_event.rb +36 -0
  50. data/lib/hostty/tui/pane.rb +125 -0
  51. data/lib/hostty/tui/pty.rb +62 -0
  52. data/lib/hostty/tui/renderer.rb +85 -0
  53. data/lib/hostty/tui/selection.rb +47 -0
  54. data/lib/hostty/version.rb +5 -0
  55. data/lib/hostty.rb +35 -0
  56. data/sig/hostty.rbs +4 -0
  57. metadata +130 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3a3be52c882aa966cbd96a08fd4716681ad42a4488beba8846aa4a8d7a7c065f
4
+ data.tar.gz: 8a4e6eca889ece5d9b18d9885a7fd7d57fec9a6abaf4efcae32998b169fedb2c
5
+ SHA512:
6
+ metadata.gz: a7a198240498d00cbf9c82c8d8fe597d32b2449c267d6a7c8c91c35dd1bb1b714a3932e7bb43f71b7dfef5f5456d9be4ae5f9c0a8a360fcbf8ec61d6d5bafc29
7
+ data.tar.gz: 051c94e9acb3aa4433002446a9a5a2ca5214889d8308744e6fbe1b355bd199466ae68719911a4e499c64da7c8894fd70fc3a57fbf7e9509ffd1d3ec89a4998c6
data/.hostty.yml ADDED
@@ -0,0 +1,18 @@
1
+ skip_used_ports: true
2
+ processes:
3
+ web:
4
+ command: >-
5
+ exec ruby -rsocket -e '
6
+ $stdout.sync = true;
7
+ server = TCPServer.new("127.0.0.1", Integer(ENV.fetch("PORT")));
8
+ puts "Listening on port #{ENV["PORT"]}";
9
+ loop do
10
+ client = server.accept;
11
+ puts client.gets;
12
+ nil until client.gets.to_s.strip.empty?;
13
+ client.write("HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 3\r\nConnection: close\r\n\r\nok\n");
14
+ client.close;
15
+ end'
16
+ domain: "hostty.test"
17
+ btop: "btop"
18
+ irb: "exec env -u RUBYOPT -u BUNDLE_GEMFILE ruby -rirb -e 'IRB.send(:easter_egg, :dancing); IRB.start'"
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 4.0.10
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2026 Bert McCutchen
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
13
+ all 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
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,65 @@
1
+ <p align="center">
2
+ <img src="./docs/assets/hostty-light.svg#gh-light-mode-only" alt="Hostty" width="300">
3
+ <img src="./docs/assets/hostty-dark.svg#gh-dark-mode-only" alt="Hostty" width="300">
4
+ </p>
5
+
6
+ # Hostty
7
+
8
+ Ghostty without the "G". Hostty shows each process through libghostty-vt, the terminal engine of [Ghostty](https://ghostty.org), and it serves your local hosts in a terminal.
9
+
10
+ ### Contents
11
+
12
+ - [Installation](#installation)
13
+ - [Quick Start](#quick-start)
14
+ - [Documentation](#documentation)
15
+ - [License](#license)
16
+
17
+ Hostty starts the processes of a project, such as a Rails server, a Jekyll site, and Solid Queue, and shows each one in its own tab. It can give any process a local domain with SSL, such as `https://shop.test`, through [ruby-nginx](https://github.com/bert-mccutchen/ruby-nginx).
18
+
19
+ <p align="center">
20
+ <img src="./docs/assets/demo.svg" alt="Hostty adds a domain, then shows a Rails server, a Jekyll site, and Solid Queue in tabs, with the URL of each domain in the tab bar and a line of output selected for copying" width="760">
21
+ </p>
22
+
23
+ Hostty adds the domains before it starts any process, in your real terminal, so a password prompt works. Each process runs in its own terminal inside hostty, so `binding.irb`, `debugger`, and password prompts work inside a process too.
24
+
25
+ ## Installation
26
+
27
+ Hostty needs Ruby 3.2 or later, on macOS or Linux.
28
+
29
+ ```shell
30
+ gem install hostty
31
+ ```
32
+
33
+ The gem for macOS and Linux, on both ARM and Intel, includes [libghostty-vt](https://lib.ghostty.org/vt/), which shows each process in its tab. On another platform, install libghostty-vt with your package manager, or use the [plain output](./docs/features/plain-output.md).
34
+
35
+ ## Quick Start
36
+
37
+ 1. Add a `.hostty.yml` file to the root of your project:
38
+
39
+ ```yaml
40
+ processes:
41
+ web:
42
+ command: "bin/rails server -p $PORT"
43
+ domain: "shop.test"
44
+ ssl: true
45
+ docs: "bundle exec jekyll serve --port $PORT"
46
+ jobs: "bin/jobs"
47
+ ```
48
+
49
+ 2. Run hostty from the same directory:
50
+
51
+ ```shell
52
+ hostty
53
+ ```
54
+
55
+ 3. Open `https://shop.test` in a browser.
56
+ 4. Press Ctrl-C twice to stop every process and quit.
57
+
58
+ ## Documentation
59
+
60
+ - [Features](./docs/features/README.md): the config file, the command line, domains, tabs, and stopping.
61
+ - [Development](./docs/development/README.md): setup, tests, and how hostty works.
62
+
63
+ ## License
64
+
65
+ Hostty is open source under the [MIT License](https://opensource.org/licenses/MIT). The gems with libghostty-vt inside also include code under other licenses, listed in the [third-party notices](./THIRD_PARTY_NOTICES.txt).
data/Rakefile ADDED
@@ -0,0 +1,70 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "minitest/test_task"
5
+ require "rubygems/package"
6
+
7
+ Minitest::TestTask.create
8
+
9
+ require "standard/rake"
10
+
11
+ task default: %i[test standard]
12
+
13
+ ZIG_TARGETS = {
14
+ "arm64-darwin" => "aarch64-macos",
15
+ "x86_64-darwin" => "x86_64-macos",
16
+ "x86_64-linux-gnu" => "x86_64-linux-gnu",
17
+ "aarch64-linux-gnu" => "aarch64-linux-gnu"
18
+ }.freeze
19
+
20
+ def ghostty_revision
21
+ @ghostty_revision ||= `git rev-parse HEAD:vendor/ghostty`.strip
22
+ end
23
+
24
+ def build_libghostty(prefix:, target: nil)
25
+ stamp = File.join(prefix, "ghostty-revision")
26
+ return if File.exist?(stamp) && File.read(stamp) == ghostty_revision
27
+
28
+ cross = target ? ["-Dtarget=#{target}"] : []
29
+ sh "zig", "build", "--build-file", "vendor/ghostty/build.zig",
30
+ "-Demit-lib-vt", "-Doptimize=ReleaseFast", "-Dcpu=baseline", *cross, "--prefix", prefix
31
+ File.write(stamp, ghostty_revision)
32
+ end
33
+
34
+ desc "Build libghostty-vt for this machine into vendor/libghostty"
35
+ task :libghostty do
36
+ build_libghostty(prefix: File.expand_path("vendor/libghostty", __dir__))
37
+ end
38
+
39
+ namespace :native do
40
+ ZIG_TARGETS.each do |platform, target|
41
+ desc "Build the #{platform} gem with libghostty-vt inside"
42
+ task platform do
43
+ file_name = platform.include?("darwin") ? "libghostty-vt.dylib" : "libghostty-vt.so"
44
+ packaged = "lib/hostty/ghostty/#{file_name}"
45
+ prefix = File.expand_path("tmp/native/#{platform}", __dir__)
46
+
47
+ begin
48
+ build_libghostty(target:, prefix:)
49
+ cp File.realpath(File.join(prefix, "lib", file_name)), packaged
50
+
51
+ spec = Bundler.load_gemspec("hostty.gemspec").dup
52
+ spec.platform = Gem::Platform.new(platform)
53
+ spec.files += [packaged]
54
+ mkdir_p "pkg"
55
+ mv Gem::Package.build(spec), "pkg/"
56
+ ensure
57
+ rm_f packaged
58
+ end
59
+ end
60
+ end
61
+
62
+ desc "Build the gem for every platform"
63
+ task all: ZIG_TARGETS.keys
64
+
65
+ desc "Build the gems for every macOS platform"
66
+ task darwin: ZIG_TARGETS.keys.grep(/darwin/)
67
+
68
+ desc "Build the gems for every Linux platform"
69
+ task linux: ZIG_TARGETS.keys.grep(/linux/)
70
+ end
@@ -0,0 +1,247 @@
1
+ Third-Party Notices
2
+
3
+ The platform gems of hostty include libghostty-vt as a shared library. The
4
+ library includes code from the projects below. Each section names the
5
+ project, the license that hostty uses for it, and the license text.
6
+
7
+ ================================================================================
8
+ libghostty-vt 1.0.1
9
+ https://github.com/ghostty-org/ghostty
10
+ License: MIT
11
+ ================================================================================
12
+
13
+ MIT License
14
+
15
+ Copyright (c) 2024 Mitchell Hashimoto, Ghostty contributors
16
+
17
+ Permission is hereby granted, free of charge, to any person obtaining a copy
18
+ of this software and associated documentation files (the "Software"), to deal
19
+ in the Software without restriction, including without limitation the rights
20
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
21
+ copies of the Software, and to permit persons to whom the Software is
22
+ furnished to do so, subject to the following conditions:
23
+
24
+ The above copyright notice and this permission notice shall be included in all
25
+ copies or substantial portions of the Software.
26
+
27
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
30
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
32
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
33
+ SOFTWARE.
34
+
35
+ ================================================================================
36
+ Highway 1.2.0
37
+ https://github.com/google/highway
38
+ License: Apache-2.0 OR BSD-3-Clause, used here under BSD-3-Clause
39
+ ================================================================================
40
+
41
+ Copyright (c) The Highway Project Authors. All rights reserved.
42
+
43
+ Redistribution and use in source and binary forms, with or without modification,
44
+ are permitted provided that the following conditions are met:
45
+
46
+ 1. Redistributions of source code must retain the above copyright notice, this
47
+ list of conditions and the following disclaimer.
48
+
49
+ 2. Redistributions in binary form must reproduce the above copyright notice,
50
+ this list of conditions and the following disclaimer in the documentation
51
+ and/or other materials provided with the distribution.
52
+
53
+ 3. Neither the name of the copyright holder nor the names of its
54
+ contributors may be used to endorse or promote products derived from
55
+ this software without specific prior written permission.
56
+
57
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
58
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
59
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
60
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
61
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
62
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
63
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
64
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
65
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
66
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
67
+
68
+ ================================================================================
69
+ simdutf 9.0.0
70
+ https://github.com/simdutf/simdutf
71
+ License: Apache-2.0 OR MIT, used here under MIT
72
+ ================================================================================
73
+
74
+ Copyright 2021 The simdutf authors
75
+
76
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
77
+ this software and associated documentation files (the "Software"), to deal in
78
+ the Software without restriction, including without limitation the rights to
79
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
80
+ the Software, and to permit persons to whom the Software is furnished to do so,
81
+ subject to the following conditions:
82
+
83
+ The above copyright notice and this permission notice shall be included in all
84
+ copies or substantial portions of the Software.
85
+
86
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
87
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
88
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
89
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
90
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
91
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
92
+
93
+ ================================================================================
94
+ Wuffs 0.4.0-alpha.10
95
+ https://github.com/google/wuffs
96
+ License: Apache-2.0 OR MIT, used here under MIT
97
+ ================================================================================
98
+
99
+ Copyright 2023 The Wuffs Authors
100
+
101
+ Permission is hereby granted, free of charge, to any
102
+ person obtaining a copy of this software and associated
103
+ documentation files (the "Software"), to deal in the
104
+ Software without restriction, including without
105
+ limitation the rights to use, copy, modify, merge,
106
+ publish, distribute, sublicense, and/or sell copies of
107
+ the Software, and to permit persons to whom the Software
108
+ is furnished to do so, subject to the following
109
+ conditions:
110
+
111
+ The above copyright notice and this permission notice
112
+ shall be included in all copies or substantial portions
113
+ of the Software.
114
+
115
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
116
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
117
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
118
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
119
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
120
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
121
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
122
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
123
+ DEALINGS IN THE SOFTWARE.
124
+
125
+ ================================================================================
126
+ translate_c 2.0.0
127
+ https://github.com/ziglang/translate-c
128
+ License: MIT
129
+ ================================================================================
130
+
131
+ The MIT License (Expat)
132
+
133
+ Copyright (c) Zig contributors
134
+
135
+ Permission is hereby granted, free of charge, to any person obtaining a copy
136
+ of this software and associated documentation files (the "Software"), to deal
137
+ in the Software without restriction, including without limitation the rights
138
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
139
+ copies of the Software, and to permit persons to whom the Software is
140
+ furnished to do so, subject to the following conditions:
141
+
142
+ The above copyright notice and this permission notice shall be included in
143
+ all copies or substantial portions of the Software.
144
+
145
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
146
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
147
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
148
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
149
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
150
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
151
+ THE SOFTWARE.
152
+
153
+ ================================================================================
154
+ uucode 0.2.0
155
+ https://github.com/jacobsandlund/uucode
156
+ License: MIT AND Unicode-3.0
157
+ ================================================================================
158
+
159
+ MIT License
160
+
161
+ Copyright (c) 2026 Jacob Sandlund
162
+
163
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
164
+ this software and associated documentation files (the "Software"), to deal in
165
+ the Software without restriction, including without limitation the rights to
166
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
167
+ of the Software, and to permit persons to whom the Software is furnished to do
168
+ so, subject to the following conditions:
169
+
170
+ The above copyright notice and this permission notice shall be included in all
171
+ copies or substantial portions of the Software.
172
+
173
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
174
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
175
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
176
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
177
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
178
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
179
+ SOFTWARE.
180
+
181
+ --------------------------------------------------------------------------------
182
+ uucode includes Unicode data under the Unicode License V3
183
+ --------------------------------------------------------------------------------
184
+
185
+ UNICODE LICENSE V3
186
+
187
+ COPYRIGHT AND PERMISSION NOTICE
188
+
189
+ Copyright © 1991-2025 Unicode, Inc.
190
+
191
+ NOTICE TO USER: Carefully read the following legal agreement. BY
192
+ DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
193
+ SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
194
+ TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
195
+ DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
196
+
197
+ Permission is hereby granted, free of charge, to any person obtaining a
198
+ copy of data files and any associated documentation (the "Data Files") or
199
+ software and any associated documentation (the "Software") to deal in the
200
+ Data Files or Software without restriction, including without limitation
201
+ the rights to use, copy, modify, merge, publish, distribute, and/or sell
202
+ copies of the Data Files or Software, and to permit persons to whom the
203
+ Data Files or Software are furnished to do so, provided that either (a)
204
+ this copyright and permission notice appear with all copies of the Data
205
+ Files or Software, or (b) this copyright and permission notice appear in
206
+ associated Documentation.
207
+
208
+ THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
209
+ KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
210
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
211
+ THIRD PARTY RIGHTS.
212
+
213
+ IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
214
+ BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
215
+ OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
216
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
217
+ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
218
+ FILES OR SOFTWARE.
219
+
220
+ Except as contained in this notice, the name of a copyright holder shall
221
+ not be used in advertising or otherwise to promote the sale, use or other
222
+ dealings in these Data Files or Software without prior written
223
+ authorization of the copyright holder.
224
+
225
+ --------------------------------------------------------------------------------
226
+ uucode includes a UTF-8 decoder by Bjoern Hoehrmann under the MIT license
227
+ --------------------------------------------------------------------------------
228
+
229
+ Copyright (c) 2008-2009 Bjoern Hoehrmann <bjoern@hoehrmann.de>
230
+
231
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
232
+ this software and associated documentation files (the "Software"), to deal in
233
+ the Software without restriction, including without limitation the rights to
234
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
235
+ of the Software, and to permit persons to whom the Software is furnished to do
236
+ so, subject to the following conditions:
237
+
238
+ The above copyright notice and this permission notice shall be included in all
239
+ copies or substantial portions of the Software.
240
+
241
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
242
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
243
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
244
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
245
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
246
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
247
+ SOFTWARE.
@@ -0,0 +1,168 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="760" height="420" viewBox="0 0 760 420" role="img" aria-label="Hostty adds a domain, then shows a Rails server, a Jekyll site, and Solid Queue in tabs, with the URL of each domain in the tab bar and a line of output selected for copying">
2
+ <style>
3
+ text { font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; font-size: 13px; fill: #c0caf5; white-space: pre; }
4
+ .dim { fill: #565f89; }
5
+ .green { fill: #9ece6a; }
6
+ .blue { fill: #7aa2f7; }
7
+ .yellow { fill: #e0af68; }
8
+ .cyan { fill: #7dcfff; }
9
+ .magenta { fill: #bb9af7; }
10
+ .white { fill: #ffffff; }
11
+ .bar { fill: #a9b1d6; }
12
+ .selected { fill: #1a1b26; }
13
+ .bold { font-weight: bold; }
14
+ .title { font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 12px; fill: #8a8fa8; }
15
+ .badge { font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 13px; font-weight: 600; fill: #1a1b26; }
16
+ </style>
17
+
18
+ <rect width="0" height="0" opacity="0">
19
+ <animate id="loop" attributeName="opacity" values="0;0" dur="14s" begin="0s;loop.end"/>
20
+ </rect>
21
+
22
+ <defs>
23
+ <clipPath id="typing">
24
+ <rect x="40" y="70" width="0" height="24">
25
+ <set attributeName="width" to="0" begin="loop.begin" dur="0.3s"/>
26
+ <animate attributeName="width" from="0" to="70" begin="loop.begin+0.3s" dur="0.7s" fill="freeze"/>
27
+ </rect>
28
+ </clipPath>
29
+ <clipPath id="dragging">
30
+ <rect x="18" y="166" width="0" height="20">
31
+ <set attributeName="width" to="0" begin="loop.begin" dur="6.5s"/>
32
+ <animate attributeName="width" from="0" to="286" begin="loop.begin+6.5s" dur="0.6s" fill="freeze"/>
33
+ </rect>
34
+ </clipPath>
35
+ </defs>
36
+
37
+ <rect x="0.5" y="0.5" width="759" height="419" rx="10" fill="#1a1b26" stroke="#2f3349"/>
38
+ <rect x="0.5" y="0.5" width="759" height="32" rx="10" fill="#24283b"/>
39
+ <rect x="0.5" y="22" width="759" height="11" fill="#24283b"/>
40
+ <circle cx="20" cy="16" r="6" fill="#ff5f57"/>
41
+ <circle cx="40" cy="16" r="6" fill="#febc2e"/>
42
+ <circle cx="60" cy="16" r="6" fill="#28c840"/>
43
+ <text x="380" y="20" text-anchor="middle" class="title">~/shop</text>
44
+
45
+ <!-- Scene 1: start hostty and add the domains -->
46
+ <g opacity="0">
47
+ <set attributeName="opacity" to="1" begin="loop.begin" dur="3.5s"/>
48
+ <text x="20" y="86"><tspan class="green">$</tspan></text>
49
+ <text x="40" y="86" clip-path="url(#typing)">hostty</text>
50
+ <g opacity="0">
51
+ <set attributeName="opacity" to="1" begin="loop.begin+1.3s" dur="2.2s"/>
52
+ <text x="20" y="110"><tspan class="dim">12:00:01</tspan> <tspan class="white">hostty</tspan> <tspan class="dim">|</tspan> Adding https://shop.test for web on port 5000.</text>
53
+ </g>
54
+ <g opacity="0">
55
+ <set attributeName="opacity" to="1" begin="loop.begin+2.1s" dur="1.4s"/>
56
+ <text x="20" y="132"><tspan class="dim">12:00:02</tspan> <tspan class="white">hostty</tspan> <tspan class="dim">|</tspan> Adding https://docs.shop.test for docs on port 5100.</text>
57
+ </g>
58
+ </g>
59
+
60
+ <!-- Tab view: help bar for scenes 2 to 4 -->
61
+ <g opacity="0">
62
+ <set attributeName="opacity" to="1" begin="loop.begin+3.5s" dur="10.5s"/>
63
+ <rect x="1" y="386" width="758" height="24" fill="#303030"/>
64
+ <text x="14" y="403"><tspan class="dim">Switch: click or Shift+Tab | Scroll: history | </tspan><tspan class="white bold">[restart]</tspan><tspan class="dim"> | Quit: Ctrl-C twice</tspan></text>
65
+ </g>
66
+
67
+ <!-- Scene 2: the web tab, with a Rails server -->
68
+ <g opacity="0">
69
+ <set attributeName="opacity" to="1" begin="loop.begin+3.5s" dur="4s"/>
70
+ <rect x="1" y="40" width="758" height="24" fill="#303030"/>
71
+ <rect x="12" y="40" width="70" height="24" fill="#005f87"/>
72
+ <text x="22" y="57"><tspan class="green">●</tspan> <tspan class="white bold">web</tspan></text>
73
+ <text x="96" y="57"><tspan class="green">●</tspan> docs</text>
74
+ <text x="178" y="57"><tspan class="green">●</tspan> jobs</text>
75
+ <text x="746" y="57" text-anchor="end" class="bar">https://shop.test</text>
76
+
77
+ <g opacity="0"><set attributeName="opacity" to="1" begin="loop.begin+3.7s" dur="3.8s"/><text x="20" y="92">=&gt; Booting Puma</text></g>
78
+ <g opacity="0"><set attributeName="opacity" to="1" begin="loop.begin+4.0s" dur="3.5s"/><text x="20" y="114">=&gt; Rails 8.0.1 application starting in development</text></g>
79
+ <g opacity="0"><set attributeName="opacity" to="1" begin="loop.begin+4.3s" dur="3.2s"/><text x="20" y="136">=&gt; Run `bin/rails server --help` for more startup options</text></g>
80
+ <g opacity="0"><set attributeName="opacity" to="1" begin="loop.begin+4.7s" dur="2.8s"/><text x="20" y="158">Puma starting in single mode...</text></g>
81
+ <g opacity="0"><set attributeName="opacity" to="1" begin="loop.begin+5.0s" dur="2.5s"/><text x="20" y="180">* Listening on http://127.0.0.1:5000</text></g>
82
+ <g opacity="0"><set attributeName="opacity" to="1" begin="loop.begin+5.2s" dur="2.3s"/><text x="20" y="202">Use Ctrl-C to stop</text></g>
83
+ <g opacity="0"><set attributeName="opacity" to="1" begin="loop.begin+5.8s" dur="1.7s"/><text x="20" y="224">Started <tspan class="cyan">GET</tspan> "/" for 127.0.0.1</text></g>
84
+ <g opacity="0"><set attributeName="opacity" to="1" begin="loop.begin+6.0s" dur="1.5s"/><text x="20" y="246"> Rendered <tspan class="yellow">products/index.html.erb</tspan> (Duration: 12.4ms)</text></g>
85
+ <g opacity="0"><set attributeName="opacity" to="1" begin="loop.begin+6.2s" dur="1.3s"/><text x="20" y="268">Completed <tspan class="green">200 OK</tspan> in 42ms</text></g>
86
+
87
+ <g opacity="0" clip-path="url(#dragging)">
88
+ <set attributeName="opacity" to="1" begin="loop.begin+6.5s" dur="1.0s"/>
89
+ <rect x="18" y="166" width="286" height="20" fill="#c0caf5"/>
90
+ <text x="20" y="180" class="selected">* Listening on http://127.0.0.1:5000</text>
91
+ </g>
92
+
93
+ <circle cx="20" cy="176" r="3" fill="#ffffff" opacity="0">
94
+ <set attributeName="opacity" to="0.9" begin="loop.begin+6.4s" dur="0.8s"/>
95
+ <animate attributeName="cx" from="20" to="304" begin="loop.begin+6.5s" dur="0.6s" fill="freeze"/>
96
+ <set attributeName="cx" to="20" begin="loop.begin" dur="6.5s"/>
97
+ </circle>
98
+ </g>
99
+
100
+ <!-- Scene 3: a click on the docs tab, with a Jekyll site -->
101
+ <g opacity="0">
102
+ <set attributeName="opacity" to="1" begin="loop.begin+7.5s" dur="3s"/>
103
+ <rect x="1" y="40" width="758" height="24" fill="#303030"/>
104
+ <rect x="86" y="40" width="80" height="24" fill="#005f87"/>
105
+ <text x="22" y="57"><tspan class="green">●</tspan> web</text>
106
+ <text x="96" y="57"><tspan class="green">●</tspan> <tspan class="white bold">docs</tspan></text>
107
+ <text x="178" y="57"><tspan class="green">●</tspan> jobs</text>
108
+ <text x="746" y="57" text-anchor="end" class="bar">https://docs.shop.test</text>
109
+
110
+ <text x="20" y="92">Configuration file: /home/dev/shop/docs/_config.yml</text>
111
+ <text x="20" y="114"> Source: /home/dev/shop/docs</text>
112
+ <text x="20" y="136"> Destination: /home/dev/shop/docs/_site</text>
113
+ <text x="20" y="158"> Incremental build: disabled. Enable with --incremental</text>
114
+ <text x="20" y="180"> Generating...</text>
115
+ <text x="20" y="202"> done in <tspan class="green">0.412 seconds</tspan>.</text>
116
+ <text x="20" y="224"> Auto-regeneration: enabled for '/home/dev/shop/docs'</text>
117
+ <text x="20" y="246"> Server address: <tspan class="blue">http://127.0.0.1:5100/</tspan></text>
118
+ <text x="20" y="268"> Server running... press ctrl-c to stop.</text>
119
+ <g opacity="0"><set attributeName="opacity" to="1" begin="loop.begin+8.6s" dur="1.9s"/><text x="20" y="290"> Regenerating: 1 file(s) changed at 2025-01-01 12:00:09</text></g>
120
+ <g opacity="0"><set attributeName="opacity" to="1" begin="loop.begin+8.9s" dur="1.6s"/><text x="20" y="312"> _posts/2025-01-01-welcome.md</text></g>
121
+ <g opacity="0"><set attributeName="opacity" to="1" begin="loop.begin+9.2s" dur="1.3s"/><text x="20" y="334"> ...done in <tspan class="green">0.087 seconds</tspan>.</text></g>
122
+ </g>
123
+
124
+ <!-- Scene 4: Shift+Tab to the jobs tab, with Solid Queue -->
125
+ <g opacity="0">
126
+ <set attributeName="opacity" to="1" begin="loop.begin+10.5s" dur="3.5s"/>
127
+ <rect x="1" y="40" width="758" height="24" fill="#303030"/>
128
+ <rect x="168" y="40" width="76" height="24" fill="#005f87"/>
129
+ <text x="22" y="57"><tspan class="green">●</tspan> web</text>
130
+ <text x="96" y="57"><tspan class="green">●</tspan> docs</text>
131
+ <text x="178" y="57"><tspan class="green">●</tspan> <tspan class="white bold">jobs</tspan></text>
132
+
133
+ <text x="20" y="92"><tspan class="magenta">SolidQueue-1.1.0</tspan> Started Supervisor (12.1ms) pid: 48213</text>
134
+ <text x="20" y="114"><tspan class="magenta">SolidQueue-1.1.0</tspan> Started Dispatcher (4.2ms) pid: 48220, batch_size: 500</text>
135
+ <text x="20" y="136"><tspan class="magenta">SolidQueue-1.1.0</tspan> Started Worker (3.9ms) pid: 48221, queues: *</text>
136
+ <g opacity="0"><set attributeName="opacity" to="1" begin="loop.begin+11.3s" dur="2.7s"/><text x="20" y="158">Performing <tspan class="yellow">WelcomeEmailJob</tspan> (Job ID: 7f3c9a) from SolidQueue(default)</text></g>
137
+ <g opacity="0"><set attributeName="opacity" to="1" begin="loop.begin+11.7s" dur="2.3s"/><text x="20" y="180"> Delivered mail to customer@shop.test (21.6ms)</text></g>
138
+ <g opacity="0"><set attributeName="opacity" to="1" begin="loop.begin+12.0s" dur="2.0s"/><text x="20" y="202">Performed <tspan class="yellow">WelcomeEmailJob</tspan> (Job ID: 7f3c9a) in <tspan class="green">38.2ms</tspan></text></g>
139
+ <g opacity="0"><set attributeName="opacity" to="1" begin="loop.begin+12.6s" dur="1.4s"/><text x="20" y="224">Performing <tspan class="yellow">OrderReceiptJob</tspan> (Job ID: 2b81d4) from SolidQueue(default)</text></g>
140
+ <g opacity="0"><set attributeName="opacity" to="1" begin="loop.begin+12.9s" dur="1.1s"/><text x="20" y="246">Performed <tspan class="yellow">OrderReceiptJob</tspan> (Job ID: 2b81d4) in <tspan class="green">22.7ms</tspan></text></g>
141
+ </g>
142
+
143
+ <!-- Click ripple on the docs tab -->
144
+ <circle cx="124" cy="52" r="4" fill="none" stroke="#ffffff" stroke-width="2" opacity="0">
145
+ <animate attributeName="opacity" values="0.9;0" begin="loop.begin+7.3s" dur="0.6s"/>
146
+ <animate attributeName="r" from="4" to="18" begin="loop.begin+7.3s" dur="0.6s"/>
147
+ </circle>
148
+
149
+ <!-- Click ripple at the start of the drag -->
150
+ <circle cx="20" cy="176" r="4" fill="none" stroke="#ffffff" stroke-width="2" opacity="0">
151
+ <animate attributeName="opacity" values="0.9;0" begin="loop.begin+6.4s" dur="0.6s"/>
152
+ <animate attributeName="r" from="4" to="18" begin="loop.begin+6.4s" dur="0.6s"/>
153
+ </circle>
154
+
155
+ <!-- Drag to copy badge -->
156
+ <g opacity="0">
157
+ <set attributeName="opacity" to="1" begin="loop.begin+6.5s" dur="1.0s"/>
158
+ <rect x="606" y="340" width="124" height="32" rx="7" fill="#c0caf5" stroke="#7aa2f7" stroke-width="2"/>
159
+ <text x="668" y="361" text-anchor="middle" class="badge">Drag to copy</text>
160
+ </g>
161
+
162
+ <!-- Shift+Tab key badge -->
163
+ <g opacity="0">
164
+ <set attributeName="opacity" to="1" begin="loop.begin+10.0s" dur="1.2s"/>
165
+ <rect x="618" y="340" width="112" height="32" rx="7" fill="#c0caf5" stroke="#7aa2f7" stroke-width="2"/>
166
+ <text x="674" y="361" text-anchor="middle" class="badge">Shift + Tab</text>
167
+ </g>
168
+ </svg>
@@ -0,0 +1,27 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="432" height="198" viewBox="40 163 432 198" role="img" aria-label="Hostty: three little ghosts in a line, each with a terminal prompt for a face">
2
+ <defs>
3
+ <!-- One ghost, 120 wide, with a ">_" face. The bottom has two ripples and rounded corners. -->
4
+ <path id="body" d="M0 60 C0 27 27 0 60 0 C93 0 120 27 120 60 L120 122 C120 134 112 142 104 142 C96 142 90 132 82 132 S68 142 60 142 S46 132 38 132 S24 142 16 142 C8 142 0 134 0 122 Z"/>
5
+ <g id="face" fill="none" stroke="#1a1b26" stroke-width="10" stroke-linecap="round" stroke-linejoin="round">
6
+ <polyline points="32,42 52,58 32,74"/>
7
+ <line x1="62" y1="76" x2="88" y2="76"/>
8
+ </g>
9
+ </defs>
10
+
11
+ <!-- Ghosts -->
12
+ <g transform="translate(60 183)">
13
+ <use href="#body" fill="#9ece6a"/>
14
+ <use href="#face"/>
15
+ </g>
16
+ <g transform="translate(196 183)">
17
+ <use href="#body" fill="#7aa2f7"/>
18
+ <use href="#face"/>
19
+ </g>
20
+ <g transform="translate(332 183)">
21
+ <use href="#body" fill="#bb9af7"/>
22
+ <use href="#face"/>
23
+ </g>
24
+
25
+ <!-- Line under the ghosts -->
26
+ <line x1="60" y1="341" x2="452" y2="341" stroke="#a9b1d6" stroke-width="10" stroke-linecap="round"/>
27
+ </svg>