# ystyle/kaf-cli

把txt文本转成epub和mobi电子书的命令行工具(原TmdTextEpub)

Repository: https://github.com/ystyle/kaf-cli
Canonical: https://ross.abutalabs.com/products/kaf-cli
Homepage: https://ystyle.top/2019/12/31/txt-converto-epub-and-mobi/
Language: Go
License: NOASSERTION
License Family: other
Topics: mobi, epub, kindlegen
Last push: 2026-07-03T03:05:18+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 90, release rhythm 86, longevity 100
- inputs: {"age_days": 2784, "days_push": 61, "days_rel": 96, "gap_med": 6.0, "n_releases_24m": 11}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1033, forks 73 (observed 2026-08-28T04:03:18.354823+00:00)

## What it is
A Go command-line tool that converts plain-text novels into EPUB, MOBI, and AZW3 ebooks. It auto-detects book titles, chapters, and character encoding, and supports custom covers, fonts, CSS styling, and regex-based chapter matching.

## Use cases
- convert txt novel to epub
- make mobi ebook for kindle from txt
- batch convert chinese txt novels with correct encoding
- auto-detect chapters in a plain text book
- generate ebook with custom cover image
- embed custom font in epub

## When to choose
- you have plain-text novels (especially Chinese) you want on a Kindle or e-reader
- you want automatic chapter/title/encoding detection without manual editing
- you want a fast, no-install-dependency CLI with drag-and-drop simplicity on Windows

## When to avoid
- you need to convert PDF, DOCX, or other formats rather than txt
- you need a GUI-based ebook manager like Calibre
- you need DRM handling or online book downloads

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, file-system, templating
- domain: files, developer-tools, media
- platform: windows, cli, cross-platform
- tags: ebook-conversion, epub, mobi, kindle, txt-to-epub, ebook, go, chinese-text, linux, macos, android

## Member repositories
- ystyle/kaf-cli (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:18.354823+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:06:42.695458+00:00, confidence not recorded.
  - readme: https://github.com/ystyle/kaf-cli (fetched 2026-08-28T04:03:18.354823+00:00, sha 338be057d910)
  - homepage: https://ystyle.top/2019/12/31/txt-converto-epub-and-mobi/ (fetched 2026-08-29T13:06:38.228915+00:00, sha 1924f06085da)
- Data as of 2026-08-30T08:39:29.467469+00:00.
