actually-written

中文文档
0.1.12发布于 2026/11/03MITTypeScriptES Module零依赖

Record how answers in your forms were written, then review each submission's writing evidence.

原始使用文档
文档目录4 节
  1. React
  2. JavaScript submissions
  3. Link a recording
  4. Privacy

Actually Written

Record how the answers in your forms were written. Review recorded submissions at https://actuallywritten.com/submissions.

npm install actually-written
import { track } from "actually-written";

track(document.querySelector("form"), { key: "aw_pk_…" });

Get your public key at https://actuallywritten.com/keys. It is safe to commit.

The SDK sends recordings directly to Actually Written for scoring and review. No custom upload server or provider integration is required.

An optional <div class="actually-written-badge"></div> inside the form shows people that their writing is recorded.

Recording uploads in the background. Native submission, buttons, and navigation remain unchanged.

React

Start tracking on mount and call the returned session.stop() on unmount. If you handle submission yourself, keep the session in a ref and follow the JavaScript instructions below.

JavaScript submissions

Keep the session returned by track(). Call void session.submit() in your existing final-submit handler before resetting or navigating. Keep the existing validation and application-saving logic. Never make form submission depend on recording success.

Uploads retry in the background. Repeated calls to submit() retry the same frozen recording.

Store the hidden actually_written_session field with your application. For JSON payloads, use the current session.id. Calling form.reset() starts a new session for the next application.

Recording delivery

Drafts and new edits upload periodically. A small submission marker is sent independently of pending history. A session is a draft until submitted. The server counts a submission once and assesses the evidence received.

submit() still returns a delivery promise for diagnostics. Do not await it in the form's submission flow. Closing a browser or losing connectivity can leave incomplete evidence; the application still submits normally.

Privacy

Draft answers and edit histories are uploaded while the form is being filled out, including forms that are abandoned. Tell people about recording in your privacy notice. Final answers, behavior counters, and edit histories are retained with the submission. Submission histories are excluded from writing-data training exports.

Full documentation: https://actuallywritten.com/docs

版本与发布记录

actually-written 共发布 14 个版本,首次发布于 2026/10/23;过去 12 个月发布了 14 个版本。

版本发布日期距今
0.1.12latest2026/11/03今天
0.1.112026/11/03今天
0.1.102026/11/021 天前
0.1.92026/10/313 天前
0.1.82026/10/304 天前
0.1.72026/10/304 天前

关于 actually-written 的常见问题

actually-written 是什么?

记录表格上的答案是如何写的,然后检查每个提交的书面证据。

如何安装 actually-written?

在项目目录运行 npm install actually-written,或使用 pnpm add / yarn add / bun add。

actually-written 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

actually-written 支持 ESM 还是 CommonJS?

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

actually-written 可以商用吗?

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

actually-written 还在维护吗?

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