Repository navigation
Fremkit 0.5.0 #54
fdussert
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Added
menu of the canvas (the screen being edited) and of a screen in the selector above it, and in
⌘K, reloads every page showing that screen: the Edge, a browser tab, a paired iPad. Until now
only the helper's status menu could, and only on the Edge.
iPad and extra screens under Experimental features, the admin hides Settings → Devices
and, on a dashboard with a single screen, the screen selector with its + Add a screen;
importing a layout skips its iPad screens and says so. To show the option, click the version
number in Settings → About seven times (or focus it and press Enter seven times). Unticking it
hides the same things again. Whatever the option says, a dashboard with several screens keeps
its selector and + Add a screen, and Settings → Devices stays in sight while pairing is on
or an iPad is paired, so it can always be switched off or the iPad unpaired. A dashboard that
already has several screens or an iPad screen starts with the option on. A backup restore or
a restored version keeps the option as it is on this Mac.
Brightness widget, the day/night schedule included, is applied on the iPad, which reports its own
level back, so a change in Control Center shows in the admin. When the app is closed or not open
on that screen, the controls say so within 30 seconds. The iPad also switches to the night theme
and back on time, rather than at its next reload.
fremkit://link from the Camera app; without the camera, pick the Mac in the list, check that itshows the same four words as the iPad, and type the code; the code only works for the Mac whose
key the iPad sees, so another machine on the network cannot pass it on. Opening a link while the iPad is paired
asks before replacing the pairing. The iPad reports the size its dashboard really gets, so it lands
on the matching screen. After Reset the certificate, the iPad says the Mac's key has changed
and offers Pair again. When the address it uses goes away (the Ethernet cable unplugged), the
iPad finds the Mac at its other network addresses by itself, even when the local network's name
lookup fails.
derived from the Mac's key; a device that shows the same four words is talking to this Mac. The Mac
is also announced on the network under its computer name rather than "Fremkit", with its address,
so an iPad finds it even where the Mac's
.localname does not resolve.keys, thin accent lines show where its edges or its centre line up with another widget's, or
with the screen's edges and centre.
selection, dragging on the empty canvas draws a selection rectangle, and Cmd+A selects the whole
page. Selected widgets move together with the mouse or the arrow keys (locked ones stay where they
are), and duplicate, copy and paste (keeping their arrangement), lock, change opacity or title,
move to another page and delete together — from the keyboard, their right-click menu or the
inspector, each undone in one step.
it with Tab) shows its preview with its name, what it does, its default size and what it may
read, control and reach.
MuteDeck meeting, a Synology NAS, a Homey's devices and flows and an Elgato Key Light all show
invented data, so they can be tried and get preview images without any account or device.
pnpm widget:previewagainst the demoserver, so none of it shows anybody's real data.
its row of the Sietch, before you install it.
pnpm widget:preview. Takes a widget's preview image for you: it renders the widget alone atits default size against a demo server, waits for it to show data, and writes
preview.webpinto its folder. Works on the built-ins (
--all) and on your own widget (--dir). Seedocs/writing-widgets.md.
previewimage (preview.webpor.png, at most 200 KB, twice its default size in pixels). The installer refuses a package whosepreview is missing or is not the image it claims to be, and
pnpm widget:checkchecks itsdimensions and warns when a widget has none.
pnpm demo(orFREMKIT_DEMO=1) starts a server that shows a full, movingdashboard of invented data — calendar, CPU, music, weather, Claude sessions, GitHub and Azure
DevOps runs, Dock badges — without reading anything off the Mac or any account, in a data folder
of its own. For screenshots, App Store review of the iPad app, and trying Fremkit out. See
docs/demo-mode.md.
the editor that reaches everything it can do: add a widget to the page, go to a page or a
screen, select a widget by its name, open a connection, jump to a widget's setting by its label,
run the fix of a widget that needs attention, and every command of the menus — the selected
widget's right-click menu with its submenus (type "move work" to send it to the page Work), the
page's and the screen's, undo, redo, Edit/Test, the theme, the history, export and import,
diagnostics. Accents and case do not matter; ↑ ↓ choose, Enter runs, → opens a submenu, Escape
closes. With nothing typed it starts with the last commands you ran.
?in the editor, or pick Keyboard shortcuts in thecommand palette, to see every shortcut of the editor in one place.
previous widget of the page, top to bottom; the arrows then move it a cell at a time and
Shift+arrows resize it. Holding an arrow down is one step to undo, not one per cell.
of the dashboard for the last month, by day, with what changed in each — pages, widgets,
screens, theme. Open one to see its pages and restore it in two taps; the version it replaces
stays in the list, so a restore is undone the same way. The version before a backup restore or
a Fremkit update is always kept. Your privacy settings, widget permissions and secrets stay as
they are.
deleted, incomplete or refusing its credentials, its data source out of reach, or no connection
chosen yet — wears a red or orange dot on its tile in the editor, with the reason in its
tooltip. Select it and the reason sits above its settings with the button that fixes it (open
the connection, open the setting, install…); its right-click menu starts with Fix:. The
pages list and the screens selector mark where such a widget is, and the top bar counts them:
click the count to list them all. An update is not a problem: a widget with a newer version in
the registry wears a small arrow in the theme's accent instead, its inspector says which
version is available beside an Update button, and its menu offers Update to vX; the
Sietch button counts updates. It follows the dashboard live; a widget whose page has not been
on screen since Fremkit started has nothing to report yet.
Export screen… and Export the whole setup… in a screen's, or Settings → Share → Share your setup
write a
.fremkit-layout.jsonholding the pages, the bar, the tiles' look and settings, thetheme and the background images. The export shows what is in the file before you download or
copy it: connections, secrets, host names, e-mail addresses, device names, privacy choices and
brightness schedules never are, and settings typed as free text (a label, a link) go in only
if you tick them. Import a layout… — or dropping the file onto the editor — shows what it
adds, offers to install the widgets you do not have from the Sietch (asking what they may do,
as always), asks which of your connections a widget should use, and adds the pages or screens
beside yours unless you choose to replace them. One ⌘Z takes the whole import back.
takes over: at sunrise and sunset where you are, or at fixed times — the same choice as the
screen brightness's day and night, and its place is offered when it has one. The dashboard,
the editor, a paired iPad and every widget switch together, with a crossfade, and a screen
turned on at night starts with the night theme.
screen's while that page is on screen, with a short crossfade when you swipe between pages
that differ. Set it in the editor's right column when no widget is selected, or from
Page background… in the canvas's right-click menu; Use the screen's background puts the
screen's back. The screen settings name the pages that override its background. Backups carry
page backgrounds like any other.
background, copy to another screen (as new widgets with the same settings, laid out for that
screen), move up or down, delete. Pages now reorder by dragging, which the grip at the start of
each row says, and a row shows a single "…"
on hover instead of five buttons. On a widget in the library: add it to any page, add it to the
bar, and for a widget from the Sietch, show it there, update it or uninstall it. On a bar widget,
in the preview or in the Screen settings: its settings, move left or right, remove. On a page of
the bar in the preview, that page's menu; on the bar itself: new page, add a widget to the bar,
the bar's settings. On a screen
above the canvas: rename it in place (or double-click it), its settings, delete it.
app's: show title, appearance (opacity presets, colours, background image, reset),
copy and paste a widget's style, duplicate, copy and paste, move it to another page or screen,
show it on another screen too, default or minimum size, open its connection, about the widget
(version, where it came from, what it asks for, an update when one is waiting), reload it, and
remove it. A right click on the empty canvas pastes, adds a widget, makes a page or opens the
screen settings. The menus work from the keyboard as well.
the same settings and look on the page you are on, on any screen.
dragged, resized or nudged in the editor, and wears a small padlock.
the admin, empty or pre-filled from another one, and give each its own layout. A pre-fill is shown
as a preview first, naming the widgets that do not fit the new screen, and the Screen panel gives
each screen its own address. A widget shown on more than one screen is the same widget: edit its
settings once and every screen follows. Removing it from one screen keeps it on the others; on its
last screen the admin names it and asks before deleting it. The widget library lists what your
other screens show, to place the same widget here, and a tile shown on several screens wears the
number of screens.
scrolling names with a current-page marker. Arrows move by a visible page, and the admin
reserves room for compact widgets. Page taps still work with the admin gestures
(@FlorianBruniaux, Show named pages in dashboard navigation #18).
turns on an encrypted listener on the local network, shows a pairing QR code, lists the paired
devices with the screen each shows, and unpairs one after you confirm. An iPad screen is created
from the paired iPad, at its exact size. The iPad app is described above;
docs/devices.md walks through it.
the dashboard is on, from a tile or from the bar, by sliding a finger along it; the
helper's menu has the same slider. It works over DDC/CI on Apple silicon Macs; a display that
does not answer DDC says so instead of failing silently. In Settings → a screen → Brightness, each
screen can switch between a day and a night level at sunrise and sunset (computed on the Mac
from coordinates you type, or find with a city search that asks Open-Meteo only when you press
Search) or at fixed times, with a gradual change, and can follow
the Mac's built-in screen and its light sensor. With both on, the screen follows the Mac with
the night level as a ceiling; a change by hand holds until the next switch or until the Mac's
brightness moves noticeably, and Back to automatic ends it at once.
brightness, but one that asks to change it is refused at install: the built-in widget, the
admin and the helper's menu are what set it. A paired iPad can never change the Edge's
brightness, only that of its own screen.
Fremkit.screennames the screen a widget is drawn on, forwidgets whose data differs from one screen to the next, and
Fremkit.holdSwipe()keeps thepage from turning while a finger slides a widget's control past its edge.
or category as you type, accents or not ("meteo" finds Météo); Enter adds the first match. The
pages and the search stay in place while the widget list scrolls under them. The Sietch's
search ignores accents too now.
and a box hides the widgets the selected screen already shows, on a page or in its bar.
GitHub issue: the versions, the widgets and connection types in use with their state, and the
recent server log. Secrets, IP addresses, e-mails, host names and the names you gave things are
removed, and the report is shown before you copy it. A link opens the bug form. The menu bar
F has Copy diagnostics too, which adds the helper's side (touch, permissions, the
kiosk display, DDC) and still copies that part when the server is down.
FREMKIT_WIDGET_DEV=1(pnpm devdoes) and it also reads the widgets in
data/widgets-dev/— or the folderFREMKIT_WIDGET_DEV_DIRnames — with the permissions their manifest asks for. Saving awidget's file reloads it on the dashboard and in the admin's previews; saving its manifest
reads the catalogue again first. A shipped Fremkit watches nothing.
pnpm widget:newandpnpm widget:check.pnpm widget:new my-widgetasks for a name in French and English, a category, a size and the data channel it reads, then
writes a working widget into that folder — transparent background, theme accent, compact and
light-tile layouts, every text in both languages — and has a running server pick it up.
pnpm widget:check <folder>applies the registry's and the installer's rules to a widgetbefore you open a pull request on the Sietch.
pnpm e2edrives the admin and the dashboard inChromium (and WebKit when installed) against a throwaway server per worker: the library,
editing with the mouse and the keyboard, every right-click menu, ⌘K, undo, export and import,
the history, widget health, swipes and the night theme, and a security smoke test. Pull
requests run it in CI. See
docs/contributing.md.Changed
its sections, while they scroll.
/ Collapse all for its shelves. Escape in its search clears the search before it closes the
window.
opens a window laid out like the Mac's: every screen on the left, each with its own settings
(name, layout and bar, bar widgets, background, brightness, kiosk address), then the app's panes —
General (the language), Appearance (theme and night theme), Share, History & backup, Privacy,
Devices and About. The search above them finds a setting in any pane ("opacity", "kiosque",
"backup"), accents ignored, and shows only what it found; Escape clears it. A pane's title and its
Expand all / Collapse all stay in view while its sections scroll. Screen settings…,
Navigation bar settings… and the command palette open the window on the right pane.
together instead of running over the bar's widgets, down to a size a finger can still hit.
first time this version starts, and the previous file is kept as
data/fremkit.v3.json— thefile as it was at that first upgrade, never overwritten after: to go back to an older version,
put it back as
data/fremkit.json, knowing that changes made since are not in it.(
pnpm helper:build && pnpm helper:install): an older helper does not recognise the newserver, has no access secret and cannot set the brightness. The app updates both at once.
shows it, a note names that screen and page, with Show me to go there — so a widget you
thought you had deleted no longer keeps a "to fix" badge without a clue why.
Fixed
CPU, memory and disk widgets stopped the whole server for about 70 ms each time; they are now read
without blocking, and the disks once a minute, since free space does not move faster than that.
holding the remote access port for minutes, so the one replacing it said the port was used by
another application and turned remote access off. The old one now lets go of both ports as soon
as it is told to stop and is gone within three seconds whatever it was doing, and the new one
tries the port again every second for ten seconds before saying it is taken; at startup it then
leaves remote access on, so the next start tries again.
the Mac's admin window too. WebKit sent the click to the widget itself, so nothing opened.
the menu only, not the dialog under it.
pnpm run setup. They saidpnpm setup, which runs pnpm'sown command instead: it edits your shell profile and never sets Fremkit up.
now keeps its connection from being deleted; before, the connection could be removed while the
bar widget still used it.
Security
made fresh each time the helper starts, so a web page or another account's program can no
longer read your dashboard or change it. The Edge and the admin window keep working with
nothing to do. In a browser, open the admin from the F menu (Open the admin in the
browser), or from a checkout with
pnpm open; typing127.0.0.1:4242by hand now shows apage saying so.
Scripts calling the server read the secret from
~/Library/Application Support/Fremkit/access-4242.token(see the README).Allow an iPad on the local network on, the Mac now answers only private and link-local addresses
(and itself): a public address, IPv4 or IPv6, and Tailscale get no answer. A VPN that hands out the
same private addresses as a home network cannot be told apart from it and still reaches the Mac,
though not without a pairing code or a paired iPad's key. Pairing answers
only while the admin shows a code; the iPad says so when the code has run out, so make a new one.
Wrong codes are counted per address (per network prefix for most IPv6 addresses), and when the
Mac answers "too many tries" on one of its addresses the iPad tries the others, so a single machine
guessing no longer keeps your iPad from pairing. Scanning the QR code can no longer be blocked at
all: it carries a long one-time secret that pairs even while the Mac is refusing codes. A machine
guessing from many addresses at once can still hold the typed code until it stops; scan the QR code
instead.
own that ends after a day unused, after a week at most, or when Fremkit restarts, instead of
the key itself. Another program listening on your Mac can no longer pick the key up from the
browser's cookies.
shows a page, the server on port 4242 has to prove it holds the key. Another program that took
the port while Fremkit was restarting is no longer shown on the Edge or as the admin; the F
menu says the port is held by another program, and Fremkit takes it back once it is free. The
key also changes every time the server starts, and is removed when it stops.
connection are now handed to the keychain in a way other accounts on the Mac cannot glimpse.
Values with accents or line breaks also read back exactly as typed.
helper be rebuilt without password prompts used to loosen access to every signing key in your
login keychain; it now changes the one key it created, and warns if it finds anything else.
site-icon fetches now check the address they actually connect to, so a site whose name points
somewhere public at first and at your Mac or your network a moment later is refused. Two more
private IPv6 ranges and one more way of spelling
..in a connection's path are refused too.not in the Dock is now refused.
camera preview of an X1 or H2 could retry with the access code visible to other accounts on the
Mac; it no longer does, whatever the printer's state.
full path and put the system folders first, so a program dropped into a Homebrew folder can no
longer stand in for one of them.
dashboard and its backups, the disk map's caches, the Claude caches — can no longer be read by
other accounts on the Mac; files left by earlier versions are fixed the next time it starts.
secrets are kept, the privacy switches, or what installed widgets were granted; and an old admin
tab saving the dashboard can no longer bring back a permission you withdrew.
uninstalled kept its password or token in the keychain after being deleted, and a new
connection given the same name could pick it up. Both are fixed.
now verifies an update's signature before extracting it, and refuses an update feed that does
not carry Fremkit's signature.
secrets in the keychain under a name of its own, so a test copy given a backup of your
dashboard can no longer read or delete the real one's. Existing secrets move over by themselves.
data off the Mac with no network permission and no consent dialog; the constructors are now
gone before any widget code runs, and a second page of a widget runs no script at all. A
built-in widget that needs a peer on this Mac can be given a narrow, local-only WebRTC; a
widget from the registry never can.
admin now carry a Content-Security-Policy that lets a frame load only a widget page, and that
no other site can frame them in.
navigation that is not a widget page, whatever the page's own policy says.
holds a different page, that page hears nothing the first one was told.
the widget's own manifest no longer counts as yours.
a channel it declares as a command, an installed widget only on one you agreed to, and a
paired device gains nothing through it.
This discussion was created from the release Fremkit 0.5.0.
All reactions