epub-rsl

Safely embed RSL 1.0 licensing metadata into EPUB files—so AI systems can read your terms.

EPUBへRSL 1.0の利用条件を安全に埋め込むCLI。AIが機械可読に条件を読めるようにします。

npm install -g epub-rsl

Run it once

一度実行する

Inspect a sample EPUB, embed a policy, then validate. The source file is never overwritten.

サンプルEPUBを確認し、ポリシーを埋め込み、検証します。原本は上書きされません。

$ npx epub-rsl inspect sample-book.epub
Title: A Quiet Protocol
RSL: not embedded

$ npx epub-rsl apply sample-book.epub --policy rsl-policy.yaml
Created sample-book.rsl.epub

$ npx epub-rsl validate sample-book.rsl.epub
PASS sample-book.rsl.epub

What this is / is not

できること / できないこと

RSL declares machine-readable terms that travel with the EPUB. It does not encrypt the book, charge buyers, or stop unauthorized copying by itself.

RSLはEPUBと一緒に流通する機械可読な利用条件です。暗号化・課金・コピー防止は、 これ単体では行いません。

Enforcement needs a license server, access control, EMS, CAP/OLP, or a payment protocol such as x402.

強制にはライセンスサーバー、アクセス制御、EMS、CAP/OLP、x402などの決済が別途必要です。