Strategie B (beschlossen 2026-05-08): Cards wird als eigenständige
föderierte App neu gebaut, ohne Code-Übernahme aus mana-monorepo.
Skelett enthält:
- apps/api: Hono+Bun mit /healthz, /version, Manifest-Endpoint, leere
pgSchema('cards'), Drizzle-Config, erstem Vitest
- apps/web: SvelteKit 2 + Svelte 5 (runes), Vite auf 3082
- packages/cards-domain: Pure-TS, CardType-Discriminated-Union,
SubIndex-Granularität für Reviews, Future-CardType-Set vorbereitet
- infrastructure/docker-compose.yml: Postgres 16 auf 5435
- app-manifest.json: v1.0.0, Verein-owned, beta-tier
- .github/workflows/ci.yml
- docs/LESSONS_FROM_MANA_MONOREPO.md (Read-Day-Output, 15 Lehren)
Pre-Flight für Phase 2 (Auth-Föderation): DNS cardecky.mana.how,
GitHub-Repo mana-ev/cards, Cards-App-Registrierung in mana-auth,
NPM_AUTH_TOKEN für Verdaccio.
Plan: mana/docs/playbooks/CARDS_GREENFIELD.md
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
65 lines
2 KiB
JSON
65 lines
2 KiB
JSON
{
|
|
"$schema": "https://pkg.mana.how/@mana/shared-share-protocol/0.1/manifest.json",
|
|
"schema_version": "0.1",
|
|
"id": "cards",
|
|
"name": "Cardecky",
|
|
"version": "1.0.0",
|
|
"homepage": "https://cardecky.mana.how",
|
|
"icon": "https://cardecky.mana.how/icon-512.png",
|
|
"description": "Spaced-repetition flashcards with FSRS scheduling.",
|
|
"description_de": "Lernkarten mit Spaced-Repetition (FSRS).",
|
|
"ownership": { "kind": "verein" },
|
|
"tier_required": "beta",
|
|
"endpoints": {
|
|
"base_url": "https://cardecky.mana.how",
|
|
"health": "/healthz",
|
|
"dsgvo_export": "/api/v1/dsgvo/export",
|
|
"search": "/api/v1/search",
|
|
"share_receive": "/api/v1/share/receive",
|
|
"tool_invoke": "/api/v1/tools/:name",
|
|
"deep_link_scheme": "cards://",
|
|
"link_patterns": [
|
|
{
|
|
"pattern": "card/(?<id>[a-z0-9_-]+)",
|
|
"template": "https://cardecky.mana.how/c/{id}"
|
|
},
|
|
{
|
|
"pattern": "deck/(?<id>[a-z0-9_-]+)",
|
|
"template": "https://cardecky.mana.how/d/{id}"
|
|
}
|
|
]
|
|
},
|
|
"shares": [{ "type": "mana/card", "schema_ref": "/payload-schemas/card.json" }],
|
|
"accepts": [
|
|
{ "type": "mana/quote", "handler": "create_card_from_quote" },
|
|
{ "type": "mana/url", "handler": "save_link_as_card" },
|
|
{ "type": "mana/text", "handler": "create_card_from_text" }
|
|
],
|
|
"tools": [
|
|
{
|
|
"name": "cards.create",
|
|
"description": "Erzeugt eine Lernkarte für den authentifizierten User.",
|
|
"input_schema": { "$ref": "/payload-schemas/create-card-input.json" },
|
|
"output_schema": { "$ref": "/payload-schemas/card.json" },
|
|
"auth": "user_token"
|
|
},
|
|
{
|
|
"name": "cards.search",
|
|
"description": "Sucht in den Lernkarten des authentifizierten Users.",
|
|
"input_schema": { "$ref": "/payload-schemas/search-input.json" },
|
|
"output_schema": { "$ref": "/payload-schemas/search-output.json" },
|
|
"auth": "user_token"
|
|
}
|
|
],
|
|
"search": {
|
|
"types": ["card", "deck"],
|
|
"languages": ["de", "en", "fr", "es", "it"],
|
|
"max_results": 30,
|
|
"timeout_ms": 3000
|
|
},
|
|
"data": {
|
|
"personal_data_categories": ["card_content", "review_history"],
|
|
"encrypted_at_rest": false,
|
|
"storage_location": "EU"
|
|
}
|
|
}
|