Projects
View on GitHub
easychen/book-by-ai
About
Generate high-quality books with AI
AI & Machine LearningMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalBook By AI
Use AI to generate high-quality ebooks
AUTOMATIC BOOK GENERATION DEMO
- Manually input text: numbers within ten
- Total generation time: about 2 hours
- Cost: Around $0.6 (cost for generating 30 images)
- Online reading: English Book | 中文样书
Video Tutorial
in Chinese
Prerequisites
- git
- nodejs
- terminal
- mdbook installed
How to Use
- Get OpenAI API key or deploy your own AiAPI
- git clone https://github.com/easychen/book-by-ai.git BBA
- cd BBA
- npm install
- cp .env.example .env
- Configure .env according to comments
- node bba.js book // Run full process from scratch
- Follow prompts to input content
- cd output// && mdbook serve // Preview locally
- cd output// && mdbook build // Generate html
Command Description
- node bba.js book@help // Show help
- node bba.js book@title // Generate title
- node bba.js book@index // Generate table of contents (chapters)
- node bba.js book@sections // Generate table of contents (sections)
- node bba.js book@write // Write section content
- node bba.js book@make // Generate mdbook project
- node bba.js book@addImage // Generate cover and section images
- node bba.js book@update // Rewrite a section
- node bba.js book@translate // Translate sections
Explore related projects
Loading…
