offgrid-ai 0.8.5 → 0.8.6
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 +9 -5
- package/package.json +1 -1
- package/src/postinstall.mjs +0 -6
package/README.md
CHANGED
|
@@ -29,24 +29,28 @@ offgrid-ai stop # stop a running server
|
|
|
29
29
|
|
|
30
30
|
## Install
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
### Recommended: one command installer
|
|
33
|
+
|
|
34
|
+
Installs Node.js if you don't have it, then installs offgrid-ai and adds it to your PATH. Prints a welcome message so you know it worked.
|
|
33
35
|
|
|
34
36
|
```bash
|
|
35
37
|
curl -fsSL https://raw.githubusercontent.com/eeshansrivastava89/offgrid-ai/main/install.sh | bash
|
|
36
38
|
```
|
|
37
39
|
|
|
38
|
-
Or
|
|
40
|
+
Or review the install script first:
|
|
39
41
|
|
|
40
42
|
```bash
|
|
41
|
-
|
|
43
|
+
curl -fsSL https://raw.githubusercontent.com/eeshansrivastava89/offgrid-ai/main/install.sh | less
|
|
42
44
|
```
|
|
43
45
|
|
|
44
|
-
|
|
46
|
+
### Already have Node.js?
|
|
45
47
|
|
|
46
48
|
```bash
|
|
47
|
-
|
|
49
|
+
npm install -g offgrid-ai@latest --prefer-online
|
|
48
50
|
```
|
|
49
51
|
|
|
52
|
+
This works without extra flags, but npm hides postinstall output by default, so you won't see the welcome message. Open a new terminal window or run `source ~/.zshrc` and then `offgrid-ai`.
|
|
53
|
+
|
|
50
54
|
## How it works
|
|
51
55
|
|
|
52
56
|
1. **Auto-detect everything.** Scans for GGUF models in LM Studio and Hugging Face cache directories, and checks managed backends like Ollama/oMLX through their local APIs. Reads model metadata (quantization, context size, vision, thinking mode) directly from GGUF files. No presets, no manual configuration.
|
package/package.json
CHANGED
package/src/postinstall.mjs
CHANGED
|
@@ -26,12 +26,6 @@ if (isHermesPrefix(prefix, process.env.HOME)) {
|
|
|
26
26
|
const npmBin = join(prefix, "bin");
|
|
27
27
|
const marker = "# Added by offgrid-ai installer";
|
|
28
28
|
const pathLine = `export PATH="${npmBin}:$PATH"`;
|
|
29
|
-
const currentPath = process.env.PATH ?? "";
|
|
30
|
-
|
|
31
|
-
if (currentPath.split(":").includes(npmBin)) {
|
|
32
|
-
console.log(`offgrid-ai is already on PATH (${npmBin})`);
|
|
33
|
-
process.exit(0);
|
|
34
|
-
}
|
|
35
29
|
|
|
36
30
|
const home = process.env.HOME;
|
|
37
31
|
if (!home) {
|