Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 907 Bytes

File metadata and controls

30 lines (21 loc) · 907 Bytes

LightPaper

LightPaper is a local-first, plugin-first Markdown editor and previewer built with Electron, React, TypeScript, CodeMirror, and a unified/remark Markdown pipeline.

Run

npm install
npm run dev

Check

npm run typecheck
npm test

Architecture

Core Ideas

  • Markdown rendering is AST-first through remark and rehype.
  • Plugins register explicit contributions through a testable PluginHost.
  • Plugin permissions are validated before activation and enforced during registration.
  • Sample plugins are ordinary TypeScript modules with contract tests.
  • AI features are exposed through plugin presets and selectable model-provider configs, with an offline Electron fallback for development.