We're sorry to announce that Nook 0.3.0 is the final update of this open-source project. People loved Nook, and we're expanding our team because we see something big in it. That means releases after this one will not continue on this repository.
From here on, the code in this repo is yours: fork it, change it, ship it, do whatever you want with it (it stays MIT-licensed). On our side we'll keep improving Nook with frequent updates. Thank you to everyone who used it, filed a bug or wrote a plugin.
The repository holds the source up to Nook 0.2.1. The 0.3.0 installer on the Releases page is the last build we publish here.
A floating notch for Windows 10/11. A small glass pill sits at the top of the screen (center, or either corner). Hover it and it springs open into a bento grid of utilities. Move away and it folds back. It idles at 0% CPU.
Built in Rust with eframe/egui (OpenGL), the windows crate (Win32, DWM,
Windows.UI.Composition, Windows.Media.Ocr), tray-icon and global-hotkey.
Your clipboard, screenshots, notes and files stay on your machine. Nook
goes online for only these: checking GitHub for updates, a once-a-day
anonymous usage count (a random install id, the Nook version, the Windows
build, panel opens and minutes, and uses of each built-in tool; on by
default, off in Settings > Advanced, see Usage stats), Lens search when you use it (your browser
sends the area you selected to Google Lens), and installing a plugin from
the website (Nook downloads it from GitHub).
Get Nook-Setup-<version>.exe from
GitHub Releases and run
it. Windows 10 or 11, 64-bit; no admin rights needed. The installer isn't
code-signed yet, so SmartScreen may say "Windows protected your PC": click
More info, then Run anyway.
Requirements:
-
Rust stable, MSVC toolchain.
rust-toolchain.tomlpinsstable-x86_64-pc-windows-msvc, and rustup installs it on first build. -
Visual Studio 2022 Build Tools with the Desktop development with C++ workload (MSVC v143 and a Windows 11 SDK):
winget install --id Microsoft.VisualStudio.2022.BuildTools -e --override "--quiet --wait --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended"
Then run:
cargo run --releaseOther useful commands:
cargo test --workspacecargo clippy --workspace --all-targets -- -D warningscargo run --release --features nook-app/debug-overlayThe last one adds a small overlay showing the frame count, CPU time per frame, the interval between frames and why egui repainted.
Dev flags: --pinned starts expanded and pinned. --settings opens the
settings page, --page=<module id> a module's page (e.g. --page=phone_link).
installer\build.ps1 builds nook.exe and packs it into
dist\Nook-Setup-<version>.exe with Inno Setup
6.7 or newer:
winget install --id JRSoftware.InnoSetup -epowershell -ExecutionPolicy Bypass -File installer\build.ps1Setup installs for the current user without an admin prompt (all users is
offered too), adds a Start menu entry, optionally a desktop shortcut and
launch at sign-in, and registers nook:// links. Uninstall removes those
and asks before deleting %APPDATA%\Nook. The icon and the wizard art are
drawn by installer\make_assets.py; run it after changing the mark.
To publish a release, bump version in [workspace.package] of
Cargo.toml, run build.ps1, then upload the installer under the tag
v<version>:
gh release create v0.2.1 dist/Nook-Setup-0.2.1.exe --title "Nook 0.2.1"The website's download buttons point at that asset, so bump VERSION (and
SIZE) in lib/release.ts of the website repository to match.
Installed copies update themselves from the same release. Nook asks GitHub
for the latest release 20 seconds after start and every 6 hours. When the
tag is newer than the running version, an Update to x.y.z button
appears in the panel's bottom gutter, in the Settings header and in the
tray menu. Clicking it downloads the Nook-Setup-*.exe asset, checks its
size and SHA-256, and runs it with /SILENT /RELAUNCH=1. Setup replaces the
files and starts Nook again. Keep the v<version> tag and the
Nook-Setup-<version>.exe asset name, or the updater won't find the
release. Drafts and pre-releases are never offered. Set
check_updates = false in config.toml to turn the automatic checks off.
Settings > Check for updates still works with checks off. Copies that
Setup didn't install, such as cargo run builds, never check by
themselves, and their Update button opens the release page instead.
Nook counts installs and usage anonymously, so we know how many people
use it and which tools matter. On first run it makes a random install id.
Once a day while it's open, it sends a Cloudflare Worker (telemetry/):
- that id, the Nook version and the Windows build number,
- how many times the panel opened and how many minutes it was open since the previous ping,
- how many times each built-in tool was used (tile click or hotkey). Plugin names are never sent.
The counts wait in %APPDATA%\Nook\usage.json until a ping goes through.
The Worker never stores IP addresses, and it keeps tool counts as per-day
totals with no install id. Settings > Anonymous usage stats turns it
all off and deletes waiting counts. Copies Setup didn't install never send
anything.
The dashboard shows total installs, daily, weekly and monthly actives, new
installs per day, the versions in use, average panel opens and minutes per
day, and the most used tools. Its link, with its private key, is in
telemetry/.stats-url, which git ignores. To change the Worker, edit
telemetry/src/index.js and deploy it from that folder:
npx wrangler@4.153.0 deployA database change goes in telemetry/migrations/ (and in schema.sql
for fresh databases). Apply it to the live database once, before deploying
the Worker that uses it:
npx wrangler@4.153.0 d1 execute nook-stats --remote --file migrations/0002_usage.sql-
Hover the pill for 120 ms to expand. Leave for 250 ms to collapse.
-
Click the glass (or empty space on any page), press Ctrl+Alt+N, or use the tray's Pin open to keep the panel open. A small pin shows at the top center.
-
Position: Settings, Position: Left, Center or Right. In a corner the panel opens toward the other side.
-
Always on top: on by default. Turn it off in Settings or the tray to keep Nook behind your windows (it still shows on the desktop). Ctrl+Alt+N brings it back on top.
-
Tray menu: Settings, Pin open, Always on top, Launch at startup, Quit.
-
Settings (gear tile): theme (Auto/Dark/Light), accent (Wallpaper/Windows/Violet), material (Glass/Solid), position (Left/Center/Right), monitor (Primary/Follow cursor), hover delay, always on top, launch at startup.
-
Edit the layout: the pencil at the bottom left of the grid. The grid becomes a live preview of itself: drag a tile and the others spring out of its way as it repacks (rest on a page dot to carry it to another page). Each tile shows its icon, a tick under it to show or hide it (hidden tiles stay dimmed in edit mode), and Small (1x1), Wide (2x1) or Large (2x2) to resize it. The check where the pencil was finishes.
-
Compact tiles open in place: a tile made smaller than its layout needs (timer, media, clipboard, coffee, notes) shows its icon, name and live status. Click it and the grid repacks with it at full size: it grows in place while the other tiles glide out of its way, and they stay usable. Click anywhere else (or press Esc) to fold it back.
-
Wallpaper: the tile shows your current wallpaper. Click it, choose a folder (subfolders two levels down are included), and its pictures line up in a filmstrip under a large preview. Scroll the strip sideways with the wheel, a trackpad or a drag. Hover a picture to preview it, and click it to set it on every monitor. The accent color follows the new wallpaper.
-
Nook hides itself while a fullscreen app or game is in front.
-
Screen tools work on every connected monitor. They freeze all of them first, so menus and video hold still, and a selection can span monitors. Hints and the loupe follow the cursor at each monitor's scaling. Esc or right click cancels.
- Text extractor (Ctrl+Alt+T): drag over text and it is copied, one line per row. Hold Shift as you let go to get a single line. Uses the OCR built into Windows, for the languages whose OCR packs are installed.
- Color picker (Ctrl+Alt+P): a loupe follows the cursor. Scroll to zoom, arrows nudge by a pixel (Shift: ten), click or Enter copies the color. Right click the tile for the history and the copy format (HEX, RGB, HSL, HSV, OKLCH).
- Lens search (Ctrl+Alt+L): drag over anything and Google Lens opens in your default browser with the results.
- Font detector (Ctrl+Alt+F): drag over a line of text. The text is
redrawn in every installed font and compared pixel by pixel. If the
Lens model by Mixfont is present, its
neural network also names open-source fonts (983 families, mostly Google
Fonts) that are not installed. It runs on the device with no network.
The model is not bundled, because Lens is licensed for personal and
non-commercial use only. To enable it, copy
font_classifier.ptandclasses.jsonfrom Lens'smodel/folder to%APPDATA%\Nook\fontnet\(orfontnet\next tonook.exe, orassets\fontnet\in a checkout).
-
Phone link (the phone tile): your Android phone inside the notch. The page grows the panel to fit a phone screen.
- Files and text, both ways, over the local network with the
LocalSend protocol, implemented in Rust (no
cloud, no account). The phone only needs the LocalSend app open. Drop
files or folders on the open page, or use Choose files; Send clipboard
sends your copied text as a message. Incoming files ask first (the
notch opens on the request) unless auto-accept is on, and land in
Downloads\Nook. The pill shows a progress ring while a transfer runs. Allow Nook through the Windows firewall when asked, or nothing can reach it. - Screen mirroring with scrcpy (Install with WinGet from the page if it is missing). The mirror sits in the panel with rounded corners. Click it, or the cursor button, to control the phone with your mouse and keyboard; Esc gives them back. Clipboard syncs both ways while mirroring; phone audio and turning the phone's screen off are options in Setup.
- Notifications over adb: the Alerts tab lists them, the pill pulses when new ones arrive, and clicking one opens its app on the phone and mirrors it.
- Back, home, recents, volume and power keys under the phone.
- USB or Wi-Fi: turn on USB debugging and plug in, then Setup can
switch the phone to Wi-Fi in one click (
adb tcpip), connect to an address, or pair with an Android 11+ wireless debugging code. The last Wi-Fi address reconnects at start-up. Settings are in%APPDATA%\Nook\phone.txt.
- Files and text, both ways, over the local network with the
LocalSend protocol, implemented in Rust (no
cloud, no account). The phone only needs the LocalSend app open. Drop
files or folders on the open page, or use Choose files; Send clipboard
sends your copied text as a message. Incoming files ask first (the
notch opens on the request) unless auto-accept is on, and land in
-
Tools (second page of the grid). Each opens a full page; made Wide or Large, most show more on the tile itself.
- QR code (Ctrl+Alt+Q makes one from the clipboard): paste a link and
the code draws as you type. Styles: dots, liquid, round lines, rounded,
square; corner eyes round, circle, leaf or square; solid colors,
gradients or the accent; white, cream, night or clear background; your
logo in the middle (drop an image on the notch, error correction rises
to High) and a label under it. Copy, save a 1200 px PNG or a vector
SVG to
Pictures\QR codes, or drag the preview into any app. - Calculator (Ctrl+Alt+K): answers as you type.
200 + 15%,20% of 150,2π,5!,17 mod 5,0xFF, functions, DEG/RAD,ans, and unit conversion (5 km to mi,72 f in c,2 GB in MB,90 min to h). Whole answers show in hex and binary. Enter keeps the answer in the history. - System monitor: CPU and memory rings on the tile; the page charts the last minute of CPU, memory and network, shows free space per drive and the busiest apps (by CPU or memory). It samples only while on screen.
- Calendar: today's date on the tile, a month view with ISO week
numbers (the week starts on your region's first day). Type
14:30 Dentistto add an event; timed events chime, open the notch and pulse the pill. Saved in%APPDATA%\Nook\calendar.txt. - Quick launch: apps, folders, files, websites and
ms-settings:pages with their Explorer icons. Drop files on the open page, paste a path or URL, or browse; the pencil reorders and removes. - Voice memo (Ctrl+Alt+R from anywhere): records the microphone to
WAV in
Music\Voice memoswith a live waveform and the time in the pill. Play, rename, drag into a chat, show in Explorer or delete.
- QR code (Ctrl+Alt+Q makes one from the clipboard): paste a link and
the code draws as you type. Styles: dots, liquid, round lines, rounded,
square; corner eyes round, circle, leaf or square; solid colors,
gradients or the accent; white, cream, night or clear background; your
logo in the middle (drop an image on the notch, error correction rises
to High) and a label under it. Copy, save a 1200 px PNG or a vector
SVG to
Anyone can add a tile to the notch without touching Nook's code or knowing
Rust. A plugin is a folder with a plugin.toml and a program in any
language (Python, Node, PowerShell, Go, C#, Rust, ...). The program prints
JSON describing its tile and page, Nook draws it in its own glass style, and
sends back clicks, text input, hotkeys and dropped files. Plugins can show a
badge in the collapsed pill, open the notch, copy to the clipboard and open
links, and the canvas component lets them draw anything.
# %APPDATA%\Nook\plugins\hello\plugin.toml
id = "hello"
name = "Hello"
icon = "hand-waving"
size = "wide"
run = ["python", "main.py"]- Guide: docs/plugins.html: quick start, every component and message, live and poll modes, debugging, ideas.
- Examples: examples/plugins: a counter, a to-do list, a PowerShell disk monitor (nothing to install) and an analog clock drawn on a canvas.
- Helpers: sdk/python/nook.py and sdk/node/nook.js, one dependency-free file each.
- Claude Code skill: skills/nook-plugin teaches
Claude Code the protocol and bundles a checker
(
skills/nook-plugin/scripts/check_plugin.py <plugin folder>) that runs a plugin the way Nook does and reports what Nook would skip. Install it by copying the folder to%USERPROFILE%\.claude\skills\; the website's docs offer it as a zip. After changing the SDKs or the icon table, runpython skills/pack.pyto refresh its copies and the zip.
Install from the website. Each plugin's page has an Install in Nook
button. It opens a nook://install?... link (Nook registers the link type
for the current user every time it starts). If Nook is already running, the
new nook.exe hands the link to it over a named pipe and exits. The four
examples are built into nook.exe and install at once. Plugins from GitHub
open the notch on the Plugins page, which shows the source and the exact
command the plugin runs; the zip is only downloaded (at the reviewed commit)
once you click Install. Either way the tile appears live, with no restart.
Updates replace the folder in place and keep the plugin's saved data;
Remove sends it to the Recycle Bin.
Dev mode (Settings, the Plugins card): saving a file in a plugin's
folder restarts that plugin, and plugin folders that appear or go are loaded
or unloaded within a second, so a new plugin shows up without restarting
Nook. NOOK_PLUGIN_DEV=1 or --plugin-dev turns it on for one run, which
is handy with the examples in a checkout:
NOOK_PLUGIN_PATH="$PWD/examples/plugins" NOOK_PLUGIN_DEV=1 cargo run --releasePlugins run as separate processes. A crash restarts the plugin and never takes the notch down. They have the same rights as any program you run, so install only plugins you trust.
Config lives in %APPDATA%\Nook\config.toml and logs in
%APPDATA%\Nook\nook.log.
crates/
app/ eframe entry, window sync (backdrop, hit shape, anchoring, layer), tray, hotkeys,
config, system watcher, settings page, debug overlay
ui/ theme tokens, spring animator, squircle geometry,
shell state machine + renderer (placement), bento grid, widgets, Module trait
platform/ windows-rs wrappers: window styles, click-through hit testing, z-order,
Composition backdrop, DWM, monitors, fullscreen detection, power,
registry, startup, wallpaper
modules/ one file per utility (timer, media, coffee, clipboard, color picker, draw,
text extractor, lens, QR code, calculator, calendar, ...), kit.rs for
the controls the tool pages share, plugins/ for the plugin host
assets/icon/ the app icon (nook.ico, embedded in nook.exe) and PNG sizes
installer/ Inno Setup script, build script, and the generator for the icon and wizard art
docs/NOTES.md the egui/Windows limitations hit and the workaround for each
docs/plugins.html the plugin developer guide
examples/plugins/ sample plugins in Python, Node and PowerShell
sdk/ optional one-file plugin helpers for Python and Node
Modules implement nook_ui::module::Module (id, name, icon,
size_hint, collapsed_badge, ui_tile, on_tick, default_hotkey, and
a few more) and register in a Registry. The bento grid is packed from the
enabled modules in the order stored in config ([modules] order and
disabled). The trait is object-safe and keyed by string ids, so the plugin
host registers each plugin as a Box<dyn Module> (id plugin:<id>) and the
shell treats it like any built-in.
Modules do their work off the UI thread and talk to it through channels
drained in on_tick.
Shell, springs, click-through (done)
- Borderless, transparent, always-on-top tool window, no taskbar entry, never steals focus
- Top-center anchoring on the primary monitor or the monitor under the cursor, DPI-aware
- Left or right corner placement; the panel opens toward the other side
- Always on top, or behind all windows (above the desktop)
- Pill 140x34 springs into a 568x236 panel: 4% overshoot, 120 ms hover debounce, 250 ms leave grace
- Click, tray or hotkey pins the panel open
- Squircle that morphs from a capsule (pill) to continuous corners (panel); hit testing follows it every frame
- Real acrylic blur clipped to the animated shape (Windows.UI.Composition), with a solid fallback
- Glass: 70% charcoal gradient, grain, 1 px top highlight, rim. Tint, rim and highlight are drawn by the compositor in the same commit as the blur, and neither window uses a region, so nothing flashes while animating (verified frame by frame with Desktop Duplication)
- Content: fade, 0.96 to 1.0 scale, tiles stagger 20 ms after the shell is 60% open; on collapse the content fades out before the shell shrinks
- Tiles: hover lift and glow, press scale 0.97, accent gradient when active
- Spring toggles and segmented controls; 120 ms icon crossfade helper
- Idle pill: ink capsule with a local clock and battery (or date on desktops), wakes once per minute; swells under the pointer
- Collapsed pill renders module badges (the timer ring replaces the clock; glyphs and the pulse dot replace battery or date)
- Repaints only while something moves; idle 0.000% CPU
- Follows the Windows "Animation effects" setting (springs snap)
- Auto-hides behind fullscreen apps
- Tray (Settings, Pin, Launch at startup, Quit); launch at startup via the HKCU Run key
- Dark, light and auto themes; wallpaper-derived accent
Modules
- Coffee (keep-awake): always or 15 min to 2 h, Ctrl+Alt+C, cup glyph in the pill
- Timer: countdown (scroll or +/- to set, sound at zero, snooze) and stopwatch, ring and time mirrored in the pill. Pomodoro cycles still to do
- Clipboard history: text and images, in memory only, skips content marked private; the expand button opens the full history page
- Color picker: loupe with zoom and pixel nudging, HEX/RGB/HSL/HSV/OKLCH, history page, Ctrl+Alt+P
- Media (SMTC): title, artist, album art, progress, previous / play-pause / next; a note glyph in the pill while playing
Settings panel
-
Theme, accent, material, monitor, hover delay, startup
-
Module toggles, ordering and sizes (tile editor)
-
Text extractor: freeze, drag, Windows OCR, copied with line breaks (Shift: one line), Ctrl+Alt+T
-
Lens search: freeze, drag, opens Google Lens in the browser, Ctrl+Alt+L
-
Draw on screen: transparent ink layer over every monitor (pen, highlighter, eraser, five colors, undo, clear), draggable toolbar that opens on the cursor's monitor, Ctrl+Alt+D to open, Esc to close
-
Phone link: LocalSend file and text transfer (discovery, receive server, HTTPS client), scrcpy mirroring hosted in the panel with a control mode (Esc releases), adb notifications and phone keys, Wi-Fi adb
-
QR code: five module styles, four eye styles, gradients, logo and label, PNG/SVG/clipboard/drag export, Ctrl+Alt+Q
-
Calculator: expression engine with percentages, functions and unit conversion, keypad, history, Ctrl+Alt+K
-
System monitor: CPU, memory, network charts, drives, top apps
-
Calendar: month view, week numbers, events with reminders
-
Quick launch: pinned apps, folders, files and sites with shell icons
-
Voice memo: microphone to WAV, live waveform, playback, Ctrl+Alt+R
Quality
- No
unwrap()outside tests - Every Win32 call goes through an error-checked wrapper
- Clippy and fmt clean
- Unit tests for the spring animator, squircle hit-testing and outline, bento packer, shell state machine, config, accent extraction and the registry
- Unit tests for timer logic
- Unit tests for capture cropping, the snip overlay geometry, OCR preprocessing, color formats (OKLCH against reference values) and the Lens hand-off page
Measured (Win 11 26300, 125% scale, AMD GPU):
- Idle CPU with the clock ticking and the hit-test poller: 0.16% of one core over 20 s (0.01% of a 16-thread CPU).
- Idle working set: about 7 MB once collapsed for 3 s (trimmed). Commit charge is about 90 MB, mostly the OpenGL driver; see docs/NOTES.md.
See CONTRIBUTING.md. Nook is released under the MIT license.