zk wants Go 1.21, go.mod asks for 1.25, and make test rewrites your source
A plain text note-taking assistant
At a glance
- What is it?
- A plain text note-taking CLI whose main branch is described as a pre-release while dev is where you contribute, whose pre-built binaries are unsigned and have been flagged as malicious by Windows Defender, whose README toolchain floor is two Go majors behind its module directive, and whose test target reformats every Go file it finds.
- Who is it for?
- zk is a small, well-scoped tool with a build setup that needs reading before you trust it. Take it if you want your notes as plain Markdown files with links, tags and frontmatter, and if you are willing to keep notes in a directory rather than in an editor, since serving them on the web is explicitly out of scope.
- Can I use it commercially?
- Yes, with conditions. GPL-3.0 is a copyleft licence: if you distribute software that includes it, you must release that software's source code under the same licence. Running it internally without distributing it does not trigger that obligation.
- Is it still maintained?
- Yes. The repository last received commits 4 days ago.
- What is it written in?
- Mainly Go, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.
Star history
- zk-org/zk2,878 ★ · +51
| Repository | 2026-10-04 | 2026-11-22 |
|---|---|---|
| zk-org/zk | 2.8k | 2.9k |
51 Stars in the last 49 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Main is the pre-release and dev is the branch to contribute from
Three branches are described across two sections, and they do not agree on a single default. The build-from-scratch instructions say the latest state of main can be considered the stable pre-release state, and that the absolute latest state, with bugs to be expected, is on dev, reached by checking dev out before building. The contributing section then states the rule in one line: be sure when contributing to branch from dev, not main. Homebrew offers the same split through two commands, a plain install for the packaged release and a --HEAD install described as the latest state of main. So main is simultaneously the branch you get by default and the one you are told not to branch from. Nothing anywhere names the branch a pull request should target, because the default branch is simply main.
The docs ask for Go 1.21 and the module asks for 1.25.0
The build-from-scratch section opens by asking for a working Go 1.21 or later installation. The module file declares go 1.25.0. Those are four minor releases apart, and the module directive is the one a toolchain enforces, so the floor a reader takes from the page is not the floor the build has. Two other build facts are worth knowing before you start. Every go invocation goes through a wrapper in the Makefile that forces CGO_ENABLED=1 and passes a build tag of fts5, so SQLite is compiled in through cgo rather than as a pure Go driver, and full text search depends on that tag being present. On Apple silicon the wrapper switches the prefix to set GOARCH=arm64 instead.
git clone https://github.com/zk-org/zk.git
cd zk
make buildThe two-step entry point afterwards is a bare make followed by the help flag.
$ make
$ ./zk -hThe test target reformats every Go file it walks past
The target labelled run unit tests does two things, and only one of them is testing. It runs the test suite across the package tree, then pipes a find over every .go file in the repository into gofmt with the write flag. Nothing is scoped to the files the tests touched, so a test run reformats the whole checkout, including files you had not opened. In a repository whose own quality tooling is gofmt this is defensible, but it means the diff after running the tests is not necessarily yours. Two other targets share the same shape. The end-to-end targets prepend the current directory and the repository root to PATH so a freshly built binary shadows anything installed, one of them printing differences as raw bytes and another updating the fixtures in place.
The pre-built binaries are unsigned and have been flagged
The releases page is introduced with a warning that applies to all three platforms. The pre-built binaries are not code-signed, Windows Defender and other security tools have flagged some versions of the Windows binary as malicious, and building the tool yourself is currently the recommended workaround on Windows, with issue 740 holding the details. So the official download path for Windows is the one most likely to be blocked, and the project's answer is to compile from source. The releases themselves are pre-1.0, with v0.15.6 in July 2026, v0.15.5 in June and v0.15.4 in May. The repository is not archived and the last commit is dated 2026-09-12.
Alpine carries it as a testing package and Nix has four ways in
The install section covers six channels and they are not equivalent in maturity. macOS, Linux and Windows get pre-built release binaries. Homebrew and MacPorts carry packaged builds, and Arch Linux serves it from the official repositories. Alpine is the outlier, described as currently available in the testing repositories, which is the package-manager word for not yet in a stable branch. Nix gets the most attention: it is in nixpkgs, has a Home Manager module, and is reachable four ways, as a one-off run with nix run, as an ephemeral shell with nix shell, as a system-level entry in environment.systemPackages, and as a per-user Home Manager module. The Home Manager snippet is also where the configuration path appears, since settings are edited through an attribute pointing at the config.toml file under XDG_CONFIG_HOME.
The version string comes from a file or from git describe
Version resolution is a shell conditional in the Makefile rather than a constant. It reads the contents of a VERSION.txt file at the root, but only if that file does not look like an unexpanded placeholder, tested by grepping for a dollar-prefixed Format marker. If the file is a git export substitution stub, or is missing, the fallback is git describe with tags, always and dirty, restricted to tag names matching v followed by digits. That is why the tree carries both a VERSION file and a .gitattributes. The result is then reused twice: once stamped into the binary through a linker flag that sets the version in main, and once truncated by dropping its first character and written into a version.txt inside the generated documentation. The clean target removes anything matching zk in the working directory with an unrestricted glob, alongside the docs and test data directories.
The docs are built with Sphinx and the site config is Jekyll
Two documentation toolchains sit in one repository. The Makefile has a target that creates a docs-build directory, writes the truncated version into it and runs sphinx-build over the docs directory, and the clean target removes that directory afterwards. At the root there is a _config.yml, the configuration file format used by Jekyll, matching the hosted documentation path that every link in the README points at. So a Go command line tool carries a Python documentation builder and a Jekyll site configuration. The changelog adds a third convention: it is presented as the list of upcoming features waiting to be released, which makes it an unreleased-features file rather than a record of what already shipped. The tests directory is paired with a generator: one target builds a gentestdata command and produces a notebook of 3000 notes for exercising the tool at scale.
An LSP server and an FTS5 build tag are the load-bearing parts
The dependency list explains the feature claims better than the feature list does. Editor integration is described as working with any LSP-compatible editor, and the module requires a language server package plus a JSON-RPC library, so the tool ships a server rather than expecting a plugin. Search is described as advanced filtering, and it runs on SQLite through a cgo driver, which is why the build tag matters. Markdown support covers several dialects, so a CommonMark parser and its frontmatter extension are direct requirements, alongside a template engine for rendering, a command line parser, a TOML reader for the config file, a slug library, a terminal detection package and a progress bar. One dependency is maintained by the same organisation as the tool itself, a fork of a pretty printing library, which is worth knowing when you file an issue against it.
Editorial conclusion
zk is a small, well-scoped tool with a build setup that needs reading before you trust it. Take it if you want your notes as plain Markdown files with links, tags and frontmatter, and if you are willing to keep notes in a directory rather than in an editor, since serving them on the web is explicitly out of scope. Build it yourself on Windows rather than downloading a binary nobody has signed. Match your Go toolchain to the module directive rather than to the README, and expect the test target to rewrite formatting across the tree. Branch from dev if you intend to contribute, and read VERSION.txt before you trust any version string you see in a build.
Frequently asked questions
What does zk stand for?
The README never expands the name. It introduces zk as a command-line tool for maintaining a plain text Zettelkasten or personal wiki, and every section uses the two-letter name as-is.
Which Go version does zk need to build from source?
The README asks for a working Go 1.21 or later installation, while the module file declares go 1.25.0. The module directive is what a toolchain enforces, so treat 1.25.0 as the real floor.
Are the pre-built zk binaries safe to download on Windows?
The README warns that the pre-built binaries are not code-signed, that Windows Defender and other security tools have flagged some versions of the Windows binary as malicious, and that building zk yourself is the recommended workaround. Issue 740 holds the details.
Which branch should I branch from when contributing to zk?
The contributing section says to branch from dev, not main. The build instructions describe the latest state of main as a stable pre-release and dev as the absolute latest state, with bugs to be expected.
Can zk publish my notes as a website?
No. A section titled what zk is not rules out both a note editor and a tool to serve notes on the web, pointing instead at static site generators documented separately. Related projects listed include Neuron, Emanote and Weave for publishing.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/zk-org-zk)Star history chart for your README
[](https://hysenlabs.com/projects/zk-org-zk)Was this useful?