Repository navigation
Add ISBN barcode generator and KDP series read-through calculator - #48
Merged
Merged
Conversation
Two new KDP Tools pages: - ISBN barcode generator: checks an ISBN-10 or ISBN-13 and builds a print-ready EAN-13 barcode with the EAN-5 price add-on, as SVG, PDF (100% black only) and 1-bit 600 ppi PNG. Own encoder with OCR-B outlines from CTAN; zxing and bwip-js are test-only dev dependencies. - KDP series read-through calculator: read-through at each step, what one new book 1 reader earns across the series, and the break-even ad cost, with Kindle Unlimited, Countdown Deals and free book 1. Shared: UiDownloadAction gains isDisabled and lazy contents; UiRepeatableList gains minItems (defaults to 0). Card art, catalog rows and page registry entries for both tools. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
Two new tools in the KDP Tools catalog.
/isbn-barcode-generator): checks an ISBN-10 or ISBN-13, explains any typo, and builds a print-ready cover barcode (EAN-13 plus the EAN-5 price code) as SVG, PDF and PNG. The PDF uses 100% black ink only, and the PNG is 1-bit at 600 ppi. It shows whether the barcode fits KDP's and IngramSpark's barcode areas./series-read-through-calculator): read-through at each step of a series, what one new book 1 reader earns across the series, and the most you can spend on ads to get one. Handles Kindle Unlimited, Countdown Deals and a free or $0.99 book 1.Shared changes
UiDownloadAction: newisDisabled, andcontentscan be a function so files are built on click.UiRepeatableList: newminItems(defaults to 0, so existing callers are unchanged).barcode, KDP Tools catalog rows, page registry entries.@zxing/libraryandbwip-js, used only by the ISBN test to decode the generated barcodes.Checks
npm run qualitypasses (typecheck, 79 core tests). Focused tests: ISBN 10/10, series 9/9.Release
After the deploy, publish both pages to production right away: the KDP Tools catalog links to them and those links 404 until then.
🤖 Generated with Claude Code