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.