Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

feat: self-hosted update feed, signed-release CI, and in-app announcements

enes26ca576eb9ee
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 000000000..9e8a8c47f
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,70 @@
+name: Release
+
+# Build, code-sign, and notarize the macOS app on every version tag (e.g. v0.1.1),
+# then publish the artifacts (dmg + zip + latest-mac.yml + blockmaps). Those files
+# are what the self-hosted update feed at https://nodeterm.dev/updates serves.
+on:
+ push:
+ tags:
+ - 'v*'
+
+permissions:
+ contents: write # allow creating the GitHub Release (canonical artifact store)
+
+jobs:
+ release-mac:
+ runs-on: macos-14
+ steps:
+ - uses: actions/checkout@v4
+
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 20
+ cache: npm
+
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Build, sign & notarize
+ run: npm run release
+ env:
+ # Developer ID Application cert, base64-encoded .p12 + its password.
+ CSC_LINK: ${{ secrets.CSC_LINK }}
+ CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
+ # Apple notarization credentials.
+ APPLE_ID: ${{ secrets.APPLE_ID }}
+ APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
+ APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
+
+ - name: Upload build artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ name: nodeterm-mac
+ path: |
+ dist/*.dmg
+ dist/*.zip
+ dist/*.yml
+ dist/*.blockmap
+
+ # Canonical copy of every release on GitHub. The update feed itself lives on
+ # nodeterm.dev (see the deploy step below), but keeping a GitHub Release means
+ # there is always a downloadable, versioned backup.
+ - name: Create GitHub Release
+ uses: softprops/action-gh-release@v2
+ with:
+ files: |
+ dist/*.dmg
+ dist/*.zip
+ dist/*.yml
+ dist/*.blockmap
+
+ # Publish the feed to nodeterm.dev/updates. Fill in for your host. Example for
+ # SSH/rsync (store the private key as the DEPLOY_SSH_KEY secret):
+ #
+ # - name: Deploy update feed to nodeterm.dev
+ # run: |
+ # mkdir -p ~/.ssh && echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/id_ed25519
+ # chmod 600 ~/.ssh/id_ed25519
+ # ssh-keyscan nodeterm.dev >> ~/.ssh/known_hosts
+ # rsync -avz dist/*.dmg dist/*.zip dist/*.yml dist/*.blockmap \
+ # [email protected]:/var/www/nodeterm.dev/updates/
diff --git a/docs/announcements.example.json b/docs/announcements.example.json
new file mode 100644
index 000000000..0c047593c
--- /dev/null
+++ b/docs/announcements.example.json
@@ -0,0 +1,15 @@
+[
+ {
+ "id": "2026-06-16-welcome",
+ "title": "Welcome to nodeterm",
+ "body": "Thanks for trying the spatial terminal manager.",
+ "url": "https://nodeterm.dev",
+ "level": "info"
+ },
+ {
+ "id": "2026-06-20-v0_2",
+ "title": "v0.2 is out — editor & diff nodes",
+ "body": "Update from the banner, or grab it at nodeterm.dev.",
+ "level": "success"
+ }
+]
diff --git a/package.json b/package.json
index eaf246e77..d19ba0814 100644
--- a/package.json
+++ b/package.json
@@ -14,8 +14,8 @@
"typecheck": "tsc --noEmit -p tsconfig.node.json && tsc --noEmit -p tsconfig.web.json",
"rebuild": "electron-rebuild -f -w node-pty",
"make-icon": "node scripts/make-icon.mjs",
- "dist": "npm run make-icon && electron-vite build && electron-builder --mac --arm64",
- "release": "npm run make-icon && electron-vite build && electron-builder --mac --arm64 --x64 --publish always",
+ "dist": "npm run make-icon && electron-vite build && electron-builder --mac --arm64 -c.mac.identity=null -c.mac.notarize=false",
+ "release": "npm run make-icon && electron-vite build && electron-builder --mac --arm64 --x64",
"postinstall": "electron-rebuild -f -w node-pty"
},
"build": {
@@ -28,16 +28,16 @@
"category": "public.app-category.developer-tools",
"icon": "build/icon.png",
"hardenedRuntime": true,
+ "gatekeeperAssess": false,
"entitlements": "build/entitlements.mac.plist",
"entitlementsInherit": "build/entitlements.mac.plist",
- "notarize": false,
- "identity": null,
+ "notarize": true,
"target": [
{ "target": "dmg", "arch": ["arm64", "x64"] },
{ "target": "zip", "arch": ["arm64", "x64"] }
]
},
- "publish": { "provider": "github", "owner": "eneskirca", "repo": "nodeterm" }
+ "publish": { "provider": "generic", "url": "https://nodeterm.dev/updates" }
},
"dependencies": {
"dompurify": "^3.4.10",
diff --git a/src/main/announcements.ts b/src/main/announcements.ts
new file mode 100644
index 000000000..c94138b4a
--- /dev/null
+++ b/src/main/announcements.ts
@@ -0,0 +1,36 @@
+// Fetches the remote announcements feed from the website. Runs in the main process
+// (Node) so the renderer's Content-Security-Policy stays locked to 'self' — the
+// renderer asks for the data over IPC instead of making a cross-origin request.
+import type { Announcement } from '../shared/types'
+
+const FEED_URL = 'https://nodeterm.dev/announcements.json'
+const TIMEOUT_MS = 8000
+
+function isAnnouncement(x: unknown): x is Announcement {
+ if (!x || typeof x !== 'object') return false
+ const a = x as Record<string, unknown>
+ return typeof a.id === 'string' && typeof a.title === 'string'
+}
+
+export async function fetchAnnouncements(): Promise<Announcement[]> {
+ try {
+ const ctrl = new AbortController()
+ const t = setTimeout(() => ctrl.abort(), TIMEOUT_MS)
+ const res = await fetch(FEED_URL, { signal: ctrl.signal, cache: 'no-cache' }).finally(() =>
+ clearTimeout(t)
+ )
+ if (!res.ok) return []
+ const data = await res.json()
+ if (!Array.isArray(data)) return []
+ // Keep only well-formed items and sanitize the optional link scheme.
+ return data.filter(isAnnouncement).map((a) => ({
+ id: a.id,
+ title: a.title,
+ body: typeof a.body === 'string' ? a.body : undefined,
+ url: typeof a.url === 'string' && /^https?:\/\//.test(a.url) ? a.url : undefined,
+ level: a.level === 'success' || a.level === 'warning' ? a.level : 'info'
+ }))
+ } catch {
+ return []
+ }
+}
diff --git a/src/main/index.ts b/src/main/index.ts
index 2e7470b84..9e4c9e05d 100644
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@ -10,6 +10,7 @@ import { SettingsStore } from './settings-store'
import { GitService } from './git-service'
import { generateCommitMessage, generateTerminalName } from './commit-message'
import { initUpdater } from './updater'
+import { fetchAnnouncements } from './announcements'
const settingsStore = new SettingsStore()
const ptyManager = new PtyManager()
@@ -88,6 +89,8 @@ app.whenReady().then(() => {
ipcMain.on(IPC.appCloseWindow, () => BrowserWindow.getFocusedWindow()?.close())
+ ipcMain.handle(IPC.announcementsFetch, () => fetchAnnouncements())
+
ipcMain.on(IPC.shellReveal, (_e, p: string) => {
if (p) shell.showItemInFolder(p)
})
diff --git a/src/preload/index.ts b/src/preload/index.ts
index 4fd6bdbbd..6bae01b9d 100644
--- a/src/preload/index.ts
+++ b/src/preload/index.ts
@@ -87,6 +87,9 @@ const api: NodeTerminalApi = {
},
restart: () => ipcRenderer.send(IPC.appRestartToUpdate)
},
+ announcements: {
+ fetch: () => ipcRenderer.invoke(IPC.announcementsFetch)
+ },
onMarkdownToggle: (listener) => {
const handler = () => listener()
ipcRenderer.on(IPC.appToggleMarkdown, handler)
diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsx
index d9cdab9c1..faa465efe 100644
--- a/src/renderer/canvas/Canvas.tsx
+++ b/src/renderer/canvas/Canvas.tsx
@@ -44,6 +44,7 @@ import { SourceControlPanel } from '../components/SourceControlPanel'
import { WelcomeScreen } from '../components/WelcomeScreen'
import { ShortcutsPanel } from '../components/ShortcutsPanel'
import { UpdateBanner } from '../components/UpdateBanner'
+import { AnnouncementBanner } from '../components/AnnouncementBanner'
import { ConfirmDialog } from '../components/ConfirmDialog'
import { ExplorerPanel } from '../components/ExplorerPanel'
import { transport } from '../terminal/local-transport'
@@ -801,7 +802,10 @@ export function Canvas() {
onDelete={deleteProject}
/>
- <UpdateBanner />
+ <div className="top-banners">
+ <UpdateBanner />
+ <AnnouncementBanner />
+ </div>
<div className="controls-cluster">
<button
diff --git a/src/renderer/components/AnnouncementBanner.tsx b/src/renderer/components/AnnouncementBanner.tsx
new file mode 100644
index 000000000..9c72c0cb5
--- /dev/null
+++ b/src/renderer/components/AnnouncementBanner.tsx
@@ -0,0 +1,79 @@
+import { useEffect, useState } from 'react'
+import type { Announcement } from '@shared/types'
+
+// Polls the remote announcements feed (via the main process) and shows the newest
+// item the user hasn't dismissed. Dismissed ids are remembered in localStorage so a
+// given announcement is shown only once. Separate from the update banner.
+const SEEN_KEY = 'nodeterm.seenAnnouncements'
+const SIX_HOURS = 6 * 60 * 60 * 1000
+
+function loadSeen(): Set<string> {
+ try {
+ const raw = localStorage.getItem(SEEN_KEY)
+ return new Set(raw ? (JSON.parse(raw) as string[]) : [])
+ } catch {
+ return new Set()
+ }
+}
+
+function saveSeen(seen: Set<string>): void {
+ try {
+ localStorage.setItem(SEEN_KEY, JSON.stringify([...seen]))
+ } catch {
+ // ignore quota / serialization errors
+ }
+}
+
+export function AnnouncementBanner(): JSX.Element | null {
+ const [current, setCurrent] = useState<Announcement | null>(null)
+
+ useEffect(() => {
+ let cancelled = false
+
+ const check = async () => {
+ const items = await window.nodeTerminal.announcements.fetch()
+ if (cancelled || !items.length) return
+ const seen = loadSeen()
+ // Feed is newest-first; show the first one not yet dismissed.
+ const next = items.find((a) => !seen.has(a.id))
+ if (next) setCurrent(next)
+ }
+
+ void check()
+ const timer = setInterval(check, SIX_HOURS)
+ return () => {
+ cancelled = true
+ clearInterval(timer)
+ }
+ }, [])
+
+ if (!current) return null
+
+ const dismiss = () => {
+ const seen = loadSeen()
+ seen.add(current.id)
+ saveSeen(seen)
+ setCurrent(null)
+ }
+
+ return (
+ <div className={`announce-banner announce-banner--${current.level ?? 'info'}`}>
+ <span className="announce-banner__dot" />
+ <div className="announce-banner__content">
+ <span className="announce-banner__title">{current.title}</span>
+ {current.body && <span className="announce-banner__body">{current.body}</span>}
+ </div>
+ {current.url && (
+ <button
+ className="announce-banner__btn"
+ onClick={() => window.open(current.url, '_blank', 'noopener')}
+ >
+ Learn more
+ </button>
+ )}
+ <button className="announce-banner__close" title="Dismiss" onClick={dismiss}>
+ ✕
+ </button>
+ </div>
+ )
+}
diff --git a/src/renderer/styles.css b/src/renderer/styles.css
index a83a93ef2..e89a76b87 100644
--- a/src/renderer/styles.css
+++ b/src/renderer/styles.css
@@ -1045,13 +1045,27 @@ body,
gap: 6px;
}
-/* Auto-update notification strip, just below the tab bar. */
-.update-banner {
+/* Stack of notification strips (update + announcements), just below the tab bar. */
+.top-banners {
position: absolute;
top: 46px;
left: 50%;
transform: translateX(-50%);
z-index: 12;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 8px;
+ -webkit-app-region: no-drag;
+ pointer-events: none;
+}
+
+.top-banners > * {
+ pointer-events: auto;
+}
+
+/* Auto-update notification strip, just below the tab bar. */
+.update-banner {
display: flex;
align-items: center;
gap: 10px;
@@ -1060,7 +1074,6 @@ body,
border: 1px solid var(--accent);
border-radius: 10px;
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
- -webkit-app-region: no-drag;
font-size: 12.5px;
color: var(--text);
}
@@ -1110,6 +1123,102 @@ body,
background: rgba(255, 255, 255, 0.08);
}
+/* In-app announcements strip (news from the website feed). */
+.announce-banner {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ max-width: 560px;
+ padding: 6px 8px 6px 14px;
+ background: rgba(40, 40, 42, 0.96);
+ border: 1px solid var(--border);
+ border-left: 3px solid var(--accent);
+ border-radius: 10px;
+ box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
+ font-size: 12.5px;
+ color: var(--text);
+}
+
+.announce-banner--success {
+ border-left-color: #30d158;
+}
+
+.announce-banner--warning {
+ border-left-color: #ff9f0a;
+}
+
+.announce-banner__dot {
+ width: 8px;
+ height: 8px;
+ flex: none;
+ border-radius: 50%;
+ background: var(--accent);
+}
+
+.announce-banner--success .announce-banner__dot {
+ background: #30d158;
+}
+
+.announce-banner--warning .announce-banner__dot {
+ background: #ff9f0a;
+}
+
+.announce-banner__content {
+ display: flex;
+ flex-direction: column;
+ gap: 1px;
+ min-width: 0;
+}
+
+.announce-banner__title {
+ font-weight: 600;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.announce-banner__body {
+ color: var(--text-dim, rgba(255, 255, 255, 0.6));
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.announce-banner__btn {
+ flex: none;
+ padding: 4px 12px;
+ background: transparent;
+ border: 1px solid var(--accent);
+ border-radius: 7px;
+ color: var(--accent);
+ font-size: 12px;
+ font-weight: 600;
+ cursor: pointer;
+}
+
+.announce-banner__btn:hover {
+ background: rgba(10, 132, 255, 0.12);
+}
+
+.announce-banner__close {
+ width: 24px;
+ height: 24px;
+ flex: none;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ background: transparent;
+ border: none;
+ border-radius: 6px;
+ color: var(--text-dim, rgba(255, 255, 255, 0.6));
+ font-size: 12px;
+ cursor: pointer;
+}
+
+.announce-banner__close:hover {
+ background: rgba(255, 255, 255, 0.08);
+}
+
.controls-cluster button {
width: 34px;
height: 34px;
diff --git a/src/shared/ipc.ts b/src/shared/ipc.ts
index 9ab191ba7..9191eed1a 100644
--- a/src/shared/ipc.ts
+++ b/src/shared/ipc.ts
@@ -14,6 +14,7 @@ export const IPC = {
appUpdateAvailable: 'app:update-available',
appUpdateDownloaded: 'app:update-downloaded',
appRestartToUpdate: 'app:restart-to-update',
+ announcementsFetch: 'announcements:fetch',
// Events broadcast from main to the renderer (sessionId is appended to the channel name).
ptyData: (sessionId: string) => `pty:data:${sessionId}`,
ptyExit: (sessionId: string) => `pty:exit:${sessionId}`,
diff --git a/src/shared/types.ts b/src/shared/types.ts
index 8f1fc5429..ebd589f5e 100644
--- a/src/shared/types.ts
+++ b/src/shared/types.ts
@@ -269,6 +269,23 @@ export interface UpdateApi {
restart(): void
}
+/** A single news/announcement item, fetched from the remote announcements feed. */
+export interface Announcement {
+ /** Stable unique id; used to remember which items the user has dismissed. */
+ id: string
+ title: string
+ body?: string
+ /** Optional "Learn more" link (opened in the system browser). */
+ url?: string
+ /** Visual emphasis; defaults to 'info'. */
+ level?: 'info' | 'success' | 'warning'
+}
+
+export interface AnnouncementsApi {
+ /** Fetch the announcements feed from the website (returns [] on any failure). */
+ fetch(): Promise<Announcement[]>
+}
+
export interface NodeTerminalApi {
pty: PtyApi
workspace: WorkspaceApi
@@ -279,6 +296,7 @@ export interface NodeTerminalApi {
shell: ShellApi
fs: FsApi
updates: UpdateApi
+ announcements: AnnouncementsApi
/** Fires when the user presses Cmd/Ctrl+M (toggle markdown view). Returns unsubscribe. */
onMarkdownToggle(listener: () => void): () => void
/** Fires when the user presses Cmd/Ctrl+W (close selected node). Returns unsubscribe. */