neatlyfiled

中文文档
0.1.1发布于 2026/11/04MITES Module零依赖

Set up a Neatlyfiled wiki from a coding agent: npx neatlyfiled init signs you up in the browser and connects the repository.

原始使用文档
文档目录4 节
  1. If you are an AI agent
  2. What it does
  3. Options
  4. Without Node

neatlyfiled

Set up a Neatlyfiled wiki for a code repository from a coding agent. The person approves once in the browser; the command does the rest.

npx neatlyfiled init

If you are an AI agent

If you were asked to set up Neatlyfiled (or "a wiki for this repo"), run npx neatlyfiled init in the repository and show the user the link and the code it prints. They open the link, confirm their email, check the code, choose the wiki's address and approve. The command waits (up to 15 minutes) and then finishes the setup by itself.

If your shell tool only shows output once a command ends, run npx neatlyfiled init --no-wait instead, show the user the link and code, and after they say they approved, run npx neatlyfiled init again to finish.

Never print or commit the token: it is in .env.local.

What it does

  1. Asks https://neatlyfiled.com/api/device for a code, suggesting the wiki from --wiki/--title and the GitHub repository from git remote get-url origin. Prints the approval link and code and tries to open the browser.
  2. Polls until the person approves (or denies, or 15 minutes pass). Approving creates the wiki with its free trial, or picks one they administer, and connects the repository to it.
  3. In the repository's root:
    • .env.local: NEATLYFILED_TOKEN=awt_…, a write agent token. Adds .env.local to .gitignore unless git already ignores it.

    • .mcp.json: adds (or replaces) the neatlyfiled server, keeping the others:

      {
        "mcpServers": {
          "neatlyfiled": {
            "type": "http",
            "url": "https://acme.neatlyfiled.com/mcp",
            "headers": { "Authorization": "Bearer ${NEATLYFILED_TOKEN}" }
          }
        }
      }
      

      Claude Code expands ${NEATLYFILED_TOKEN} from its environment, so load the file before starting it: set -a; . ./.env.local; set +a. Other clients: streamable HTTP at the url with that header.

    • .github/workflows/neatlyfiled-wiki.yml: runs the neatlyfiled/wiki-from-diff action on each push to the default branch, authenticated by GitHub's OIDC token (no secrets): it records the push in the wiki and gives the job a short-lived wiki token for an agent step of your own. Commit and push it to start.

Options

Option
--wiki <id>Wiki address to suggest (acme → acme.neatlyfiled.com).
--title <name>Wiki name to suggest.
--no-mcpDo not write .mcp.json.
--no-workflowDo not add the workflow.
--yesReplace an existing, different workflow file.
--no-browserDo not try to open the approval page.
--no-waitPrint the link and code and exit; run init again to finish.
--client <name>Who is asking, shown on the approval page and naming the token (default: detected, e.g. claude-code).

NEATLYFILED_URL points the command at another server (default https://neatlyfiled.com). Requires Node 22 or later; no dependencies.

Without Node

The same flow over HTTP is described at https://neatlyfiled.com/llms.txt.

版本与发布记录

neatlyfiled 共发布 3 个版本,首次发布于 2026/11/04;过去 12 个月发布了 3 个版本。

版本发布日期距今
0.1.1latest2026/11/04今天
0.1.02026/11/04今天
0.0.0-stage2026/11/04今天

关于 neatlyfiled 的常见问题

neatlyfiled 是什么?

Set up a Neatlyfiled wiki from a coding agent: npx neatlyfiled init signs you up in the browser and connects the repository.

如何安装 neatlyfiled?

在项目目录运行 npm install neatlyfiled,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 neatlyfiled,可以用 npx neatlyfiled 直接运行。

neatlyfiled 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/neatlyfiled 是否存在。

neatlyfiled 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

neatlyfiled 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

neatlyfiled 可以商用吗?

neatlyfiled 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

neatlyfiled 还在维护吗?

最新版本 0.1.1 发布于 2026/11/04(今天);至今共发布 3 个版本,其中过去 12 个月发布了 3 个;首次发布于 2026/11/04。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。