Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to MagicInput are documented here. The project follows [Semantic Versioning](https://semver.org).

## [Unreleased]

### Added

- **Update notice.** When a newer version is out, the panel says so with a Download button, and the menu bar / tray menu shows "Update to …". The panel asks GitHub for the latest version number when it opens (and once a day while the icon is on); nothing about your computer is sent. Turn it off with `check_updates = false` in the config file. Microsoft Store installs don't check, since the Store updates them.
- **Report a problem**, in the panel's footer and the icon's menu, opens a GitHub bug report with your MagicInput and system versions filled in.

## [0.6.2] - 2026-10-25

### Changed
Expand Down
2 changes: 1 addition & 1 deletion PRICING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Free for personal use also covers schools, charities, public research and govern

- **Read or audit the code.** The full source is public, every release is built from it, and independent security reviews are welcome. Report findings privately as described in [SECURITY.md](SECURITY.md).
- **Verify your download.** Each [release](https://github.com/betoxf/Magicinput/releases) publishes `SHA256SUMS.txt`, so you can confirm the file you downloaded is the one released (`shasum -a 256 MagicInput.dmg`). The Mac app and disk image are signed with an Apple Developer ID and notarized by Apple (`spctl --assess --verbose /Applications/MagicInput.app`).
- **Watch what it does.** No accounts, no telemetry: MagicInput only talks to your other computer on your local network (and, with a monthly or yearly business key, renews it once a day), which you can confirm with any network monitor.
- **Watch what it does.** No accounts, no telemetry: MagicInput only talks to your other computer on your local network, apart from asking GitHub for the latest version number when the settings panel opens (`check_updates = false` turns that off) and, with a monthly or yearly business key, renewing it once a day. You can confirm this with any network monitor.

## Licenses

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ Yes. Copied text goes with the pointer to the other computer, and ⌘C / ⌘V wo

### Is it secure? Does it need the internet or an account?

No internet, no account, no cloud. The two computers talk only on your local network, encrypted end to end with your pairing code. Connections from outside your network are refused. See [Privacy and security](#privacy-and-security).
It doesn't need the internet, an account or a cloud. The two computers talk only on your local network, encrypted end to end with your pairing code. Connections from outside your network are refused. If the internet is there, the settings panel asks GitHub whether a newer version is out (you can turn that off). See [Privacy and security](#privacy-and-security).

### Does it work on Linux, or with more than two computers?

Expand All @@ -202,7 +202,7 @@ Not yet. MagicInput is for one Mac and one Windows PC (Windows 10 or 11, macOS 1
## Privacy and security

- Input, clipboard text and settings travel only between your two computers, encrypted.
- MagicInput has no servers, no account and no telemetry. With a monthly or yearly license, it fetches a fresh key from bullfighterstudio.com about once a day; that's the only server it talks to.
- MagicInput has no servers, no account and no telemetry. The settings panel asks GitHub which version is the latest release when it opens (and once a day while the menu bar / tray icon is on), so it can say when an update is out; the request carries nothing about you or your computers. Turn it off with `check_updates = false` in the config file. With a monthly or yearly license, it also fetches a fresh key from bullfighterstudio.com about once a day. Those are the only servers it talks to.
- Nothing is accepted from outside your local network.
- The macOS permissions (Accessibility, Input Monitoring) are what any keyboard/mouse sharing tool needs to see and send input.
- The source code is public, so you or your security team can audit exactly what it does, and check the downloads against the published checksums ([how](PRICING.md#check-it-yourself)).
Expand Down
2 changes: 1 addition & 1 deletion docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Bursts of movement are merged before sending. On the receiving side, movement th

## Settings panel

A borderless window with system glass (vibrancy on macOS, acrylic on Windows) hosting a small web page (`src/ui.html`). It is shown only once drawn, attaches under the tray icon, closes on click-away or Esc, and is kept hidden for reuse while the icon is on. On macOS the menu bar icon is a live vector image composed from SF Symbols; display names and wallpapers come from AppKit, and displays are moved with Core Graphics display configuration.
A borderless window with system glass (vibrancy on macOS, acrylic on Windows) hosting a small web page (`src/ui.html`). It is shown only once drawn, attaches under the tray icon, closes on click-away or Esc, and is kept hidden for reuse while the icon is on. When it starts, and once a day while it keeps running for the icon, the panel reads which version GitHub's latest-release page redirects to (`curl`, nothing sent about the computer) and offers the download if it's newer; `check_updates = false` turns that off, and Store installs skip it. "Report a problem" (footer and icon menu) opens a GitHub bug report with the MagicInput and system versions filled in. On macOS the menu bar icon is a live vector image composed from SF Symbols; display names and wallpapers come from AppKit, and displays are moved with Core Graphics display configuration.

## Footprint

Expand Down
4 changes: 4 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ pub struct Config {
pub license: String,
/// When a subscription key was last refreshed (unix seconds).
pub license_checked: u64,
/// The settings panel asks GitHub whether a newer version is out and says so (it sends
/// nothing about this computer). `false` turns that off.
pub check_updates: bool,
}

impl Default for Config {
Expand All @@ -105,6 +108,7 @@ impl Default for Config {
layout_time: 0,
license: String::new(),
license_checked: 0,
check_updates: true,
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ mod proto;
mod service;
mod status;
pub mod ui;
mod update;

use std::io::IsTerminal;

Expand Down
3 changes: 2 additions & 1 deletion src/license.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ pub fn due(cfg: &Config) -> bool {
}

/// Fetch a fresh key for a subscription from bullfighterstudio.com, so it keeps working after each
/// renewal. This is the only time MagicInput contacts a server, and only once a key is entered.
/// renewal. Apart from the settings panel's check for a new version (`crate::update`), this is the
/// only time MagicInput contacts a server, and only once a key is entered.
pub fn refresh(cfg: &Config) -> Option<String> {
let session = decode(&cfg.license)?.s?;
if !session.chars().all(|c| c.is_ascii_alphanumeric() || c == '_') {
Expand Down
24 changes: 20 additions & 4 deletions src/ui.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@
footer { text-align: center; color: var(--faint); font-size: 10.5px; padding: 10px 0 0; }
footer a { color: var(--muted); text-decoration: none; cursor: default; }
footer a:hover { color: var(--text); }
footer div + div { margin-top: 2px; }
.update { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 8px 8px 12px; }
.update[hidden] { display: none; }
.update .grow { flex: 1; font-size: 12px; font-weight: 500; }
</style>
</head>
<body>
Expand Down Expand Up @@ -204,7 +208,12 @@ <h1>MagicInput</h1>
</div>
</div>

<footer id="escHint"></footer>
<div class="card update" id="update" hidden>
<span class="grow" id="updateText"></span>
<button class="btn primary" id="updateBtn">Download</button>
</div>

<footer><div id="escHint"></div><div id="links"></div></footer>

<!-- Pairing, tucked away behind the link button. -->
<div class="scrim" id="scrim"></div>
Expand Down Expand Up @@ -251,7 +260,7 @@ <h1>MagicInput</h1>
pc: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><rect x="3" y="4" width="18" height="12.5" rx="1.5"/><path d="M8 20h8M12 16.5V20" stroke-linecap="round"/></svg>',
};
const esc = s => String(s).replace(/[&<>"]/g, c => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;' }[c]));
let S = null, walls = {}, ready = false;
let S = null, walls = {}, ready = false, sent = 0;

$('power').onclick = () => send('login', !S?.login);
$('auto').onclick = () => send('auto');
Expand All @@ -270,6 +279,7 @@ <h1>MagicInput</h1>
$('scrim').onclick = () => { pairing(false); licensing(false); };
const PHINT = 'One license covers all your computers.';
$('buy').onclick = () => send('buy');
$('updateBtn').onclick = () => send('update');
$('licInput').oninput = () => { $('activate').disabled = !$('licInput').value.includes('.'); $('pHint').textContent = PHINT; };
$('activate').onclick = () => send('license', $('licInput').value);
$('licInput').onkeydown = e => { if (e.key === 'Enter' && !$('activate').disabled) $('activate').click(); };
Expand Down Expand Up @@ -455,8 +465,13 @@ <h1>MagicInput</h1>
// Licensing (footer link and sheet): free for personal use, a key for businesses.
const plan = { monthly: 'Monthly', yearly: 'Yearly', lifetime: 'Lifetime' }[s.license] || s.license;
const label = s.license ? 'Business license' : 'Free for personal use';
$('escHint').innerHTML = esc((mac ? '⌃⌥Esc' : 'Ctrl+Alt+Esc') + ' brings the pointer home') + ' · <a id="plink">' + esc(label) + '</a>';
$('escHint').textContent = (mac ? '⌃⌥Esc' : 'Ctrl+Alt+Esc') + ' brings the pointer home';
$('links').innerHTML = '<a id="plink">' + esc(label) + '</a> · <a id="rlink">Report a problem</a>';
$('plink').onclick = () => licensing(true);
$('rlink').onclick = () => send('report');
// A newer version is out: say so above the footer.
$('update').hidden = !s.update;
if (s.update) $('updateText').textContent = 'MagicInput ' + s.update + ' is available';
$('pState').textContent = s.license ? 'Business license · ' + plan : 'Free for personal use';
$('pDesc').textContent = s.license
? 'Active on this computer. Thank you for supporting MagicInput.'
Expand All @@ -465,12 +480,13 @@ <h1>MagicInput</h1>
if (!$('licInput').value) $('pHint').textContent = PHINT + ' v' + s.version;

// First paint done: tell the app our height so it can attach and show the panel, then fade in.
if (ready && sent && $('panel').offsetHeight !== sent) send('resize', sent = $('panel').offsetHeight);
if (!ready) {
ready = true;
// Measure once fonts are in (they change the height). Timers, not animation frames: the
// window is still hidden, so frames don't run yet.
document.fonts.ready.then(() => setTimeout(() => {
send('ready', $('panel').offsetHeight);
send('ready', sent = $('panel').offsetHeight);
setTimeout(() => $('panel').classList.add('in'), 40);
}, 0));
}
Expand Down
Loading
Loading