本地小说写作

打开本地小说文件夹,按 _index.yaml 装载「卷 → 章」目录并默认打开最后一章,正文与设定都是 Obsidian 风格 Markdown,自动保存、文件不上传。

写小说小说写作码字本地文件夹markdownobsidian双链大纲世界观novel writerwritingvault
关于「本地小说写作」

它属于「本地写作」分类:选一个本地文件夹就能直接写小说:按卷/章管理正文,设定、人物、大纲与灵感一起管,兼容 Obsidian 仓库,文件不上传。

  • 打开一个本地文件夹作为小说根目录:有 `_index.yaml` 就按索引装载卷/章目录,并默认打开最后一章;没有索引时按 `docs/` 的两级目录反推,可一键初始化补齐六个 `_design` 目录与第一章。
  • 正文与设定都是普通 Markdown 文件,保存为 UTF-8、LF 换行;编辑默认遵循 Obsidian 风格:YAML 属性、`[[双链]]`、`> [!tip]` callout、任务列表、表格与 `![[图片]]` 都能在右侧预览里看到。
  • 编辑会在停止输入约 1 秒后自动保存到原文件,Ctrl+S 可立即保存;切换文档前会先把未保存内容落盘。
  • 新建卷 / 章节会自动更新 `_index.yaml`;索引也可以在侧栏里直接打开编辑,保存后重新装载目录。
  • 侧栏里的章节支持重命名、删除与拖拽排序(同卷内调整或跨卷移动)。重命名只改索引标题,不会动文件名与双链;删除会同时删掉正文文件,且不可撤销。
  • 顶部「搜索」会在 `docs/` 与 `_design/` 下的 Markdown 中查找关键词,点击结果会打开文档并定位到第一处命中;在小说信息里可以设置目标字数,顶部会显示当前总字数与完成比例。
  • 侧栏可按章节状态(草稿 / 修订 / 完成)筛选,章节行的「◐」用来设置状态;「专注」会把编辑器铺满窗口并显示今日字数,按 Esc 退出。搜索弹窗里可以填写替换文本,勾选文件后连续确认两次即可批量替换。
  • 「统计」按天记录净增字数(数据写在根目录的 `_stats.json`,可随文件夹一起备份);在「小说信息」里设置每日目标后,顶部会显示今日完成度与连续写作天数,统计弹窗里也有对应卡片。「导出」能把全书或单卷合并成一个 Markdown / TXT;「导入」把以 `# 标题` 分段的 Markdown 拆成多章写入指定卷。
  • 所有读写都在浏览器本地完成,文件不会上传到任何服务器;首次打开文件夹时浏览器会向你请求该目录的读写权限。

完全免费、无需注册;所有处理都在浏览器本地完成,文件不会上传到任何服务器。

相关关键词:本地小说写作、本地写作、写小说、小说、写作、码字、本地、文件夹、markdown、obsidian、双链、大纲、世界观、novel writer、writing、vault、在线工具、免费

如何使用「本地小说写作」
  1. 打开工具:打开「本地小说写作」页面,无需注册、无需安装任何软件。
  2. 准备输入:准备一个小说文件夹(也可以先选空文件夹再初始化):根目录放 `_index.yaml`,正文在 `docs/卷名/章节.md`,设定在 `_design/` 的六个子目录下;Chrome / Edge 能直接读写,其他浏览器退化为只读导入 + 导出修改。
  3. 填入内容:把内容粘贴进输入框,或把文件拖入页面;也可以点击「示例」先填入样例数据试一下。
  4. 设置选项并处理:按需调整页面上的选项,然后点击处理 / 转换 / 生成按钮。
  5. 获取结果:处理完全在浏览器本地完成,结果可直接复制或下载,文件不会上传到任何服务器。
常见问题
支持哪些浏览器?
Chrome / Edge 支持 File System Access API,可直接打开并写回文件夹;Firefox / Safari 没有该能力,会自动退化为「只读导入 + 导出修改」,改动会打包成 zip 下载。
必须有 `_index.yaml` 吗?
不是必须的。没有索引时会按 `docs/卷名/章节.md` 的两级目录自动生成目录;点「初始化结构」可以写出索引、六个设定目录的起步文件与第一章。
会把我的 Obsidian 仓库改乱吗?
只会写入你编辑的文档、新建的卷/章/设定文件以及 `_index.yaml`,不会改动其他笔记;索引回写会保留无法识别的顶层字段。重要仓库建议先备份。
支持双链和图片吗?
支持。`[[文档名]]` 会解析到仓库内同名 Markdown 并可直接跳转;`![[图片.png]]` 会从仓库读取图片显示在预览里,仓库外的链接不会加载。
小说文件夹和 Obsidian 仓库是什么关系?
一个小说文件夹就是一部小说,也可以直接把 Obsidian 仓库根目录当作小说根目录打开:`_index.yaml`、`_design/`、`docs/` 都放在根目录即可。

返回崽崽工具箱首页

Local Novel Writer

Open a local novel folder, load the volume → chapter tree from _index.yaml (last chapter opens by default), and edit Obsidian-style Markdown for both chapters and setting notes. Auto-saves in place; files are never uploaded.

novel writerfictionwritingwordsmithlocalfoldermarkdownobsidianbacklinksoutlineworldbuildingnovel draftinglong-form writingvault
About Local Novel Writer

Belongs to “Local Writing”: Write a novel directly in a local folder: chapters grouped into volumes, plus setting notes, characters, outlines and sparks — Obsidian-vault friendly, nothing uploaded.

  • Open a local folder as the novel root: if `_index.yaml` exists its volume/chapter tree is loaded and the last chapter opens by default; otherwise the two-level `docs/` structure is used and one click initializes the six `_design` folders plus a first chapter.
  • Chapters and settings are plain Markdown saved as UTF-8 with LF line endings, using Obsidian conventions: YAML frontmatter, `[[wiki links]]`, `> [!tip]` callouts, task lists, tables and `![[image]]` embeds are all rendered in the preview.
  • Edits auto-save to the original file about one second after you stop typing; Ctrl+S saves immediately and switching documents flushes pending changes first.
  • Creating a volume or chapter updates `_index.yaml` automatically; the index itself can also be opened and edited from the sidebar, and the tree reloads after saving.
  • Chapters in the sidebar can be renamed, deleted, and dragged to reorder (within a volume or across volumes). Renaming only changes the index title, keeping filenames and wiki links intact; deleting also removes the chapter file and cannot be undone.
  • “Search” looks through Markdown under `docs/` and `_design/`; clicking a result opens the note and jumps to the first hit. Set a word goal in novel info and the header shows the current total plus completion percentage.
  • Filter chapters by status (draft / revise / done) in the sidebar, and use “◐” on a chapter row to set it. “Focus” makes the editor fullscreen with today’s word count; Esc exits. The search dialog also supports replacement: pick files, then confirm twice to write the changes.
  • “Stats” records your net daily word change in `_stats.json` at the root (back it up with the folder); after setting a daily goal in novel info the header shows today’s progress and your writing streak, and the stats dialog adds matching cards. “Export” merges the whole book or one volume into a single Markdown/TXT file, and “Import” splits Markdown by `# headings` into chapters in the volume you choose.
  • All reads and writes happen locally in your browser and nothing is uploaded; the first time you open a folder the browser asks you to grant read/write access to it.

Free, no sign-up; everything runs locally in your browser and files are never uploaded.

Keywords: Local Novel Writer, Local Writing, novel writer, fiction, writing, wordsmith, local, folder, markdown, obsidian, backlinks, outline, worldbuilding, novel drafting, long-form writing, vault, online tool, free

How to use Local Novel Writer
  1. Open the tool:Open the “Local Novel Writer” page — no sign-up and nothing to install.
  2. Prepare the input:Prepare a novel folder (or pick an empty one and initialize it): `_index.yaml` at the root, chapters under `docs/volume/chapter.md`, settings under the six `_design/` subfolders. Chrome/Edge can read and write directly; other browsers fall back to read-only import plus an exported zip of your edits.
  3. Provide the input:Paste your content into the input box or drop a file onto the page; you can also click “Sample” to try example data first.
  4. Adjust options and run:Adjust the options if needed, then click the process / convert / generate button.
  5. Get the result:Everything runs locally in your browser; copy or download the result — your files are never uploaded.
FAQ
Which browsers are supported?
Chrome/Edge support the File System Access API and write straight back to the folder; Firefox/Safari lack it, so the tool falls back to a read-only import plus a downloadable zip of your edits.
Is `_index.yaml` required?
No. Without it the tool derives the tree from the two-level `docs/volume/chapter.md` layout; “Initialize structure” writes the index, starter files for the six setting folders, and a first chapter.
Will it damage my Obsidian vault?
It only writes the documents you edit, the volumes/chapters/setting files you create, and `_index.yaml`; other notes are untouched and unknown top-level index fields are preserved. Back up important vaults first.
Are wiki links and images supported?
Yes. `[[Note]]` resolves to a Markdown file in the vault and opens it, and `![[image.png]]` is loaded from the vault into the preview; links outside the vault are not loaded.
How does the novel folder relate to an Obsidian vault?
One folder is one novel, and you can open an Obsidian vault root directly as the novel root: put `_index.yaml`, `_design/` and `docs/` at the root.

Back to Zaizai Tools home