transom 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 +21 -0
- package/README.md +44 -2
- package/dist/cli.js +631 -0
- package/dist/ui/assets/figtree-latin-ext-wght-normal-DCwSJGxG.woff2 +0 -0
- package/dist/ui/assets/figtree-latin-wght-normal-D_ZTVpCC.woff2 +0 -0
- package/dist/ui/assets/fragment-mono-latin-400-normal-BYwT3kSJ.woff +0 -0
- package/dist/ui/assets/fragment-mono-latin-400-normal-yxdJ5AmL.woff2 +0 -0
- package/dist/ui/assets/fragment-mono-latin-ext-400-normal-BbKYyvR9.woff2 +0 -0
- package/dist/ui/assets/fragment-mono-latin-ext-400-normal-CT4YFKeK.woff +0 -0
- package/dist/ui/assets/index-COITU-z5.css +2 -0
- package/dist/ui/assets/index-D7PDC_h3.js +52 -0
- package/dist/ui/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/dist/ui/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/dist/ui/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/dist/ui/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/dist/ui/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/dist/ui/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/dist/ui/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/dist/ui/favicon.svg +1 -0
- package/dist/ui/index.html +34 -0
- package/package.json +59 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 the transom authors
|
|
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,45 @@
|
|
|
1
|
-
#
|
|
1
|
+
# transom
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Postgres, laid out plainly.** One command opens your database in a calm browser tab.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npx transom
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
transom finds the Postgres on your computer (Homebrew, Postgres.app, or `localhost:5432`), lists its databases, and opens your browser. Click one and you're in. It runs on your machine and never writes to your database.
|
|
10
|
+
|
|
11
|
+
Needs **Node.js 20 or newer**.
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
npx transom postgres://user:password@host:5432/app # connect straight to a server
|
|
15
|
+
npx transom --port 4000 --no-open # fixed port, don't open the browser
|
|
16
|
+
npm install --global transom && transom # or install it once
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
| Option | What it does |
|
|
20
|
+
| --- | --- |
|
|
21
|
+
| `postgres://…` | Connect straight to that database instead of showing the connect screen |
|
|
22
|
+
| `--port <n>` | Listen on a fixed port (default: a free one) |
|
|
23
|
+
| `--no-open` | Print the link but don't open the browser |
|
|
24
|
+
| `--help` | Show the options |
|
|
25
|
+
|
|
26
|
+
## What you get
|
|
27
|
+
|
|
28
|
+
- **Connect without typing.** Local databases are listed with their sizes and a filter. Any other server works by URL or by host, port and password, and recent connections are one click away.
|
|
29
|
+
- **Every table at a glance**, with row counts and size. Press `/` to filter, `⌘K` to jump anywhere, `⌘B` to collapse the sidebar for more room.
|
|
30
|
+
- **A grid that stays out of the way.** Sort, stack filters, page with the next page preloaded, export CSV. Wide tables scroll sideways with the first column pinned.
|
|
31
|
+
- **Follow the red.** Foreign keys are red links. Click one to open the row it points to, keep going, and see what points back under *Referenced by*.
|
|
32
|
+
- **Structure.** Columns, types, defaults, links between tables, and indexes.
|
|
33
|
+
- **Safe SQL.** Each statement runs in a `READ ONLY` transaction that is rolled back, with a 30-second timeout and history.
|
|
34
|
+
- **Make it yours.** Light or dark; Paper, Slate, Moss or Plum themes; solid, light or minimal sidebar; square, soft or round corners; comfortable or compact rows; Figtree, Inter or your system font. Saved to `~/.config/transom/settings.json`.
|
|
35
|
+
|
|
36
|
+
## Safety
|
|
37
|
+
|
|
38
|
+
- The server listens on `127.0.0.1` only and rejects requests addressed to any other hostname.
|
|
39
|
+
- Every request needs a random token from the link transom opens; it changes on every run.
|
|
40
|
+
- Version 0.1 never writes to your database.
|
|
41
|
+
- Passwords stay in memory while transom runs. They're never written to disk or browser storage.
|
|
42
|
+
|
|
43
|
+
## Licence
|
|
44
|
+
|
|
45
|
+
MIT. PostgreSQL is a trademark of the PostgreSQL Community Association; transom is an independent project.
|