{"id":19725479,"url":"https://github.com/easychen/book-by-ai","last_synced_at":"2025-04-10T04:59:42.073Z","repository":{"id":187689242,"uuid":"676818012","full_name":"easychen/book-by-ai","owner":"easychen","description":"Generate high-quality books with AI","archived":false,"fork":false,"pushed_at":"2023-08-14T09:32:25.000Z","size":46860,"stargazers_count":236,"open_issues_count":8,"forks_count":39,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-03T01:10:03.619Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/easychen.png","metadata":{"files":{"readme":"README.cn.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-10T04:48:28.000Z","updated_at":"2025-03-11T02:37:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"302d14d2-9bfe-4fa2-abfe-0689a3454ba2","html_url":"https://github.com/easychen/book-by-ai","commit_stats":null,"previous_names":["easychen/book-by-ai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Fbook-by-ai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Fbook-by-ai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Fbook-by-ai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Fbook-by-ai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/easychen","download_url":"https://codeload.github.com/easychen/book-by-ai/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248161267,"owners_count":21057554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T23:30:09.162Z","updated_at":"2025-04-10T04:59:42.043Z","avatar_url":"https://github.com/easychen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Book By AI ( AKA B.B.A )\n\nGenerate high-quality books with AI\n\n\u003e 用AI生成高质量电子书\n\n[简体中文](README.cn.md) | [English](README.md) \n\n[![](images/20230811203616.png)](https://github.com/easychen/book-by-ai/assets/1294760/e2b6e7f9-1be1-4321-b71f-3207cb202909)\n\n## 自动生成书籍DEMO\n\n1. 人工输入文字：十个以内\n1. 生成时间：累计2小时\n1. 花费成本：3元左右（30张图片的生成费用）\n1. 在线阅读：[中文样书](https://demo01.level06.com/) | [English Book](https://demo02.level06.com/) \n\n## 视频教程\n\n![](images/20230812032456.png)\n\n[Youtube](https://www.youtube.com/watch?v=iMUg8ccIeZg) | [B站](https://www.bilibili.com/video/BV1Ku4y1q75F)\n\n\n## 前置要求\n\n1. git\n1. nodejs\n1. 终端\n1. 安装 [mdbook](https://rust-lang.github.io/mdBook/guide/installation.html) 命令行\n\n## 如何使用 \n\n1. 开通[API2d](https://api2d.com/r/186008) 或者 自建 [AiAPI](https://github.com/easychen/aiapi) 接口\n1. git clone https://github.com/easychen/book-by-ai.git BBA\n1. cd BBA\n1. npm install\n1. cp .env.cn.example .env\n1. 根据注释配置 .env\n1. node bba.js book_cn // 从头开始运行全部流程\n1. 按提示输入内容即可。如果中途遇到中断，可以重新运行命令。\n1. cd output/**\u0026lt;book name\u0026gt;**/ \u0026\u0026 mdbook serve // 本地预览\n1. cd output/**\u0026lt;book name\u0026gt;**/ \u0026\u0026 mdbook build // 生成 html\n\n\n## 命令说明\n1. node bba.js book_cn@help // 显示帮助\n1. node bba.js book_cn@title // 生成标题\n1. node bba.js book_cn@index // 生成目录（章）\n1. node bba.js book_cn@sections // 生成目录（节）\n1. node bba.js book_cn@write // 编写小节内容\n1. node bba.js book_cn@make // 生成 mdbook 项目\n1. node bba.js book_cn@addImage // 封面和章节配图生成\n8. node bba.js book_cn@update // 重写某一节\n9. node bba.js book_cn@translate // 翻译全部小节\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasychen%2Fbook-by-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasychen%2Fbook-by-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasychen%2Fbook-by-ai/lists"}