joerglohrerde/publish
Jörg Lohrer e4518fbf69 publish(task 6): kind:30023 event-builder mit tag-mapping
buildKind30023(args) baut unsigniertes kind:30023-event aus frontmatter
+ rewritten-body + cover-url. erzeugt pflicht-tags (d, title,
published_at) und bedingt optionale (summary aus description, image
aus coverUrl, t-tags aus tags[], client aus clientTag). plus
additionalTags-parameter für spätere task 15: license-tag und
imeta-tags (mit blossom-sha256) werden dort nach dem upload angehängt.
4 tests grün.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 05:25:10 +02:00
..
src/core publish(task 6): kind:30023 event-builder mit tag-mapping 2026-04-18 05:25:10 +02:00
tests publish(task 6): kind:30023 event-builder mit tag-mapping 2026-04-18 05:25:10 +02:00
.env.example publish(task 1): deno-grundgerüst (deno.jsonc, .env.example, readme) 2026-04-18 05:20:19 +02:00
.gitignore publish(task 1): deno-grundgerüst (deno.jsonc, .env.example, readme) 2026-04-18 05:20:19 +02:00
README.md publish(task 1): deno-grundgerüst (deno.jsonc, .env.example, readme) 2026-04-18 05:20:19 +02:00
deno.jsonc publish(task 1): deno-grundgerüst (deno.jsonc, .env.example, readme) 2026-04-18 05:20:19 +02:00

README.md

publish — Nostr-Publish-Pipeline

Markdown-Posts aus einem Hugo-ähnlichen Content-Ordner zu kind:30023-Events, Bilder zu Blossom, Signatur via NIP-46-Bunker.

Blaupause für Nostr-Repos: keinerlei Projekt-Konstanten im Code, alles über Env-Variablen konfigurierbar.

Setup

  1. cp .env.example .env und Werte eintragen.
  2. Oder: .env.local im Eltern-Ordner pflegen und deno.jsonc anpassen (siehe --env-file=../.env.local-Tasks).
  3. deno task check — verifiziert Bunker, Relay-Liste, Blossom-Server.

Befehle

  • deno task publish — Git-Diff-Modus: publisht nur geänderte Posts.
  • deno task publish --force-all — alle Posts (Migration / Reimport).
  • deno task publish --post <slug> — nur ein Post.
  • deno task publish --dry-run — zeigt, was publiziert würde, ohne Uploads.
  • deno task validate-post content/posts/<ordner>/index.md — Frontmatter-Check.
  • deno task test — Tests.

Struktur

  • src/core/ — Library (Frontmatter, Markdown, Events, Signer, Relays, Blossom).
  • src/subcommands/ — CLI-Befehle.
  • src/cli.ts — Entrypoint, Subcommand-Dispatcher.
  • tests/ — Unit- und Integration-Tests.
  • .github/workflows/publish.yml — CI-Workflow.