memory-anywhere 0.0.0-stage → 0.5.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.
Files changed (40) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +79 -2
  3. package/bin/memory-anywhere.mjs +59615 -0
  4. package/deploy/app.mjs +972 -0
  5. package/deploy/cdk.json +8 -0
  6. package/deploy/host/firstboot.sh +43 -0
  7. package/deploy/host/ma-updater.service +10 -0
  8. package/deploy/host/ma-updater.sh +252 -0
  9. package/deploy/host/ma-updater.timer +10 -0
  10. package/deploy/host/pins.env +24 -0
  11. package/deploy/host/release/first-store.sh +32 -0
  12. package/deploy/host/release/install.sh +249 -0
  13. package/deploy/host/release/libexec/ma-maint.sh +49 -0
  14. package/deploy/host/release/libexec/ma-selfcheck.sh +14 -0
  15. package/deploy/host/release/libexec/manifest-at.sh +42 -0
  16. package/deploy/host/release/libexec/outbox.sh +83 -0
  17. package/deploy/host/release/libexec/secrets.sh +15 -0
  18. package/deploy/host/release/tmpfiles.conf +13 -0
  19. package/deploy/host/release/units/caddy.service +26 -0
  20. package/deploy/host/release/units/litestream.service +28 -0
  21. package/deploy/host/release/units/ma-maint.service +7 -0
  22. package/deploy/host/release/units/ma-selfcheck.path +9 -0
  23. package/deploy/host/release/units/ma-selfcheck.service +9 -0
  24. package/deploy/host/release/units/memory-anywhere-outbox.path +9 -0
  25. package/deploy/host/release/units/memory-anywhere-outbox.service +21 -0
  26. package/deploy/host/release/units/memory-anywhere-secrets.service +25 -0
  27. package/deploy/host/release/units/memory-anywhere.service +35 -0
  28. package/deploy/release-keys/release.pub +2 -0
  29. package/package.json +28 -4
  30. package/plugins/claude-code/.claude-plugin/icon.png +0 -0
  31. package/plugins/claude-code/.claude-plugin/marketplace.json +12 -0
  32. package/plugins/claude-code/.claude-plugin/plugin.json +6 -0
  33. package/plugins/claude-code/.mcp.json +9 -0
  34. package/plugins/claude-code/README.md +11 -0
  35. package/plugins/claude-code/dist/memory-anywhere.mjs +59615 -0
  36. package/plugins/claude-code/hooks/hooks.json +30 -0
  37. package/plugins/claude-code/skills/memory-anywhere/SKILL.md +11 -0
  38. package/plugins/cursor/.cursor-plugin/plugin.json +6 -0
  39. package/plugins/cursor/dist/memory-anywhere.mjs +59615 -0
  40. package/plugins/cursor/rules/memory-anywhere.mdc +10 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 the memory-anywhere authors
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,80 @@
1
- # Temporary Holding Version
1
+ # memory-anywhere
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
+ One personal memory that all your AI apps share. Tell Claude something about yourself, and ChatGPT,
4
+ Gemini, Grok, Cursor, Claude Code and Codex know it too, on the PC and on the phone.
5
+
6
+ ```
7
+ Claude ──┐ ┌── Cursor
8
+ ChatGPT ──┤ ├── Claude Code
9
+ Gemini ──┼──▶ ▣ ◀──┼── Codex
10
+ Grok ──┘ store └── mema (you)
11
+ ```
12
+
13
+ The store keeps what stays true (preferences, stable facts, people, projects, decisions, corrections)
14
+ and refuses the rest: task details, secrets, and sensitive topics unless you ask. Every save goes through
15
+ the same fixed rules, so an app cannot overwrite what you said or raise its own trust. The store belongs
16
+ to you alone and runs on your PC or in your own AWS account, never on a shared service.
17
+
18
+ ## Start on your PC
19
+
20
+ You need Node 24 or newer.
21
+
22
+ ```sh
23
+ npm install -g memory-anywhere
24
+ mema init --local
25
+ ```
26
+
27
+ `init` finds Claude Code, Codex and Cursor, shows every file it will change, installs the matching
28
+ server package, and asks once. Open your
29
+ coding tool in a repository, run `mema enable` there, and say something about yourself; a new session
30
+ will know it. Local mode keeps everything on this PC, so phone and web apps cannot reach it.
31
+ [Guide: local mode](https://github.com/raiden-02/memory-anywhere/blob/main/docs/guide/02-local-mode.md).
32
+
33
+ ## Reach it from every app
34
+
35
+ Phone and web apps need a store on the internet. `mema deploy aws --stage prod` builds one small
36
+ machine in your own AWS account, at a hostname you own (for example `memory.example.com`), with
37
+ continuous backups. Then you connect each app through a short pairing window that you open and approve
38
+ with a passkey. [Guide: your own AWS](https://github.com/raiden-02/memory-anywhere/blob/main/docs/guide/04-your-own-aws.md) ·
39
+ [Guide: connect apps](https://github.com/raiden-02/memory-anywhere/blob/main/docs/guide/03-connect-apps.md).
40
+
41
+ It costs about **$21 a month** in us-east-1, the machine being $12 of that
42
+ ([measured](https://github.com/raiden-02/memory-anywhere/blob/main/docs/results/report.md)). Local mode costs nothing. Budget alerts email you when the month's
43
+ forecast passes $25 or the bill passes $30.
44
+
45
+ ## What it promises
46
+
47
+ - **Deleting means deleted.** A purged memory is unreadable at once, gone from the machine's files within
48
+ 48 hours and from every backup within 30 days.
49
+ - **History cannot be quietly rewritten.** A daily manifest of the store's hash goes to a bucket that no
50
+ one, AWS root included, can change for 90 days.
51
+ - **No app connects unless you let it.** Each new connection needs a pairing window you opened and a
52
+ passkey approval; every new connection emails you.
53
+
54
+ ## Risks you accept
55
+
56
+ memory-anywhere limits who can read and write your memory. It cannot limit these:
57
+
58
+ - **The AI vendors** (Anthropic, OpenAI, Google, xAI) see what their app recalls or saves, under their
59
+ own retention and training settings. Gemini keeps activity 18 months by default and has some chats
60
+ reviewed by people: set its auto-delete to 3 months, and keep sensitive sections off for remote apps.
61
+ - **Gemini** may pass content from your email and connected apps, including other people's messages,
62
+ into what it saves.
63
+ - **The extraction model** you configure sees your redacted prompts from the repositories you enable,
64
+ and the history you import.
65
+ - **Malware running as you on your PC** can use the PC's sign-in, within its limits, until you revoke it.
66
+ - **During a deploy** (at most one hour, signed in to the deploy role), a hijacked agent on the PC could
67
+ change the machine and so reach the data. Every such change sends an immediate alert.
68
+ - **AWS** operates the encryption keys: encryption protects against a leaked bucket, not against AWS.
69
+ - **Your hostname is public** (certificate logs), and your DNS provider could repoint it if your account
70
+ there were taken over. No control depends on the hostname being secret; TLS and the pairing window
71
+ contain a repointed record.
72
+
73
+ The full threat model: [auth-and-security](https://github.com/raiden-02/memory-anywhere/blob/main/docs/design/spec/auth-and-security.md).
74
+
75
+ ## Learn more
76
+
77
+ The docs are a short course: [docs/README.md](https://github.com/raiden-02/memory-anywhere/blob/main/docs/README.md). It starts with
78
+ [how it works](https://github.com/raiden-02/memory-anywhere/blob/main/docs/guide/01-how-it-works.md) and ends with the measured results.
79
+ Contributing: [CONTRIBUTING.md](https://github.com/raiden-02/memory-anywhere/blob/main/CONTRIBUTING.md) · Security reports: [SECURITY.md](https://github.com/raiden-02/memory-anywhere/blob/main/SECURITY.md) ·
80
+ License: [MIT](https://github.com/raiden-02/memory-anywhere/blob/main/LICENSE).