eraspace 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 shujanshaikh
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,38 @@
1
- # Temporary Holding Version
1
+ # eraspace
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
+ Build and deploy realtime apps written in TypeScript. The server runs on the BEAM with Postgres storage, live queries
4
+ and WebSockets; the client is Preact. Apps need no `package.json`, `tsconfig.json` or `node_modules`: the CLI bundles
5
+ the SDK, Preact and TypeScript.
6
+
7
+ Requires Node.js 24 or newer.
8
+
9
+ ## Quick start
10
+
11
+ ```bash
12
+ npx eraspace new my-app # templates: --template chat | todo | poll
13
+ cd my-app
14
+ npx eraspace deploy # prints the app URL
15
+ ```
16
+
17
+ A deploy without an account creates an unclaimed app. It works straight away and expires after about a week unless you
18
+ sign in and claim it (`eraspace auth login`, then `eraspace claim`).
19
+
20
+ ## Commands
21
+
22
+ | Command | What it does |
23
+ | --- | --- |
24
+ | `new <name>` / `init` | Create an app in a new directory or the current one |
25
+ | `typecheck` | Typecheck `server/`, `client/` and `shared/` |
26
+ | `deploy` | Build the client, compile the server and deploy |
27
+ | `dev` | Deploy, then redeploy on every save |
28
+ | `call <fn> '<json>'...` | Call a query, mutation or action |
29
+ | `logs` | Read handler logs (`--follow` to stream) |
30
+ | `inspect` | Show the schema, functions and deploys |
31
+ | `auth login` / `claim` | Sign in, and take ownership of an unclaimed app |
32
+
33
+ `eraspace --help` and `eraspace <command> --help` list every flag.
34
+
35
+ ## Platform
36
+
37
+ The CLI deploys to the hosted eraspace platform by default. Set `ERASPACE_URL` or pass `--url` to use another one, such
38
+ as a local platform at `http://localhost:4000`.