z-scratchpad -- notes / wiki lightweight Go-based tool
Repo volution/z-scratchpad, read from GitHub 1 min ago. volution has not joined Take My Repo.
volution/z-scratchpad is a public repo on GitHub by volution. z-scratchpad -- notes / wiki lightweight Go-based tool. It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it. It is written mainly in Go, has 29 stars and last changed on 2026-08-15. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-23.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
z-scratchpad -- lightweight Go-based notes toolz-scratchpad, as the title says, is a lightweight and highly customizable tool
implemented in pure Go (thus portable to most POSIX compliant OS's)
that allows one to easily take notes,
from the unorganized post-it pile, reusable copy-paste snippets,
memos, document drafts,
up to the highly organized (and carefully tagged and categorized) project specific documents.
Most importantly, z-scratchpad does not use a database (neither embedded nor client-server);
instead it uses plain text files with minimal syntax, on a plain file-system,
with minimal requirements on file and folder organization.
Thus, the actual documents can be easily searched and edited with tools like nano, grep, sed, etc.,
versioned with Git, Mercurial, etc.,
synchronized with rsync, Dropbox, etc.,
and interacted with like any other plain text file.
It provides a CLI (command line), TUI (terminal interface, a.k.a. "curses" interface), and a GUI.
However, the TUI / GUI is delegated to one's preferred tools
(like nano, vim, sublime_text, etc., for editing, and fzf, dmenu, rofi, etc., for menus).
It also provides a simple WUI (web interface via a built-in HTTP server) for browsing and viewing. Although the WUI is not intended to be the primary interface, and was not designed to be exposed to the network. However, for publishing on the internet it provides a simple HTML static site export.
It is tailored to individual use, although, given it uses only plain text files, one could leverage Git or any other versioning system. Also, it does not require running a daemon or server in the background.
One can think of z-scratchpad as the merger of
Notational Velocity
(or nvALT)
with MoinMoin (or other wiki's),
that uses one's preferred editor and UI tools.
What z-scrpatchpad is not:
For more features, and anti-features, please see the dedicated section.
Also see the following useful sections:
Finally, it is open-source, licensed under GPL 3 or later. Please see the contributions and licensing sections.
Currently, z-scratchpad is still in a pre-release state,
perhaps somewhere between a beta and a release-candidate.
There is no promise of backward or forward compatibility, there is little documentation (besides the examples), there is no testing harness, and there is no roadmap.
That being said, I'm using it for all my note taking, from personal notes, to for-work project specific documents.
Moreover, given that it just provides the glue between one's favorite UI tools (editors and such), if it breaks nothing is lost. All one's files are stored on the file-system, in plain text files, thus usable with generic file-management tools.
The WUI showing this readme rendered in Firefox browser (under Xorg):
The WUI showing this readme rendered in links (under URxvt terminal) (scrolled 1 page to skip the document header):
Selecting a document to edit with rofi (under Xorg):
Selecting a document to edit with fzf (under URxvt terminal with tmux support):
WIP (work in progress)
Besides what is available by running z-scratchpad help there is no other documentation at the moment.
That being said, just run the following and start experimenting with the commands.
(If there is need for documentation, besides the frugally -h for each command, I have failed in one of the mandatory requirements, that of being "simple to use".)
For how to download and install it see the dedicated section.
Get some help:
z-scratchpad -h
z-scratchpad create -h
z-scratchpad edit -h
z-scratchpad list -h
Initialize the notes store:
# create an empty folder for the notes store
mkdir ./some-notes
# mark the folder as the notes store
touch ./some-notes/.z-scratchpad
# switch to the notes store
# (alternatively, add `-C ./some-notes` to all commands)
cd ./some-notes
Create a note (with a random identifier prefixed by the current date):
z-scratchpad create
Create a note with a custom identifier:
z-scratchpad create -d some-identifier
The note syntax is very simple:
##, as a document title; (e.g. ## some title;)## some title
some content
Edit a note by selecting it from a menu:
z-scratchpad edit -s
Edit a note by using its identifier:
z-scratchpad edit -d some-identifier
List all notes (either identifiers, titles, or paths):
z-scratchpad list
z-scratchpad list -w identifier
z-scratchpad list -w title
z-scratchpad list -w path
List all the files in the notes store:
ls -a -1
2021-08-13--6d2ace99.txt
some-identifier.txt
.z-scratchpad
Start the WUI server:
z-scratchpad server
Open a note in the browser by selecting it from a menu:
z-scratchpad browse -s
Open a note in the browser by using its identifier:
z-scratchpad browse -d some-identifier
As mentioned many times, z-scratchpad is a single self-contained executable,
thus it can be deployed by downloading the executable and placing it somewhere on the $PATH.
Traditionally one should place it inside the /usr/local/bin folder (available on many POSIX compliant OS's).
Alternatively, one can place it in one's $HOME/bin folder and add that to $PATH.
The self-contained executable is available from the z-scratchpad GitHub repository releases:
Also, each of these files are signed with my PGP key 5A974037A6FD8839, thus do check the signature.
The following is an example how one could download, verify, and deploy z-scratchpad:
curl -s https://github.com/cipriancraciun.gpg | gpg2 --import
gpg: key 5A974037A6FD8839: public key "Ciprian Dorin Craciun <ciprian@volution.ro>" imported
gpg: Total number processed: 1
gpg: imported: 1
linux token with darwin (for OSX), freebsd or openbsd):curl -s -L -S -f -o ./z-scratchpad \
https://github.com/volution/z-scratchpad/releases/download/v0.1.1/z-scratchpad--linux--v0.1.1
curl -s -L -S -f -o ./z-scratchpad.asc \
https://github.com/volution/z-scratchpad/releases/download/v0.1.1/z-scratchpad--linux--v0.1.1.asc
gpg2 --verify ./z-scratchpad.asc ./z-scratchpad
58FC2194FCC2478399CB220C5A974037A6FD8839:gpg: assuming signed data in './z-scratchpad'
gpg: Signature made Sat Aug 14 17:12:39 2021 EEST
gpg: using DSA key 58FC2194FCC2478399CB220C5A974037A6FD8839
gpg: Good signature from "Ciprian Dorin Craciun <ciprian@volution.ro>" [unknown]
gpg: aka "Ciprian Dorin Craciun <ciprian.craciun@gmail.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 58FC 2194 FCC2 4783 99CB 220C 5A97 4037 A6FD 8839
chmod 0755 ./z-scratchpad
$PATH:sudo cp ./z-scratchpad /usr/local/bin/z-scratchpad
z-scratchpad --version
* tool : z-scratchpad
* version : 0.1.1
* executable : /usr/local/bin/z-scratchpad
* build target : release, linux-amd64, go1.18.3, gc
* build number : 4543, 2022-07-26-21-00-31
* code & issues : https://github.com/volution/z-scratchpad
* sources git : 8ac0303de9f139a550bc7634cc59b7575dfcf2b0
* sources hash : 958636a84ba8b31f7cebdd2e8d368973
* uname node : some-workstation
* uname system : Linux, 5.18.4-1-default, x86_64
* uname hash : 636fe534b72441e2ccb478f9bd56d653
Alternatively, one can just build the executable themselves (for example to get the latest unreleased changes).
git clone https://github.com/volution/z-scratchpad ./z-scratchpad
cd ./z-scratchpad/sources
go build -o ./z-scratchpad ./cmd/z-scratchpad.go
$PATH:sudo cp ./z-scratchpad /usr/local/bin/z-scratchpad
z-scratchpad --version
* tool : z-scratchpad
* version : 0.1.1
* executable : /usr/local/bin/z-scratchpad
* build target : release, linux-amd64, go1.18.3, gc
* build number : 4543, 2022-07-26-21-00-31
* code & issues : https://github.com/volution/z-scratchpad
* sources git : 8ac0303de9f139a550bc7634cc59b7575dfcf2b0
* sources hash : 958636a84ba8b31f7cebdd2e8d368973
* uname node : some-workstation
* uname system : Linux, 5.18.4-1-default, x86_64
* uname hash : 636fe534b72441e2ccb478f9bd56d653
The following are the main requirements, sorted by priority, that I have in mind while implementing or extending z-scratchpad:
z-scratchpad disappears, no one should lose anything, and should be able to easily migrate to other tools;)fzf, dmenu or rofi;)bash scripts and other scripting tools;)Note that some requirements are marked with "mandatory" although are not at the top. The reason is that although during implementation they should be maintained, compromises can be made (for example in terms of performance). On the other hand, the higher some are on the list, the fewer compromises should be made.
Conversely, there are also some negative requirements, or anti-features, that I keep in mind:
localhost; if one needs to expose it to the network, please use a reverse proxy (like HAProxy);)The careful reader might see that I've listed "does not implement any TUI / GUI" twice, both in features and anti-features, it was not a mistake.
z-scratchpad should limit its UI requirements to the following primitive operations that can be provided by external tools.
nano, vim, and emacs to howl, sublime_text, and vscode;)fzf under the terminal, or dmenu or rofi under Xorg;)Anything that is not on this list should be made to fit a workflow based on these primitives.
Given that z-scratchpad should run without a server, and furthermore that the actual notes are stored on the file-system,
there is quite a lot to be asked in terms of performance...
So I would start to describe some acceptable goals and limitations:
That being said, in my initial performance profiling, with a library composed of ~15K CommonMark documents (generated via lorem-markdownum), I've obtained the following times:
In order to obtain these numbers I had to resort to quite a few optimizations:
SHA1 (and before that SHA256) with blake3 with AVX2 and SSE4.1 acceleration;byte.Buffer instances, grouped by sizes;[N]byte buffers don't escape the stack, and thus don't incur allocations;Therefore, at the moment, without complicating the code too much, this is the best one can achieve. (There is one low-hanging fruit, that of parallelizing the document parsing, however that only reduces the latency, not the overall CPU usage.)
However, even with the current state, I think that the performance objective was achieved.
WIP (work in progress)
In this section I mainly describe what use-cases z-scratchpad should cover,
how it should integrate in one's environment,
and how it should store one's documents.
If one is interested in why I've reached this model, please see the next section on "why".
z-scratchpad uses the following concepts:
inbox folder;)inbox library;)Creating a new document:
z-scratchpad create -- if there is configured a default create library, an new document with a random name (prefixed with the current date) is created under that library's create path, and the preferred editor is opened with the corresponding file;z-scratchpad create -l some-library -- as above the document would be created in the given library's create path;z-scratchpad create -s -- the user is prompted to select a library where a document should be created;z-scratchpad create -l some-library -d some-document -- a document with the given identifier is created in the given library;Editing an existing document:
z-scratchpad edit -s -- the user is prompted to select a document from all available libraries, and then the preferred editor is opened with the corresponding path;z-scratchpad edit -l some-library -s -- as above, but the document selection is limited to the given library;z-scratchpad edit -l some-library -d some-document -- the document with the given identifier and in the given library is opened for edit;Opening an existing document in the preferred browser:
edit with browse;Integrating in other scripts:
z-scratchpad list -t library -- lists the identifiers of available libraries;z-scratchpad list -t library -f json -- the same as above, but output a JSON array;z-scratchpad list -t library -l some-library -w path -- list all the store paths for the given library;z-scratchpad list -t document -l some-library -w path -- list all the document paths for all the documents in the given library;z-scratchpad grep -t some-token-a -t some-token-b -W body -w path -- list all the document paths, whose title contain any of the given tokens;z-scratchpad grep -t some-token-a -t some-token-b -W body -w path -- list all the document paths, whose bodies contain any of the given tokens;z-scratchpad export -l some-library -d some-document -f source -- export the given document's source code; (with the document header canonicalized;)z-scratchpad export -l some-library -d some-document -f html -- export the given document's body rendered as HTML (only the actual body, that could be included in for example <main>...</main>);z-scratchpad tries to detect if it is running under a terminal or Xorg:
TERM environment variable is set (and not equal with dumb);stderr file descriptor is a TTY;DISPLAY environment variable is set;Depending on whether it considers running under a terminal or Xorg, it tries to use different tools (for editing, selecting, etc.)
However one can always set the same tools for both terminal or Xorg configuration properties.
The WUI HTML was designed as simple as possible for two reasons:
links, w3m and lynx;)As stated multiple times throughout this document, z-scratchpad does not intend to be a "publishing wiki",
thus the interface doesn't need to do much except render the documents for easier viewing.
TBC (to be continued)
I've been a long time user of the MoinMoin wiki,
my earliest document being from April 2008,
and I've used it for anything, from writing research papers,
to bash snippets, to-do lists,
and even as a store for encrypted credentials.
However, somewhere in 2015 I've started moving away from it to something else.
The main issue I had with MoinMoin was the editing experience.
Not the syntax, because I liked the MoinMoin one-of-a-kind syntax,
and besides that it also had support for many others
(a favorite of mine being reStructuredText).
When I say the editing experience I mean actually editing the wiki markup,
which required me to use the provided <textarea>,
that not only was incredibly small
(by default it used 20 rows with 80 columns, thus covering perhaps at most 50% of the display of even a small laptop),
but also gave me the experience of the Windows 95 Notepad...
But I've managed by using a Firefox plugin called It's All Text!,
that unfortunately somewhere in 2017 with the release of Firefox 57 stopped working.
This plugin added a small icon to one of the <textarea> corners (for any site)
that when pressed would open my favorite plain text editor,
and then listened for saves and refreshed the <textarea> contents.
However, even with this small improvement, it all just didn't work with my workflow.
I have (and had) the habit of writing (and saving) anything, from one-time bash snippets to personal notes on a phone-call.
Basically, I've used my wiki as both a "highly structured document editing and publishing platform",
but also as a "blackboard full of post-its"; it worked for the former, id really didn't for the latter.
So around January 2015 I'we wrote a simple bash script, called x-scratchpad that would do the following three simple things:
create (or no arguments),
and it would generate a random 8 hex-character identifier,
create a text file (in a certain hard-coded "store" folder),
then open the preferred editor with that file;open,
and it would list all the file names in the store,
concatenate that with the first line in each file,
pipe that through dmenu to allow the user to select a file (by title),
then open the same preferred editor with that file;search,
and would do the same thing as open, but instead of using only the first line,
it would use all (non-empty) lines in each file;
(thus a basic "full-text-search";)Granted, this is not a "new and unique" concept, OSX users had Notational Velocity and nvALT, however Linux users only had Zim...
This small bash script allowed me to cover the "blackboard full of post-its" use-case.
However, using it was such a breeze as compared to the MoinMoin workflow (especially creating new documents),
that very soon I've started using it instead of my wiki.
(By carefully using titles such as project / topic / document, I could have both use-cases in the same folder.)
At the moment I have around 2K documents (and I guess in the last 5 years perhaps I've cleaned at least as many),
and I use it for anything.
Since 2015 until now (that is 2021), I've made only minor improvements, and although I've been a happy user, it started to show it's pain points:
I did investigate lots of alternatives, but all had their issues which I would summarize as:
I did encounter a few tools that had some of my desired traits, but none had everything "just right":
(If one would look carefully at these projects, one would observe that all are written in compiled languages, that yield actual native executables, and none of them are written in NodeJS...) :)
Bug reports, feature requests, and patches are always welcomed!
That being said, take into account that:
Therefor, a feature request or patch might not be applied. That doesn't mean the proposed idea is bad or worthless; it just doesn't fit well with this tool.
However, given it is an open-source project, one can always just fork the project and take it in any direction.
The code is licensed under GPL 3 or later.
For details about the copyright and licensing, please consult the notice.txt file in the documentation/licensing folder.
If someone requires the sources and/or documentation to be released under a different license, please send an email to the authors, stating the licensing requirements, accompanied by the reasons and other details; then, depending on the situation, the authors might release the sources and/or documentation under a different license.
This project, like many other open-source projects, incorporates code from other open-source projects (besides other tools used to develop, build and test).
Strictly related to the project's dependencies (direct and transitive), please see the SBOM (Software Bill of Materials) for links to these dependencies and their licenses.
volution/z-scratchpad is a public repo on GitHub by volution. z-scratchpad -- notes / wiki lightweight Go-based tool.
It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it.
Its maker tagged it for Windows and Linux. That is declared by the maker; Take My Repo has not tested it.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-08-15. GitHub counts 3 open issues and pull requests. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
kawipiko -- blazingly fast static HTTP server -- focused on low latency and high concurrency, by leveraging Go, `fasthttp` and the CDB embedded database
vonuvoli Scheme -- an R7RS interpreter written in Rust focused on systems programming and scripting (i.e. processes, file-system, etc.) with performance and safety in mind
pckb -- backup 128 bits to physical medium
sce -- minimalist console editor (no highlighting, no plugins, no modes, no Emacs)
This page is also available as structured data, with the same sources and dates.
/api/v1/resources/gh/volution/z-scratchpadTake My Repo has not tested this on your machine. Requirements come from the project's own documentation.