stik-cli 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 +34 -0
- package/bin/note.js +2 -0
- package/bin/stik.js +2 -0
- package/dist/darwin-arm64/note +0 -0
- package/dist/darwin-arm64/stik +0 -0
- package/lib/launch.js +49 -0
- package/package.json +40 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Jack Adams-Lovell
|
|
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
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# stik
|
|
2
|
+
|
|
3
|
+
> CLI-first sticky notes + idea capture, warm-tone terminal UI.
|
|
4
|
+
|
|
5
|
+
Two commands over one local SQLite store — everything lives in your terminal, nothing leaves your machine.
|
|
6
|
+
|
|
7
|
+
- **`note`** — sticky-note CRUD: titles, bodies, tags, due dates, colors, pin/archive.
|
|
8
|
+
- **`stik`** — drop a markdown idea into a project's `ideas/` folder, with recent-location picking.
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
```sh
|
|
13
|
+
npm install -g stik-cli
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
This installs prebuilt native binaries (the CLIs are written in Rust).
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
note add "ship v0.1" --tag release --due "in 2d" --color blue
|
|
22
|
+
note ls
|
|
23
|
+
note show <id>
|
|
24
|
+
|
|
25
|
+
stik # interactive idea capture
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Platform support
|
|
29
|
+
|
|
30
|
+
Currently **macOS (Apple Silicon)** only — that's the prebuilt binary bundled in this package. Other platforms can build from source with cargo and set `STIK_BIN` / `NOTE_BIN` to the built binaries.
|
|
31
|
+
|
|
32
|
+
## License
|
|
33
|
+
|
|
34
|
+
MIT
|
package/bin/note.js
ADDED
package/bin/stik.js
ADDED
|
Binary file
|
|
Binary file
|
package/lib/launch.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const { spawnSync } = require('child_process');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const fs = require('fs');
|
|
6
|
+
|
|
7
|
+
function isExecutable(p) {
|
|
8
|
+
try {
|
|
9
|
+
fs.accessSync(p, fs.constants.X_OK);
|
|
10
|
+
return fs.statSync(p).isFile();
|
|
11
|
+
} catch {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function launch(name) {
|
|
17
|
+
const override = process.env[`${name.toUpperCase()}_BIN`];
|
|
18
|
+
const bundled = path.join(
|
|
19
|
+
__dirname,
|
|
20
|
+
'..',
|
|
21
|
+
'dist',
|
|
22
|
+
`${process.platform}-${process.arch}`,
|
|
23
|
+
name
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
const bin = [override, bundled].filter(Boolean).find(isExecutable);
|
|
27
|
+
|
|
28
|
+
if (!bin) {
|
|
29
|
+
console.error(
|
|
30
|
+
`${name}: no prebuilt binary for ${process.platform}-${process.arch}.`
|
|
31
|
+
);
|
|
32
|
+
console.error(
|
|
33
|
+
'stik currently ships macOS arm64 binaries. On other platforms, build'
|
|
34
|
+
);
|
|
35
|
+
console.error(
|
|
36
|
+
`from source with cargo and point ${name.toUpperCase()}_BIN at the binary.`
|
|
37
|
+
);
|
|
38
|
+
process.exit(1);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const result = spawnSync(bin, process.argv.slice(2), { stdio: 'inherit' });
|
|
42
|
+
if (result.error) {
|
|
43
|
+
console.error(`${name}: ${result.error.message}`);
|
|
44
|
+
process.exit(1);
|
|
45
|
+
}
|
|
46
|
+
process.exit(result.status ?? 1);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
module.exports = launch;
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "stik-cli",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "CLI-first sticky notes + idea capture with a warm-tone terminal UI. Ships the `note` and `stik` commands.",
|
|
5
|
+
"bin": {
|
|
6
|
+
"stik": "bin/stik.js",
|
|
7
|
+
"note": "bin/note.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"bin",
|
|
11
|
+
"lib",
|
|
12
|
+
"dist",
|
|
13
|
+
"README.md",
|
|
14
|
+
"LICENSE"
|
|
15
|
+
],
|
|
16
|
+
"os": [
|
|
17
|
+
"darwin"
|
|
18
|
+
],
|
|
19
|
+
"cpu": [
|
|
20
|
+
"arm64"
|
|
21
|
+
],
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": ">=18"
|
|
24
|
+
},
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/adamsjack711-ux/stik.git"
|
|
28
|
+
},
|
|
29
|
+
"keywords": [
|
|
30
|
+
"sticky-notes",
|
|
31
|
+
"notes",
|
|
32
|
+
"cli",
|
|
33
|
+
"ideas",
|
|
34
|
+
"capture",
|
|
35
|
+
"sqlite",
|
|
36
|
+
"terminal"
|
|
37
|
+
],
|
|
38
|
+
"author": "Jack Adams-Lovell",
|
|
39
|
+
"license": "MIT"
|
|
40
|
+
}
|