Memories Web
Open Memories Web in a browser and connect to an existing hosted Center. This is a Center client, not a browser-local encrypted vault. Center operators can read hosted content. Native clients remain the place for device-only secrets, end-to-end pairing, and conflict resolution.
Connect
With account authentication enabled, choose Log in or Register. Email registration sends a one-time verification code, valid for 15 minutes. Enter it and choose a password of 12-256 UTF-8 bytes to create your private hosted vault, then log in. Username registration is available when selected by the operator. Registration may be closed independently of login. SMTP failure never bypasses verification. With SMTP configured, verified email accounts can reset a forgotten password from the login screen, even when registration is closed. Username-only accounts have no email recovery. Account settings require the current password: usernames change directly; email changes require a code sent to the new mailbox. Codes expire after 15 minutes and are single-use. Successful changes preserve the vault and content, revoke existing sessions and delegated grants, and require a new login. Account types cannot be converted.
For administrator-provisioned members or older Centers, choose Use token:
- Obtain your Center's HTTPS origin and a member or scoped grant token from its administrator. An admin token does not authorize content access.
- Enter the origin and token in Web. For hosted SaaS, use
https://memories.ivjn.us; the public Web page selects this address by default. You can also enter your own Center (for examplehttps://center.example.com). Do not put tokens or passwords into URLs. Existing member tokens continue to work and are not automatically converted into password accounts. - The granted vault and scope appear after connection. Read, write and delete controls follow the grant; the server independently enforces every operation.
You can browse memories, knowledge cards and files; search their titles/tags;
create and edit memory/card text; edit card tags and privacy; upload files up to
12 MiB (browser precheck only); download files; and delete items when your grant permits it. Additional
card fields are displayed read-only, with sensitive fields hidden. Updating text
preserves existing structured and protected metadata on the server. Credentials,
E2E secret material and conflicted revisions are not editable in this client.
Reads return an opaque revision. The editor sends it in If-Match on save.
If another client saved first, Center rejects the stale update (HTTP 412; RPC
uses 409) and the editor keeps the draft. Copy the draft before reopening the
latest version and merge changes deliberately. Missing update preconditions are
rejected with HTTP 428. Reloading the page still discards unsaved drafts.
These are format/transport ceilings, not guaranteed upload sizes. Hosted admission measures serialized state, including encryption/base64 overhead and history: 6 MiB of revisions and 8 MiB total per vault, 48 MiB total state when content grows and 56 MiB total state, below the 64 MiB packet ceiling. Existing content reduces remaining capacity. See storage limits.
Files are downloaded as attachments and never executed or previewed in the page.
The search box filters titles and tags locally by default. When the Center has retrieval configured, choose Semantic or Hybrid to ask the Center for embedding-based results ranked by meaning, with a short matching snippet; they exclude private content and credentials and respect the selected content type. The Center embeds changed content in the background, and the status line shows indexing progress. Centers without retrieval return to title and tag search. See retrieval.
Deploy with a Center
New Center builds include the same frontend at /app/. No additional web server
is needed. Use the existing HTTPS reverse proxy in front of the Center for remote
access; plain HTTP is supported only on loopback for local development.
Same-origin use (https://center.example.com/app/ connecting to
https://center.example.com) requires no CORS configuration. To use the public
website as the frontend, allow that specific origin when starting the Center:
memories-center --data /path/to/center --web-origin https://memories.ivjn.us
Keep the existing protected environment configuration for signing, admin tokens,
grants and the hosted password. --web-origin is repeatable or comma-separated;
MEMORIES_CENTER_WEB_ORIGINS is its equivalent environment setting. HTTPS origins
are required except for explicit localhost/loopback development origins. No
wildcard, credentialed URL, path, query or fragment is accepted.
CORS is limited to hosted session, account authentication, memories and RPC endpoints. It does not
allow browser access to admin, enrollment or grant-management endpoints and does
not relax bearer authorization. An existing Center must be upgraded to serve
/app/ or use this origin setting. A reverse proxy that already implements an
equivalent exact-origin policy can serve the existing content API instead.
Session behavior
Account login creates a bearer grant that lasts one year. Lock / disconnect revokes that session at the Center and clears it from the browser. Password resets and account identity changes revoke every session of the account. If the browser cannot send the logout request, the grant remains valid until it is revoked or expires. Closing registration or changing its mode does not terminate existing accounts.
The Center origin, bearer (account session or member token) and its expiry are
saved in this browser's localStorage under memories.web.session. Reloading,
navigating to the website home page and back, or reopening the browser keeps you
signed in; other tabs on the same origin share the session, and signing out in
one tab signs out the others. There is no idle or background lock. The session
ends only when the Center reports it invalid (HTTP 401: expired, revoked or a
removed member), at its expiry time, or when you choose Lock / disconnect.
Network errors, timeouts, rate limiting and a locked Center (HTTP 503) keep the
stored session so you can retry. Content is held in page memory only and is not
written to browser storage; unsaved drafts are lost on reload, and the page asks
before leaving with unsaved changes.
Persisting the bearer is a deliberate trade-off. Any script running on the page origin, a malicious browser extension, or anyone who can use your browser profile can read and use it until it expires (one year for account sessions; member tokens issued by an administrator may not expire). Always disconnect on shared computers, and ask your administrator to revoke a token you no longer control. JavaScript garbage collection does not guarantee physical erasure of memory, and downloaded files remain on your device.
The website home page reads the same stored session. It shows Open your
workspace with a signed-in mark only after the Center confirms the session
with GET /v1/session; a 401 clears the stored session, and any other failure
leaves both the session and the default link unchanged.
The client binds each token to the selected origin and rejects redirects. It cancels pending requests on disconnect and discards late responses. A request that reached the server can still finish after cancellation: check the result before retrying an interrupted write.
中文使用说明
打开网页版,填写自己的 Center HTTPS 地址,以及
管理员提供的成员或授权令牌。托管 SaaS 地址为 https://memories.ivjn.us,官网网页版
会默认选择该地址,也可以手动连接自己的 Center。启用账号服务后可选择登录或注册:邮箱
模式先验证邮箱再设置密码,用户名模式直接创建账号。管理员可关闭注册,已有账号仍可登录。
已有成员可选择“使用令牌”;管理员令牌不能用于内容登录。
连接后可浏览、按标题和标签搜索记忆/卡片/文件(Center 启用检索时,还可切换为「语义」或「混合」 搜索,由 Center 在后台建立嵌入索引,结果不含私人内容与凭据),编辑记忆与卡片正文、标签和私人标记, 上传最大 12 MiB(仅浏览器预检查) 的文件并下载,在权限允许时删除内容。卡片附加字段目前只读,敏感字段 保持隐藏;编辑正文不会覆盖服务器已有的结构化资料。凭据、设备端到端秘密和版本冲突 请继续使用原生客户端处理。
这些是格式/传输上限,不是保证可上传的文件大小。托管准入计算序列化状态,包含加密/base64 开销和历史:每库修订总量 6 MiB、每库总量 8 MiB;内容增长时全局状态上限为 48 MiB、状态总量为 56 MiB,低于 64 MiB 数据包上限。既有内容会占用剩余容量。参见存储限制。
新版 Center 自带 /app/ 页面,同源连接不需要跨域设置。从官网连接自己的 Center 时,
请为服务增加 --web-origin https://memories.ivjn.us,并沿用原来的受保护服务环境配置。
这只开放指定内容接口的浏览器来源,不改变每次请求的令牌与权限校验。
账号登录会话有效期为 1 年。Center 地址、令牌(账号会话或成员令牌)及其到期时间保存在
本浏览器的 localStorage(memories.web.session)中:刷新、回到官网首页再进入、重新打开
浏览器都会保持登录,同源的其他标签页共享同一会话,在任一标签页断开会同步退出其他标签页。
没有空闲锁定或后台锁定;只有 Center 返回 401(过期、被撤销或成员被移除)、到达到期时间,
或点击「锁定 / 断开」才会退出。网络错误、超时、限流和 Center 锁定(503)都会保留登录,
方便重试。内容只放在页面内存中,不写入浏览器存储;刷新会丢失未保存的编辑,离开前会提示。
保存令牌是有意的取舍:同源页面上的任何脚本、恶意浏览器扩展,或能使用你浏览器配置的人,
都可以在到期前读取并使用它(账号会话最长 1 年;管理员签发的成员令牌可能不过期)。
在共用电脑上用完务必断开;不再掌控的令牌请让管理员撤销。官网首页读取同一份会话,
先调用 GET /v1/session 核实后才显示「进入工作区」与已登录标记;返回 401 会清除保存的
会话,其他错误不改变会话和按钮。数据保存在 Center,服务器运营者可以读取;本版本不提供
浏览器本地加密保险库。网络中断时先刷新核对写入结果,避免重复提交。
REST title/body updates preserve stored sensitive fields: the server merges public field descriptors and the shared service restores their protected values. A write-only update response includes only submitted fields and identifiers.
The current CLI follows the same hosted update contract. memory put and
card put preserve the revision from their metadata read. For a draft prepared
from an earlier read, pass --id ID --expected-revision REVISION to bind the save
to that original snapshot; the explicit value takes precedence. File and raw
credential replacements (file import, credential add/import, and catch)
accept the same options and require the explicit revision on hosted stores.
They do not read credential bodies to obtain it: use authorized revision history
metadata. Creation without --id needs no revision. A stale response is an error;
these commands never fetch a newer token and retry the write automatically.