apple-fm 1.0.0 → 1.0.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 +15 -36
- package/bin/apple-fm-helper +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,22 +4,14 @@
|
|
|
4
4
|
the on-device **Foundation Models** on **macOS 26+ / Apple Silicon** — free,
|
|
5
5
|
private, and fully offline. No API key, no network, nothing leaves your Mac.
|
|
6
6
|
|
|
7
|
-
Apple ships
|
|
8
|
-
front-end. apple-fm provides one
|
|
9
|
-
|
|
7
|
+
Apple ships these models as a Swift-only framework with no command-line
|
|
8
|
+
front-end. apple-fm provides one — a fast, lightweight CLI and a TypeScript
|
|
9
|
+
library, so you can use the on-device model from your terminal or your code.
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
12
12
|
<img src="assets/demos/generate.svg" alt="apple-fm generate "Explain a closure in one sentence." runs Apple's on-device model and prints the answer — fully offline, no API key." width="820">
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
|
-
> ℹ️ **Status.** Published to npm with a Developer-ID **signed + notarized**
|
|
16
|
-
> helper, and smoke-verified on a macOS 26 / Apple Intelligence machine — probe,
|
|
17
|
-
> generate (freeform / guided / streamed), native guaranteed-structure output, and
|
|
18
|
-
> persistent multi-turn chat all work on-device. The one tracked gap is an
|
|
19
|
-
> automated on-device *generation* test in CI: hosted runners build, sign, and
|
|
20
|
-
> notarize the helper but can't run the model (it needs Apple Intelligence). See
|
|
21
|
-
> [docs/3-requirements.md](docs/3-requirements.md).
|
|
22
|
-
|
|
23
15
|
## Why apple-fm
|
|
24
16
|
|
|
25
17
|
- **On-device & private.** Runs on the model Apple Intelligence already
|
|
@@ -35,8 +27,8 @@ tested, **zero-runtime-dependency** Node layer gives you a CLI and a library.
|
|
|
35
27
|
session across turns, reusing the model's cache instead of replaying the
|
|
36
28
|
transcript, and automatically summarizes older turns as the small context
|
|
37
29
|
window fills.
|
|
38
|
-
- **
|
|
39
|
-
|
|
30
|
+
- **Lightweight, nothing to audit.** Zero runtime dependencies — apple-fm just
|
|
31
|
+
talks to the on-device model and gets out of your way.
|
|
40
32
|
- **Future-proof.** The helper resolves the current on-device model at runtime,
|
|
41
33
|
so OS and model updates are picked up without a rebuild.
|
|
42
34
|
|
|
@@ -47,15 +39,9 @@ npm install -g apple-fm # CLI
|
|
|
47
39
|
npm install apple-fm # library
|
|
48
40
|
```
|
|
49
41
|
|
|
50
|
-
Requires macOS 26+ on Apple Silicon with Apple Intelligence enabled.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
npm run build:helper # → bin/apple-fm-helper (needs Xcode 26 / macOS 26 SDK)
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
The helper is located via `APPLE_FM_BIN`, then the bundled `bin/apple-fm-helper`,
|
|
58
|
-
then `apple-fm-helper` on `PATH`.
|
|
42
|
+
Requires macOS 26+ on Apple Silicon with Apple Intelligence enabled. Every
|
|
43
|
+
release is Developer-ID signed and notarized, so it runs without security
|
|
44
|
+
prompts.
|
|
59
45
|
|
|
60
46
|
### Platform support
|
|
61
47
|
|
|
@@ -143,23 +129,16 @@ documented in [docs/ai/code-summary.md](docs/ai/code-summary.md).
|
|
|
143
129
|
|
|
144
130
|
## How it works
|
|
145
131
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
reused instead of replaying the transcript), while the Node side keeps the
|
|
153
|
-
transcript so it can summarize older turns as the small context window fills — so
|
|
154
|
-
long conversations stay coherent and cheap. Because the helper resolves the
|
|
155
|
-
current on-device model at runtime, OS and model updates are picked up without a
|
|
156
|
-
rebuild.
|
|
132
|
+
apple-fm talks to the same on-device model that powers Apple Intelligence —
|
|
133
|
+
nothing is sent to the cloud. For chat it keeps one model session alive across
|
|
134
|
+
turns so replies stay fast, and automatically summarizes older messages as the
|
|
135
|
+
context window fills, so long conversations stay coherent and cheap. And because
|
|
136
|
+
it resolves the current on-device model at runtime, OS and model updates are
|
|
137
|
+
picked up automatically — no reinstall.
|
|
157
138
|
|
|
158
139
|
## Documentation
|
|
159
140
|
|
|
160
|
-
- [Overview](docs/1-overview.md)
|
|
161
|
-
[Requirements](docs/3-requirements.md) · [Protocol](docs/4-protocol.md) ·
|
|
162
|
-
[Releasing](docs/5-releasing.md)
|
|
141
|
+
- [Overview](docs/1-overview.md)
|
|
163
142
|
|
|
164
143
|
## Disclaimer
|
|
165
144
|
|
package/bin/apple-fm-helper
CHANGED
|
Binary file
|