Karakeep: the second new app through the checklist — template, record, fixture, first ladder step 0.33.1 -> 0.33.2
gates / gates (push) Successful in 2s

Bookmarks/articles/notes with a crawler (karakeep-chrome) and search (meilisearch v1.41.0). AI off unless the household
enters a key; setup gate + sign-up closed twice; Chrome healthcheck over bash /dev/tcp; smtp_mapping (plaintext), mail-off
boot measured; web memory 768M -> 1536M on measurements (bench watch, box crawl burst). onboarding/karakeep.md complete.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
adminandClaude Opus 5.5 committed 2026-10-01 18:01:07 +02:00
1 parent 195129cbb1
commit 882ac14309
8 files changed
+449

No files matched your search

+22
View File
@@ -490,6 +490,27 @@
"deploy_fields[SUBDOMAIN].label": "Aldomain",
"description": "Ingyenes és nyílt forráskódú média szerver"
},
"karakeep": {
"app_info.add_people": "A családtagodat te hozod létre: Beállítások, Admin, Felhasználók, Új felhasználó.",
"app_info.first_steps[0]": "Nyisd meg a bookmarks.DOMAIN címet, és hozd létre a fiókodat (az első fiók lesz az admin)",
"app_info.first_steps[1]": "Kattints a „Kész, beállítottam\" gombra az alkalmazás oldalán - ezután más már nem regisztrálhat",
"app_info.first_steps[2]": "Telepítsd a böngészőbővítményt vagy a telefonos alkalmazást, és add meg: https://bookmarks.DOMAIN és egy API-kulcsot (Beállítások, API-kulcsok)",
"app_info.first_steps[3]": "Mentsd el az első könyvjelződet",
"app_info.tagline": "Könyvjelzők, cikkek és jegyzetek mentése - kereshető saját archívum",
"app_info.use_cases[0]": "Weboldalak mentése: a Karakeep letölti és elteszi a tartalmukat, akkor is, ha az oldal később eltűnik",
"app_info.use_cases[1]": "Jegyzetek, képek és PDF-ek egy helyen, teljes szöveges kereséssel",
"app_info.use_cases[2]": "Böngészőbővítmény és telefonos alkalmazás a gyors mentéshez",
"app_info.use_cases[3]": "AI-címkézés csak akkor, ha te megadsz hozzá egy OpenAI-kulcsot - alapból ki van kapcsolva",
"deploy_fields[DOMAIN].description": "A szerver domain neve",
"deploy_fields[DOMAIN].label": "Domain",
"deploy_fields[MEILI_MASTER_KEY].label": "Keresőindex-kulcs",
"deploy_fields[NEXTAUTH_SECRET].label": "Munkamenet-kulcs",
"deploy_fields[OPENAI_API_KEY].description": "Üresen hagyva az automatikus AI-címkézés ki van kapcsolva, és semmi nem megy ki a szerveredről. Ha megadod, minden új könyvjelző szövege az OpenAI-hoz kerül címkézésre.",
"deploy_fields[OPENAI_API_KEY].label": "OpenAI API-kulcs (nem kötelező)",
"deploy_fields[SUBDOMAIN].description": "Az alkalmazás aldomainje",
"deploy_fields[SUBDOMAIN].label": "Aldomain",
"description": "Könyvjelzők, cikkek, jegyzetek és képek egy helyen, kereshetően"
},
"kimai": {
"app_info.default_creds": "(telepítéskor megadott admin email és jelszó)",
"app_info.first_steps[0]": "Nyisd meg a time.DOMAIN címet a böngészőben",
@@ -1184,6 +1205,7 @@
}
},
"reasons": {
"karakeep": "new app 2026-10-01 through NEW-APP-CHECKLIST.md: te-form, no kérjük; reviewed by CC against the operator rules",
"radicale": "new app 2026-10-01 through NEW-APP-CHECKLIST.md: te-form, no kérjük; reviewed by CC against the operator rules"
}
}
+74
View File
@@ -1930,6 +1930,79 @@ class Radicale:
return ok
# =============================================================================================
class Karakeep:
"""Karakeep (2026-10-01, new app through NEW-APP-CHECKLIST.md). THE FRONT DOOR is the app's own: the first account
is made by its sign-up call (tRPC `users.create` — the first account becomes the admin; through the setup gate on the
box, as the household), then the route its phone app uses to sign in — `apiKeys.exchange` (email + password -> an API
key) — and the REST API: `POST /api/v1/bookmarks` (a text bookmark with a unique title), read back with
`GET /api/v1/bookmarks/<id>`. Negative controls on every readback: no key 401, a wrong key 401, an id never made 404.
A text bookmark, not a URL: the crawler's success depends on the internet, the read-back must not."""
sub = "bookmarks"
@staticmethod
def _trpc(w, sub, proc, payload):
rc, code, out = w.app_curl(sub, f"/api/trpc/{proc}?batch=1", "-H", "Content-Type: application/json",
data=json.dumps({"0": {"json": payload}}), method="POST")
try:
return code, json.loads(out)[0]
except Exception:
return code, {"_raw": (out or "")[:200]}
def _key(self, w, sub, t):
code, r = self._trpc(w, sub, "apiKeys.exchange", {"keyName": "felhom-" + secrets.token_hex(3),
"email": t["email"], "password": t["pw"]})
return ((r.get("result") or {}).get("data") or {}).get("json", {}).get("key") if code == "200" else None
def seed(self, w, sub, say):
if not w.wait_app(sub, "/api/health", want=("200",), tries=72):
self.tried = "/api/health never answered 200"
return None
email = "admin-" + secrets.token_hex(3) + "@felhom.invalid"
pw = "Kk-" + secrets.token_hex(10)
code, r = self._trpc(w, sub, "users.create", {"name": "Felhom", "email": email, "password": pw, "confirmPassword": pw})
role = ((r.get("result") or {}).get("data") or {}).get("json", {}).get("role")
say(f" karakeep: users.create (the first account) http={code} role={role}")
if code != "200":
self.tried = f"users.create -> {code} {str(r)[:120]}"
return None
t = {"email": email, "pw": pw}
key = self._key(w, sub, t)
if not key:
self.tried = "apiKeys.exchange gave no key"
return None
title = "felhom-seed-" + secrets.token_hex(4)
rc, code, out = w.app_curl(sub, "/api/v1/bookmarks", "-H", f"Authorization: Bearer {key}", "-H", "Content-Type: application/json",
data=json.dumps({"type": "text", "text": "Felhom teszt jegyzet " + title, "title": title}), method="POST")
say(f" karakeep: POST /api/v1/bookmarks http={code}")
try:
bid = json.loads(out)["id"]
except Exception:
self.tried = f"POST bookmark -> {code} {(out or '')[:120]}"
return None
t.update({"id": bid, "title": title, "role": role})
return t
def verify(self, w, sub, t, say):
if not w.wait_app(sub, "/api/health", want=("200",), tries=72):
say(" karakeep: /api/health never answered")
return False
key = self._key(w, sub, t)
if not key:
say(" karakeep: the household's email + password no longer give a key")
return False
rc, c_none, _ = w.app_curl(sub, f"/api/v1/bookmarks/{t['id']}")
rc, c_wrong, _ = w.app_curl(sub, f"/api/v1/bookmarks/{t['id']}", "-H", "Authorization: Bearer ak1_felhom_wrong")
rc, c_absent, _ = w.app_curl(sub, "/api/v1/bookmarks/never" + secrets.token_hex(4), "-H", f"Authorization: Bearer {key}")
if c_none != "401" or c_wrong != "401" or c_absent != "404":
say(f" karakeep: READBACK UNUSABLE — no key {c_none}, wrong key {c_wrong}, absent id {c_absent}")
return False
rc, code, out = w.app_curl(sub, f"/api/v1/bookmarks/{t['id']}", "-H", f"Authorization: Bearer {key}")
ok = code == "200" and t["title"] in (out or "")
say(f" karakeep: readback http={code} found={ok} (controls: no key {c_none}, wrong {c_wrong}, absent {c_absent})")
return ok
FIXTURES = {
"uptime-kuma": UptimeKuma(),
"crafty-controller": Crafty(),
@@ -1967,4 +2040,5 @@ FIXTURES = {
"claper": Claper(),
"calcom": Calcom(),
"radicale": Radicale(),
"karakeep": Karakeep(),
}