Labkeeper-team/LabkeeperEditor
关于
Labkeeper online LaTeX editor ReactTs frontend
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Labkeeper
Online LaTeX editor with a built-in scientific calculator and LLM-agent
Write and compile LaTeX in the browser, mix in calculations and plots, and export the result to PDF.
About
This repository is the Labkeeper web frontend: an online LaTeX editor with a scientific calculator and AI agent.
The core workflow is writing LaTeX (full TeX Live compilation on the backend). You can also drop in computational blocks, formulas, tables, and plots, then compile the document to PDF. Typical building blocks:
- LaTeX as the primary authoring mode, with full document compilation
- Markdown segments when you need lighter markup alongside LaTeX
- Computational segments for assignments, formulas, and error propagation
- Plots (line, scatter, histogram) via Apache ECharts
- AsciiMath for a lighter math notation
- File manager, AI hunk review, OAuth2, token billing, and PDF export
The UI talks to the Labkeeper backend over /api. For local work against the release backend, an Nginx container proxies that path while Vite serves the app.
Tech stack
| Area | Tools |
|---|---|
| Runtime | Node.js 22 (see .nvmrc) |
| UI | React 19, TypeScript 6, Vite 8, Sass |
| State & routing | Redux Toolkit, React Redux, Redux Persist, React Router 7 |
| Editor | CodeMirror 6 (incl. LaTeX language support) |
| Math & docs | MathJax, AsciiMath, react-markdown, PDF.js, jsPDF |
| Charts | Apache ECharts |
| HTTP & quality | Axios, Sentry, ESLint, Prettier, Husky, lint-staged |
| Tests | Jest + Testing Library, Playwright |
| Local proxy | Docker Compose, Nginx |
Prerequisites
Local development (frontend + release backend)
Install dependencies from the repo root:
npm iStart the Nginx reverse proxy (API → backend stand, app → Vite). It also injects the public Yandex SmartCaptcha site key into
index.html. The stand islabkeeper.ioby default, or e.g.preprod.labkeeper.io:docker compose -f scripts/local/nginx/docker-compose.yml upStart the Vite dev server from the repo root:
npm run devOpen http://localhost. The app from this repo is served on port 80 through Nginx and can talk to the release server.
Scripts
| Command | Description |
|---|---|
npm run dev |
Vite dev server (--host, port 3000) |
npm run build |
Production build |
npm run test:math |
Unit tests (Jest) |
npm run test:ui |
E2E tests (Playwright) |
npm run test:ui:silent |
Playwright with the line reporter |
npx playwright test --ui |
Playwright UI mode |
npm run check |
ESLint + Prettier check |
npm run reformat |
Prettier auto-format |
Testing and lint
# Unit tests
npm run test:math
# E2E (retries help with flaky UI)
npx playwright test --retries=3
# E2E with the Playwright inspector
npx playwright test --ui
# Lint and format check
npm run check
# Auto-format
npm run reformat
探索相关项目
加载中…