@lamsa/cli 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 +30 -2
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +1330 -0
- package/dist/index.d.ts +114 -0
- package/dist/index.js +1 -0
- package/dist/render-B5Kz3okC.js +2764 -0
- package/package.json +61 -4
- package/skill/SKILL.md +120 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Shunseii
|
|
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,31 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center"><img src="https://raw.githubusercontent.com/Shunseii/lamsa/main/docs/banner.png" alt="lamsa: a local-first design tool. Designs are JSON in your repo, your coding agent does the work, you add the touch."></p>
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# lamsa
|
|
4
|
+
|
|
5
|
+
lamsa (لمسة, "a touch") is an open-source, local-first design tool for developers and design engineers. Designs are plain JSON files in your app's repo, reviewed in pull requests. Your own coding agent does the bulk of the work through this CLI; you add the touch in the desktop editor.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
Needs Node 22 or later.
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm i -g @lamsa/cli # for yourself
|
|
13
|
+
pnpm add -D @lamsa/cli # for a team: pins the version in your repo, so CI and every agent use it
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
`lamsa render` uses your installed Chrome, or downloads Chromium once on first use.
|
|
17
|
+
|
|
18
|
+
## Use
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
lamsa init --agent claude --yes # config, agent skill, AGENTS.md section
|
|
22
|
+
lamsa tokens # what your app's CSS defines
|
|
23
|
+
lamsa add --file designs/home.lamsa.json --tree '{"type":"frame","name":"Home","style":{"width":390,"height":844}}'
|
|
24
|
+
lamsa validate # errors name the node ID and a fix
|
|
25
|
+
lamsa render Home # PNGs in .lamsa/render/
|
|
26
|
+
lamsa diff main # what changed since main, rendered before and after
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Run `lamsa --help` for every command. See the [repository](https://github.com/Shunseii/lamsa) for the editor, the file format and the spec.
|
|
30
|
+
|
|
31
|
+
MIT licensed.
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|