Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
373b574
docs(community): bring CONTRIBUTING and SECURITY to the family wordin…
nodemode-ai Dec 1, 2026
62df064
docs(readme): family shape with a Download table, the agents section …
nodemode-ai Dec 1, 2026
85ff4e6
feat(menu): the popup menu, menu bar and macOS system menu, with the …
nodemode-ai Dec 1, 2026
bd9d0b8
feat(menu): the FormCite menu list, in-window shortcuts and a right-c…
nodemode-ai Dec 1, 2026
434fb50
feat(dock): engine terminals, agent program status and a bridge that …
nodemode-ai Dec 1, 2026
09e5e9f
feat(dock): the family's agent dock in the window, module 2.2.1 with …
nodemode-ai Dec 1, 2026
9ac8c9d
docs(notice): the dock module from FormVis, ptyprocess, pywinpty and …
nodemode-ai Dec 1, 2026
9f1ba6d
fix(build): the frozen engine carries its schema migrations
nodemode-ai Dec 1, 2026
762b4ba
fix(build): put the Tauri CLI in the window's dev dependencies
nodemode-ai Dec 1, 2026
739e9c3
fix(build): ship time zone data so the engine starts on Windows
nodemode-ai Dec 1, 2026
400f20b
fix(build): freeze the dock terminal's pty and WebSocket modules
nodemode-ai Dec 1, 2026
7ec849b
fix(engine): close the dock's tabs and terminals when the engine is s…
nodemode-ai Dec 1, 2026
fdf1e5f
build(desktop): state the macOS minimum the build targets
nodemode-ai Dec 1, 2026
00a794c
fix(build): let the freeze import the app package it collects
nodemode-ai Dec 1, 2026
85fcdb8
feat(look): keep the Home, menu bar and dock choices with the library…
nodemode-ai Dec 1, 2026
61b9a3f
feat(home): a Home start screen, the shell commands and the menu bar …
nodemode-ai Dec 1, 2026
a97fc18
feat(preferences): FormVis sections with a rail, plus General, Menus …
nodemode-ai Dec 1, 2026
2333a67
fix(build): build the engine with the Python on PATH first
nodemode-ai Dec 1, 2026
912cb50
docs(log): Home, the Preferences sections, the shell commands and the…
nodemode-ai Dec 1, 2026
bbfb0ca
feat(styles): the family token names, glass and layers, mapped from F…
nodemode-ai Dec 1, 2026
f5b7882
fix(titles): give the Titles rows their line height back
nodemode-ai Dec 1, 2026
8c0742d
fix(menu): open the bar row when the macOS system menu falls back to …
nodemode-ai Dec 1, 2026
fe758df
docs(log): the menus, the row menu and what was measured
nodemode-ai Dec 1, 2026
903ed0a
build(packaging): bring the formcompiler entry to 0.15.0 from the fir…
nodemode-ai Dec 1, 2026
4b43cfc
fix(desktop): find the engine by its port, not by a line on its console
nodemode-ai Dec 1, 2026
77dba79
fix(window): claim the window key once while every caller waits for t…
nodemode-ai Dec 1, 2026
ea92c70
fix(side): reload collections and tags when the library is switched
nodemode-ai Dec 1, 2026
32fc845
feat(demos): three sample libraries with collections, tags and notes,…
nodemode-ai Dec 1, 2026
5faad03
feat(templates): 41 citation styles and 10 library starters, with cre…
nodemode-ai Dec 1, 2026
ecbb8d6
docs: the demos and templates in the README and the logs
nodemode-ai Dec 1, 2026
072b225
docs(notice): point to the templates' credits for the CC BY-SA styles…
nodemode-ai Dec 1, 2026
0ef23d0
docs(style): the style wheel's version follows the app's
nodemode-ai Dec 1, 2026
cdfa785
docs(readme): the 0.15.0 window, the dock and the Download table as t…
nodemode-ai Dec 1, 2026
8465654
docs(readme): the app's screenshots, dark and light
nodemode-ai Dec 1, 2026
921436b
fix(items): a new search waits for its own first page, and no older a…
nodemode-ai Dec 1, 2026
669db15
fix(menu): open the bar menus under the menu bar's row, and drop two …
nodemode-ai Dec 1, 2026
d9d15ba
chore(release): 0.15.0
nodemode-ai Dec 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# Changelog

## 0.15.0

FormCite now builds into a desktop app for macOS, Windows and Linux, and the window gains a menu bar, a Home screen, Preferences in sections, a right-click menu on items, an agent dock, and three demo libraries with templates to start from.

### New
- **A menu bar** in the window: FormCite, File, Edit, View, Library and Help (and Window in the desktop app on Linux and Windows), with the keys shown beside each item. On a Mac the same list is the system menu bar, and Preferences has a Menus in Window switch for people who want it inside the window instead. A menu taller than the window scrolls, with a hint at the foot while there is more below.
- **A right-click menu on an item row:** Open Attachment, Copy Citation, Copy Bibliography Entry and Move to Trash. The citation and the entry are made in the first common style (APA) and copied.
- **Home**, the start screen: Add by identifier, Import a file and Choose a PDF in one place, with a drop area for a PDF, the counts of your items, unfiled items, collections and tags, and your newest collections to open. General in Preferences has Show Home at launch; turn it off and FormCite opens on Items. Home is also in the side panel and in the File menu.
- **Preferences in sections:** a rail with General, Appearance, Network, Libraries and Agents, each section folding in place, and Menus on a Mac. Every setting that was there is still there, in the same words.
- **An agent dock** (View, Agent Dock, or Ctrl+J, Cmd+J on a Mac): shell tabs that the engine starts on your computer, and a tab for Claude Code, Codex, Cursor or Antigravity when that program is installed. Each agent tab gets its own token, which is revoked when the tab closes. Only the FormCite window can open or use one. The dock asks no question of its own: an outside agent is still approved by pairing under Connections. Preferences, Agents has a switch to show the dock, and whether it is open is remembered with your library.
- **Three demo libraries** in `demos/`: a thesis on urban heat (260 references), a history reading list (215) and a cell biology lab's methods library (240), each with collections, tags and notes, ready to open, and each also as a BibTeX file. The references are invented. `demos/README.md` says how to open one.
- **Templates** in `templates/`: 41 citation styles to format with as your own style file, 40 of them unmodified from the Citation Style Language project (CC BY-SA 3.0, credited in `templates/CREDITS.md`), and 10 library starters with collections and tags already in place, for a thesis, a grant, a course, a systematic review and more.

### Improved
- **The Form look:** glass surfaces and the family's token names and layer order across the window, in dark and light and in every theme. Your theme, accent and the new Home, menu and dock choices are kept with the library and are on the first frame the window paints.

### Fixed
- **The desktop app could not be built, and no packaged FormCite had ever started.** The build stopped at its last step because the desktop tool it calls was never listed among the window's packages. Behind that, the engine inside the app had been packed with almost none of its own code, so it failed its own check on start. Its database schema files were left out as well, which would have given every library with no tables. On Windows the engine needed time zone data it did not carry. The build also used whichever Python was newest on the machine. All of that is fixed, and the desktop shell now finds the engine by a port it hands over, not by a line on the engine's console. A build now ends in a `.deb`, an `.rpm` and an AppImage on Linux; see "Checked for this version".
- **A false error at start:** the window could show "The engine did not accept this window. Relaunch FormCite." although it had been accepted, and a window opened in a browser could lose its key and then be refused every change. The window now claims its key once, and every part waits for that one answer.
- **Switching library left the old one's collections and tags** in the side panel. It now loads the new library's.
- **The item list after a search** could show rows from the earlier search under the new count, for example "8 items" over ten rows, when the answer to a new search arrived before the old one had been cleared. The list now waits for the first page of its own search, ignores older answers, and holds no row past the count. The fault could not be made to happen on demand, so this follows the cause found in the code and the checks that followed it.
- **The Needs a title view** had lost the line height of its rows. They have it again.
- **On a Mac, if the system menu could not be built,** the window's own menu bar now opens in its place.
- **Stopping the engine now closes the dock's tabs and their tokens** instead of leaving them to the next start.

### Known issues
- Each agent tab leaves a revoked token named after it, such as "Claude Code tab", in Connections after the tab closes. There is no way to delete one yet.
- The right-click menu has no "Show in collection": the engine does not say which collections an item is in.
- The Windows engine is frozen with no console window and the shell reads its port from the number it handed over; this is read and fixed in the code, not run.

### Under the hood
- The dock is the family's shared module, written out in `frontend/src/dock/`, with FormCite's own words, routes and token map in `dock-adapter.ts`; the engine side is `/api/terminal`, `/api/agent/status` and a consent bridge that answers no questions. New permissive packages are in `NOTICE.md`: `@xterm/xterm`, `@xterm/addon-fit`, `@tauri-apps/api`, `@tauri-apps/cli`, `ptyprocess`, `pywinpty` and `tzdata`.
- `NOTICE.md` points to `templates/CREDITS.md` for the CC BY-SA styles.
- The registry entry for formcompiler in `packaging/formcompiler/apps/formcite.json` is brought to this version, with the macOS minimum made explicit in the desktop configuration.
- Checked for this version, on Linux x64, on 1 December 2026 (EST): the contract build (`./formcite install`, `install-desktop`, `desktop build --config`) from a fresh clone with Python 3.12; the style regression set, 12 of 12; the frozen engine's own check, its health answer, an APA citation formatted and a new library made with all its tables; a dock terminal echoing over its socket from the frozen engine; the `.deb`, `.rpm` and AppImage built, and the AppImage opened its window under a virtual display, claimed its key and stopped its engine on exit. The window was checked in headless Chrome at four times slower CPU: Home on the first frame, the bar row reserved before first paint with no layout shift, theme and look kept across an engine restart, the dock opening and closing without moving the panes, and the menus kept inside the window. Not run: any build or run on macOS or Windows (formcompiler's runners build those), the macOS system menu, and the Codex, Cursor and Antigravity tabs, since none of those programs is installed here.

## 0.14.0

The desktop app starts, a copied library stands on its own, and an extension has searched a real FormCite.
Expand Down
54 changes: 37 additions & 17 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Contributing to FormCite

Thank you for helping. FormCite aims to be a free, local-first personal research
library, with everything kept on your own computer. It is a scaffold today: an engine
skeleton, a window and a desktop shell, and not much more. It grows through real use
and real contributions.
library that runs in a browser or on the desktop and keeps your references on your own
computer, and it gets there through real use and real contributions.

## Where to start

Expand All @@ -14,17 +13,22 @@ and real contributions.

## Setting up

Clone the repository and run `./formcite_oc_install`, then `./formcite`. The first
installs what the engine and the window need; the second starts both. The README has
the details and the requirements.
Clone the repository and run `./formcite install`, then `./formcite` (or
`formcite.bat install` and `formcite.bat` on Windows). The first installs what the
engine and the window need; the second starts both. `./formcite help` lists every
command, and the README's "Run it from source" section has the details and the
requirements.

The code lives in:

| Folder | What is there |
| --- | --- |
| `backend` | the engine (Python, FastAPI): the entry is `backend/formcite_engine.py`, and `GET /api/health` answers on `127.0.0.1:8330` |
| `frontend` | the window (TypeScript, Vite): npm scripts `dev` (port 5330), `build`, `preview` and `check` |
| `backend/app` | the engine (Python, FastAPI): the library store, lookups, the command line, the cite service and the MCP server; the entry is `backend/formcite_engine.py`, and `GET /api/health` answers on `127.0.0.1:8330` |
| `native/formcite-style` | the citation style engine, a Rust module built on Hayagriva and made into a Python wheel with maturin |
| `frontend/src` | the window (TypeScript, Vite): the command registry and store in `engine`, the views and panes in `ui`, the tokens and themes in `styles`; npm scripts `dev` (port 5330), `build`, `preview` and `check` |
| `src-tauri` | the desktop shell (Rust, Tauri 2) |
| `setup` | install, build, freeze and boot scripts behind `./formcite` |
| `docs` | one page per part of the app |
| `.github` | the CI workflow and the code owners |

## Before you open a pull request
Expand All @@ -38,18 +42,30 @@ python backend/formcite_engine.py &
curl -fsS http://127.0.0.1:8330/api/health
```

Stop the engine afterwards. CI runs a `window` job and an `engine` job on every pull
request and on every push to `main`. It has no job for the desktop shell, so build
that yourself if you change `src-tauri`.
Stop the engine afterwards. If you change `native/formcite-style` or the code that
calls it, build the style wheel and run its regression set too:

```sh
./setup/build_style --wheel
(cd backend && python -m app.style.regression.run)
```

CI runs a `window` job, an `engine` job and a `style` job (the wheel built on macOS,
Linux and Windows, then the regression set) on every pull request and on every push
to `main`. It has no job for the desktop shell, so build that yourself if you change
`src-tauri` (`./formcite desktop build`).

- Keep each pull request to one change, and say in it what you ran and what you
could not run.
- Write commit subjects in Conventional Commits: `feat(window): ...`,
`fix(engine): ...`, `docs(...)`. Leave the version alone; a maintainer bumps it
when releasing.
`fix(engine): ...`, `docs(...)` (the history shows the scopes in use). Leave the
version alone; a maintainer bumps it when releasing.
- Do not add tests unless the owner asks for them.
- Keep the engine on loopback. [SECURITY.md](SECURITY.md) sets out what matters; a
change that widens it is discussed in an issue first.
- Every outbound connection goes through `backend/app/net`, to a service declared
there and described in [docs/NETWORK.md](docs/NETWORK.md). Nothing runs in the
background, and a new service is discussed in an issue first.
- Code carries near-zero comments. Markdown has no em dash and no text has an emoji.
- Every new dependency, binary, font or data file gets a row in `NOTICE.md` before
it is used.
Expand All @@ -66,18 +82,22 @@ Reach them through issues and pull requests.

## How changes land

Work reaches `main` only through a pull request from a working branch. Nobody pushes to `main` directly. A pull request merges when both CI jobs, `window` and `engine`, pass on an up-to-date branch and a maintainer has approved it after its last push. Pull requests are merged with a merge commit, never squashed and never rebased.
Work reaches `main` only through a pull request, and nobody pushes to `main` directly. Contributors fork the repository and open a pull request into `main`; maintainers work from a branch of their own. A pull request merges when its CI jobs (`window`, `engine` and `style`) pass on an up-to-date branch and a maintainer has approved it after its last push. Pull requests are merged with a merge commit, never squashed and never rebased.

## Releases

Packaging and releases are done by FormCompiler (`nodemode-dev/formcompiler`), not in this repository. No push from a contributor starts a release.
A release is a version, and only a maintainer makes one: after the version is bumped on
`main`, a maintainer cuts a `compile_vX.Y.Z` branch, and formcompiler
(`nodemode-dev/formcompiler`) builds every platform and publishes them together. No
push from a contributor starts a release.

## Licensing

FormCite is licensed under the GNU General Public License v3.0 only
([LICENSE](LICENSE), SPDX `GPL-3.0-only`). By contributing, you agree that your
contribution is licensed under the same terms. Only add code you have the right to
contribute, and name any third-party code and its license in the pull request.
contribution is licensed under GPL-3.0-only, the same terms. Only add code you have
the right to contribute under them, and name any third-party code and its license in
the pull request.

## Patents and other people's IP

Expand Down
10 changes: 9 additions & 1 deletion NOTICE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ A file brought over from another Form repository gets a row here with its source
| FormLedger v0.11.0 (`nodemode-dev/formledger`), since 0.12.0 | Apache-2.0 | The splash card's shape, from `src-tauri/splash/index.html`, and the shape of `src-tauri/src/reveal.rs` |
| FormLedger v0.10.0 (`nodemode-dev/formledger`), since 0.11.0 | Apache-2.0 | The token names and values for the dark and light themes in `frontend/src/styles/tokens.css` |
| formcompiler and formslot (`nodemode-dev/formcompiler`, `nodemode-dev/formslot`) at their `main` of 2026-11-27, since 0.11.0 | GPL-3.0-only | Patterns, adapted and not copied: the registry entry shape of `apps/formrig.json` behind `packaging/formcompiler/apps/formcite.json`, the five build runners in the `style` CI job, and the prebuilt-before-source order of formslot's installer in `setup/build_style` |
| FormVis 2.9.0 (`nodemode-dev/formvis`), with FormDeck (`nodemode-dev/formdeck`) as the second reference, since 0.15.0 | Apache-2.0 | `frontend/src/dock/`: the shared agent dock module 2.2.1, every file byte for byte as its `MANIFEST.json` lists them (the module is the same in every app). Written for FormCite, after FormDeck's and FormVis's adapters: `frontend/src/dock-adapter.ts`, `frontend/src/styles/dock-tokens.css`, `frontend/src/styles/terminal.css`. Rewritten for FormCite from FormVis's `backend/app/services/terminal.py`, `services/agent_programs.py`, `services/claude_code.py` and `routers/terminal.py`: `backend/app/services/terminal.py`, `backend/app/services/agent_programs.py`, `backend/app/routers/dock.py` |

## Third-party software

Expand All @@ -29,12 +30,19 @@ Each component gets a row here with its license and its use before it is added.
| fastapi 0.141.1, with starlette and pydantic | MIT | engine |
| uvicorn 0.53.0 | BSD-3-Clause | engine |
| pypdf 7.2.0, pinned exactly; it pulls in no other package | BSD-3-Clause, read from the installed package's metadata and license file (Copyright (c) 2006-2008, Mathieu Fenniak, and later contributors) | reading a PDF's metadata and the text of its first pages to find an identifier |
| ptyprocess 0.7.0, pinned exactly, on macOS and Linux; it pulls in no other package | ISC, read from the wheel's license file (Copyright (c) 2013-2014, Pexpect development team; Copyright (c) 2012, Noah Spurrier) | the terminals of the agent dock, since 0.15.0 |
| pywinpty 3.0.5, pinned exactly, on Windows only; its wheel carries `winpty.dll` (winpty, MIT) and `conpty.dll` (Microsoft, MIT) | MIT, read from the wheel's metadata and license file | the terminals of the agent dock on Windows, since 0.15.0 |
| @xterm/xterm 6.0.0 and @xterm/addon-fit 0.11.0, pinned exactly, the same versions as FormVis and FormDeck; they pull in no other package | MIT, read from each installed package's license file (Copyright (c) 2017-2019, The xterm.js authors; 2014-2016, SourceLair Private Company; 2012-2013, Christopher Jeffrey) | the terminal emulator in the agent dock, loaded when the first terminal tab opens, since 0.15.0 |
| tzdata 2026.6, pinned exactly; it pulls in no other package | Apache-2.0, read from the wheel's metadata and license file | the IANA time zone data for the engine's Eastern-time logs where the system has none (Windows always), since 0.15.0 |
| hayagriva 0.10.1, pinned exactly, with its style parser citationberg | MIT OR Apache-2.0 | the citation style engine, built into the Python module `formcite_style` |
| The other crates in `native/formcite-style/Cargo.lock` (pyo3 0.29, serde, serde_json and the rest) | MIT OR Apache-2.0 for most; Unicode-3.0, MIT, Apache-2.0, BSD-2-Clause, Unlicense OR MIT and 0BSD OR CC0-1.0 for the others; `target-lexicon` is Apache-2.0 WITH LLVM-exception and is used at build time only. The full list is in `docs/STYLE_ENGINE.md` | the citation style engine |
| Citation Style Language styles and locales, as bundled inside hayagriva | CC BY-SA 3.0 Unported, by the CSL project and its contributors (citationstyles.org); shipped unmodified, with each style's author and contributor metadata kept | the citation styles the engine renders |
| 40 independent citation styles from the Citation Style Language style repository (commit `38e17c7`), in `templates/styles/` | CC BY-SA 3.0 Unported, by the CSL project and the authors named in each file; shipped unmodified. The list, the licence terms and FormCite's own style and starters are in `templates/CREDITS.md` | styles to format with as your own style file (`format --style-file`) |
| maturin | a build tool; its license has not been read for this repository yet | building the style engine; not shipped |
| typescript 7.0.2 | Apache-2.0 | building the window; not shipped |
| @tauri-apps/cli 2.12.5, pinned exactly, with its platform binary | Apache-2.0 OR MIT, read from the installed package's metadata | building the desktop app (`./formcite desktop build`); not shipped |
| vite 8.3.5 and what it pulls in (rolldown, postcss and others: MIT; lightningcss: MPL-2.0; picocolors: ISC; source-map-js: BSD-3-Clause; tslib: 0BSD) | MIT | building the window; not shipped |
| @tauri-apps/api 2.12.5, pinned exactly; it pulls in no other package | Apache-2.0 OR MIT, read from the installed package's metadata | the macOS system menu in the desktop window (`frontend/src/ui/native-menu.ts`); loaded only inside the desktop shell, since 0.15.0 |
| Tauri 2 with tauri-plugin-shell and tauri-plugin-dialog, fontdb, regex, serde, serde_json, windows-sys, objc2 and its companions | the same crates formtxt's shell uses; their licenses have not been read for this repository yet | desktop shell, which has not been compiled yet |

The window has no runtime dependency and uses the system font stack.
The window's runtime dependencies are @tauri-apps/api, for the macOS system menu, and @xterm/xterm with @xterm/addon-fit, for the agent dock's terminals; it uses the system font stack.
Loading
Loading