smallyard 0.0.1 → 0.2.1

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/README.md CHANGED
@@ -1,4 +1,55 @@
1
1
  # smallyard
2
2
 
3
- This name is reserved for the Smallyard CLI. It is not released yet, and this
4
- package contains no code.
3
+ Command-line tool for [Smallyard](https://smallyard.cloud), a platform for publishing small internal tools. You (or your coding agent) deploy a project with one command and get a URL. Everyone who opens it signs in first, and only the people you share it with get in.
4
+
5
+ **Status:** Smallyard is in invite-only beta. The CLI only works with an account on the platform.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ npm install -g smallyard
11
+ ```
12
+
13
+ Requires Node.js 20 or newer.
14
+
15
+ The package needs no install scripts: `npm install -g smallyard --ignore-scripts` works too. Its one dependency, esbuild, gets its native binary from a per-platform package.
16
+
17
+ ## Commands
18
+
19
+ ```
20
+ smallyard login Sign in (opens the browser to approve)
21
+ smallyard init Create smallyard.json for the project in this folder
22
+ smallyard deploy Publish the project in this folder and print the URL
23
+ smallyard dev Run the project locally with a fake user (needs wrangler)
24
+ smallyard list List your apps
25
+ smallyard open [app] Print (and open) the app's URL
26
+ smallyard versions [app] List the app's stored versions
27
+ smallyard rollback [app] Go back to the previous version, or to --to <version>
28
+ smallyard delete <app> Delete an app (asks for confirmation)
29
+ smallyard share <app> <email> Give someone access (--role viewer or editor)
30
+ smallyard unshare <app> <email> Remove someone's access
31
+ smallyard access <app> Show who has access
32
+ smallyard secrets set|list|rm Manage the app's secrets (values are never passed as arguments)
33
+ smallyard db shell|export <app> Run SQL on the app's database, or export it
34
+ smallyard whoami Show the signed-in account
35
+ smallyard logout Sign out and delete the token from this machine
36
+ ```
37
+
38
+ Add `--json` to any command for machine-readable output on stdout. `smallyard --help` lists every option, and `smallyard --version` prints the version.
39
+
40
+ ## Language
41
+
42
+ The CLI speaks English and Brazilian Portuguese. It uses, in this order: the `--lang` option (`en` or `pt-BR`), the `SMALLYARD_LANG` variable (same values), and your system locale (`LC_ALL`, `LC_MESSAGES`, `LANG`; any `pt*` locale gives Portuguese). Without any of them, or with any other value, it uses English. `smallyard init --agent` writes the agent instructions in the same language.
43
+
44
+ With `--json`, the keys and the error `code`, `reason` and `requestId` are the same in every language; only `message` and `hint` are translated. Some details that come from the platform, like the per-field errors of a `smallyard.json` check, are still in Portuguese.
45
+
46
+ ## What it does on your machine
47
+
48
+ - `deploy` bundles your Worker with [esbuild](https://esbuild.github.io) and uploads it, plus your static files and migrations, to the platform.
49
+ - The login token is stored in `~/.config/smallyard/credentials.json` (or under `$XDG_CONFIG_HOME`). On macOS and Linux the folder is created with mode 0700 and the file with 0600, so only your user can read them. On Windows those modes don't apply, and the file keeps the permissions of your user profile folder.
50
+ - The CLI talks to `https://painel.smallyard.cloud` unless you pass `--api` or set `SMALLYARD_API_URL`.
51
+ - Nothing from outside (the platform's messages, your app's database rows, names and emails from the API) reaches your terminal or your agent raw: control characters, escape sequences, carriage returns, line separators, bidirectional controls and invisible characters (zero-width spaces, Unicode tags) are escaped. Text output shows them like `\x1b`, `\u202e` or `\u{e0041}`; `--json` writes them as `\uXXXX`, so the value is identical after parsing. `db export` without `--out` writes the SQL exactly when stdout is a file or a pipe.
52
+
53
+ ## License
54
+
55
+ Not yet licensed for redistribution (`UNLICENSED`). Third-party code bundled in this package is listed, with its license, in `THIRD_PARTY_NOTICES.md`.
@@ -0,0 +1,27 @@
1
+ # Third-party notices
2
+
3
+ The file `dist/smallyard.mjs` bundles the following third-party code.
4
+
5
+ ## zod@4.6.7 (MIT)
6
+
7
+ MIT License
8
+
9
+ Copyright (c) 2025 Colin McDonnell
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.