Skip to content

Fremkit 0.5.0

Choose a tag to compare

@fdussert fdussert released this 19 Oct 13:50
· 519 commits to main since this release

Added

  • Reload a screen's dashboard from the admin. Reload the dashboard, in the right-click
    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 are experimental until the iPad app is available. Until you tick
    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.
  • The iPad follows the brightness set for its screen. What you set in the admin or with the
    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.
  • The Fremkit iPad app pairs on its own. Scan the QR code the admin shows, or open its
    fremkit:// link from the Camera app; without the camera, pick the Mac in the list, check that it
    shows 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.
  • A fingerprint for your Mac's key. Under the pairing code, the Devices section shows four words
    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 .local name does not resolve.
  • Alignment guides in the editor. While you drag or resize a widget, or move it with the arrow
    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.
  • Select several widgets at once in the editor. Shift- or Cmd-click adds a widget to the
    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.
  • See a widget before placing it. Hovering a card of the editor's widget library (or reaching
    it with Tab) shows its preview with its name, what it does, its default size and what it may
    read, control and reach.
  • Demo mode acts out the Sietch's widgets too: Codex sessions and quotas, local AI models, a
    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.
  • Every built-in widget has a preview, taken with pnpm widget:preview against the demo
    server, so none of it shows anybody's real data.
  • Pictures in the Sietch. A registry widget that publishes a preview shows it as a thumbnail on
    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 at
    its default size against a demo server, waits for it to show data, and writes preview.webp
    into its folder. Works on the built-ins (--all) and on your own widget (--dir). See
    docs/writing-widgets.md.
  • Widget previews in the manifest. A widget may name a preview image (preview.webp or
    .png, at most 200 KB, twice its default size in pixels). The installer refuses a package whose
    preview is missing or is not the image it claims to be, and pnpm widget:check checks its
    dimensions and warns when a widget has none.
  • Demo mode. pnpm demo (or FREMKIT_DEMO=1) starts a server that shows a full, moving
    dashboard 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.
  • Command palette. ⌘K (or Ctrl+K, or Commands in the top bar) opens a search field over
    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.
  • Keyboard shortcuts sheet. Press ? in the editor, or pick Keyboard shortcuts in the
    command palette, to see every shortcut of the editor in one place.
  • Tab through the page's widgets. In the editor, Tab and Shift+Tab select the next and the
    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.
  • Dashboard history. Settings → History & backup (or the button next to undo) lists every saved version
    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.
  • Widget health in the editor. A widget that cannot work — not installed, its connection
    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.
  • Share a page, a screen or your whole setup. Export page… in a page's right-click menu,
    Export screen… and Export the whole setup… in a screen's, or Settings → Share → Share your setup
    write a .fremkit-layout.json holding the pages, the bar, the tiles' look and settings, the
    theme 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.
  • A theme for the night. Under the theme list, pick another theme for the night and when it
    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.
  • A background per page. A page can have its own colour or image, shown instead of the
    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.
  • Right-click menus on the rest of the editor. On a page in the list: rename, duplicate, page
    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.
  • Right-click menus in the editor. A right click on a widget opens a real menu, like a Mac
    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.
  • Copy and paste widgets. Cmd+C copies the selected widget and Cmd+V pastes a new one with
    the same settings and look on the page you are on, on any screen.
  • Lock a widget in place. From its menu or the inspector: a locked widget can no longer be
    dragged, resized or nudged in the editor, and wears a small padlock.
  • Several screens per dashboard (an experimental feature for now, see above). Add a screen in
    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.
  • Choose page names in the bar. Each screen can keep the familiar page dots or show
    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, #18).
  • Pair an iPad (Mac side, an experimental feature for now, see above). Settings → Devices
    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.
  • Screen brightness. A new built-in Brightness widget sets the brightness of the screen
    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.
  • Only Fremkit itself sets the brightness. A widget from the registry may show the screen's
    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.
  • Widget SDK generation 3. Fremkit.screen names the screen a widget is drawn on, for
    widgets whose data differs from one screen to the next, and Fremkit.holdSwipe() keeps the
    page from turning while a finger slides a widget's control past its edge.
  • Search the widgets. A box above the editor's widget list filters it by name, description
    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.
  • Tidy the widget list. Two buttons beside the Widgets title open or fold every shelf at once,
    and a box hides the widgets the selected screen already shows, on a page or in its bar.
  • Copy diagnostics for a bug report. Settings → About prepares a report to paste into a
    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.
  • For widget authors: live reload. Start Fremkit with FREMKIT_WIDGET_DEV=1 (pnpm dev
    does) and it also reads the widgets in data/widgets-dev/ — or the folder
    FREMKIT_WIDGET_DEV_DIR names — with the permissions their manifest asks for. Saving a
    widget'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.
  • For widget authors: pnpm widget:new and pnpm widget:check. pnpm widget:new my-widget
    asks 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 widget
    before you open a pull request on the Sietch.
  • End-to-end tests, for contributors. pnpm e2e drives the admin and the dashboard in
    Chromium (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

  • The widget inspector keeps the widget's name in view, with Expand all / Collapse all for
    its sections, while they scroll.
  • The Sietch keeps its tabs, search and filters in view while its list scrolls, with Expand all
    / Collapse all for its shelves. Escape in its search clears the search before it closes the
    window.
  • Settings, in a window of their own. The top bar's Screen button is now Settings, and it
    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.
  • Page dots fit many pages. With many pages, the dots of the navigation bar draw closer
    together instead of running over the bar's widgets, down to a size a finger can still hit.
  • Upgrading the dashboard file. Your dashboard is converted to the new screens layout the
    first time this version starts, and the previous file is kept as data/fremkit.v3.json — the
    file 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.
  • From a checkout, rebuild and reinstall the helper with this version
    (pnpm helper:build && pnpm helper:install): an older helper does not recognise the new
    server, has no access secret and cannot set the brightness. The app updates both at once.
  • Adding a screen creates an Edge screen; an iPad screen is now created from a paired iPad.
  • Taking a widget off a screen says where it still is. When another screen (an iPad, say) still
    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

  • The server no longer freezes every two seconds. Reading the disks and the memory for the
    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.
  • A restarted Fremkit gets the iPad port back. A server that was told to stop could keep
    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.
  • Right-clicking a widget in the bar of the editor's preview opens its menu in Safari and in
    the Mac's admin window too.
    WebKit sent the click to the widget itself, so nothing opened.
  • Escape in a right-click menu opened inside a dialog (the Screen panel's bar widgets) closes
    the menu only, not the dialog under it.
  • The install instructions say pnpm run setup. They said pnpm setup, which runs pnpm's
    own command instead: it edits your shell profile and never sets Fremkit up.
  • A connection used only by the navigation bar is protected. A widget shown only in the bar
    now keeps its connection from being deleted; before, the connection could be removed while the
    bar widget still used it.

Security

  • The dashboard asks for a key. Fremkit's server now answers only callers that show a secret
    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; typing 127.0.0.1:4242 by hand now shows a
    page saying so.
    Scripts calling the server read the secret from
    ~/Library/Application Support/Fremkit/access-4242.token (see the README).
  • An iPad pairs only from your local network, and only while a code is showing. With
    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.
  • A browser holds a session, not the key. Signing a browser in now gives it a session of its
    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.
  • Fremkit checks it is talking to itself. Before the menu-bar helper hands over its key or
    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.
  • Saved passwords no longer pass through a command line. Tokens and passwords you give a
    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.
  • Setting up the signing identity touches only its own key. The setup step that lets the
    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.
  • A widget cannot reach your network by switching addresses. The widget proxy and the
    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.
  • The Dock widget opens only what is in your Dock. Asking it to bring forward an app that is
    not in the Dock is now refused.
  • A Bambu printer's access code stays off the command line. When the printer was off, the
    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.
  • Fremkit runs macOS's own tools. The helper and the server now call system tools by their
    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.
  • Your dashboard's files are yours alone. Fremkit's data folder and everything in it — the
    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.
  • Restoring a backup keeps your security choices. A restored archive no longer changes where
    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.
  • Deleting a connection deletes its secret, always. A connection whose widget had been
    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.
  • Updates are checked before they are unpacked, and the update feed must be signed. The app
    now verifies an update's signature before extracting it, and refuses an update feed that does
    not carry Fremkit's signature.
  • Another copy of Fremkit cannot touch your saved passwords. Each Fremkit now keeps its
    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.
  • Widgets can no longer use WebRTC. A peer connection was a way for a widget to send its
    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.
  • A widget can no longer send data away by navigating its own frame. The dashboard and the
    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.
  • The Edge and the admin window refuse it too. The helper's web views cancel any frame
    navigation that is not a widget page, whatever the page's own policy says.
  • What the dashboard tells a widget stays with that widget's page. If a widget's frame ever
    holds a different page, that page hears nothing the first one was told.
  • A widget's icon is fetched only from an address you typed. A default address written in
    the widget's own manifest no longer counts as yours.
  • A setting's ▶ preview stays within what you granted. A widget can offer a preview only on
    a channel it declares as a command, an installed widget only on one you agreed to, and a
    paired device gains nothing through it.