DeepSeek Harness Remote
DeepSeek Harness Remote 可将手机或另一台电脑与你运行 DeepSeek Harness 的电脑安全连接,随时随地继续你的工作,方便随时查看进度并继续工作。
AI 翻译
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗A browser-based PDF editor (Next.js 14, TypeScript) that edits the real content of PDF files: text, images, vector paths, links, annotations, form fields and pages are rewritten in the PDF's content streams and object graph. Nothing is covered up with white boxes. All processing runs locally in the browser, inside Web Workers.
Requirements: Node.js 18.18+ (tested with Node 22) and npm.
npm install # also runs scripts/copy-assets.mjs (fonts, wasm, workers → /public)
npm run dev # http://localhost:3000
# production
npm run build && npm start
# tests (parser/writer round-trip and every feature, against pdf.js as an independent reader)
npm test
npm run typecheck
Optional environment variables (see .env.example):
| Variable | Purpose |
|---|---|
NEXT_PUBLIC_CJK_FONT_BASE | Where Noto Sans SC is downloaded from on demand (each weight is about 10 MB, so it is not bundled). |
NEXT_PUBLIC_TESSDATA_URL | Where tesseract.js downloads OCR language data from. |
app/ routes: / (open / merge / drafts) /editor/[id]
components/editor/ Editor, Toolbar, PageCanvas, PageOverlay (Konva), ThumbnailSidebar,
PropertiesPanel, TextEditor, ImageReplacer, FindReplaceDialog, Dialogs
lib/pdf/ the engine (runs in a Worker; also directly in Node for tests)
lexer.ts content-stream tokenizer / operator parser / byte-preserving serializer
parser.ts interpreter: graphics + text state → TextRun / ImageObject / VectorPath
layout.ts runs → lines (shared baseline) → blocks (paragraphs, alignment, leading)
fontinfo.ts existing fonts: ToUnicode/encodings/widths, glyph-coverage check
cmap.ts, encodings.ts CMap parsing, Standard/WinAnsi/MacRoman/Symbol, glyph names
fonts.ts font matching, Type0/Identity-H embedding, bidi + shaping → glyph runs
shaping.ts HarfBuzz (wasm) shaper, fontkit fallback, bidi (UAX#9 via bidi-js)
subset.ts HarfBuzz hb-subset (glyph ids retained)
writer.ts PageEditor: operator splices, clone-on-write resources, TJ builders
textedit.ts in-place edit, re-set with fallback font, paragraph reflow, new text
images.ts XObject decode/extract (PNG encoder), replace/fit/crop/opacity, pixel edits
vector.ts shapes, restyle/move/delete paths, z-order
pages.ts reorder/rotate/delete/duplicate/insert/extract/merge/split/boxes
annotations.ts markup, notes, comments, ink, links (+ appearance streams), flatten
forms.ts AcroForm detect/fill/create (text, checkbox, radio, dropdown, signature)
redact.ts true redaction (glyph-level, image pixels, paths, forms copy-on-write)
stamps.ts watermark, header/footer, page numbers, Bates, OCR text layer
ocr.ts tesseract.js recognition helpers
security.ts mupdf.js: decrypt, AES-256 encrypt, structural compression, repair
incremental.ts change tracking, incremental save, garbage-collected full save
history.ts command pattern (object snapshots / byte snapshots) → unlimited undo
exporters.ts DOCX export (best effort)
engine.ts PdfEngine: the API used by the UI and the tests
workers/engine.worker.ts Comlink worker hosting PdfEngine (fonts, wasm, OffscreenCanvas codec)
lib/client/ worker client, pdf.js rendering cache, IndexedDB drafts, image utils
store/editorStore.ts Zustand: document, models, selection, tools, history mirror, autosave
tests/roundtrip.test.ts open → edit → save → reopen → verify (31 tests)
parser.ts interprets the page's content stream. It tracks the CTM, text matrices, font, size, Tc/Tw/Tz/TL/Ts, colours and marked content, and records a TextRun per show operator (Tj, TJ, ', ") with a page-space box for every glyph.layout.ts merges runs into lines and paragraphs.textedit.ts diffs the old and new text. If the change falls inside one run, keeps the style, and the embedded font can encode every new character (checked against the actual glyph outlines of the subset), the run's string operand is re-encoded in place, followed by a TJ offset so later text on the line stays exactly where it was.ET q BT … ET Q BT <Tm> [shift] TJ. It uses a matched font: Arimo, Tinos or Cousine are metric-compatible with Helvetica, Times and Courier, and Noto covers Bengali, Arabic, Devanagari, Hebrew and CJK. The text is shaped with HarfBuzz, bidi-reordered, embedded as Type0/Identity-H with a ToUnicode CMap, and wrapped in /ActualText where needed. The user is warned about the substitution.Undo works because edits never mutate shared objects: resources, /Annots and content are cloned on write, and a command snapshots the page or field dictionaries before and after.
| Keys | Action |
|---|---|
| Ctrl/⌘+Z, Ctrl/⌘+Y (or Shift+Ctrl/⌘+Z) | Undo, redo |
| Ctrl/⌘+C, Ctrl/⌘+V | Copy and paste text blocks and images |
| Ctrl/⌘+F | Find & Replace |
| Ctrl/⌘+S | Download and save draft |
| Delete / Backspace | Delete selection |
| Arrow keys (Shift = 10 pt) | Nudge selection |
| Esc | Clear selection or cancel |
| V T I A S N F G R | Select, Edit Text, Edit Image, Add Text, Shapes, Annotate, Forms, Sign, Redact |
| + / − | Zoom |
/Encoding and ToUnicode, but glyph procedures cannot be re-encoded. Edited Type3 text is re-set with a similar embedded font, and the user is warned./Differences; otherwise the editor falls back to an embedded font. TrueType and OpenType programs are checked glyph by glyph./ActualText carries the exact text. Acrobat and this editor use it; pdf.js-based viewers extract such clusters in visual order.subset: true uses, produces broken outlines for several modern Google/Noto fonts. This editor subsets with HarfBuzz (retaining glyph ids) or embeds full fonts, and does not use the fontkit subsetter. CJK fonts are downloaded on demand.lib/pdf/security.ts and loaded lazily (decrypt, encrypt, compress, repair). Drop it, or obtain a commercial licence, if AGPL is not acceptable. Everything else is MIT, Apache or OFL licensed.