Examples
Ten example plugins ship with the SDK, demonstrating progressively more complex patterns.
Minimal Examples
Storage Demo
APIs: storage.set/get, db.insert/query/delete
Simple note-taking app. Demonstrates key-value storage for preferences and database collections for structured data.
Toasts Demo
APIs: toast.show, toast.notify, storage.set/get
Grid of buttons triggering each toast type (success, error, info) and OS notifications. Persists click counts in storage.
Sessions Demo
APIs: session.create, session.getStatus, session.getMessages, session.stop
Spawn Claude sessions, stream status updates, display conversation messages, and cancel running sessions.
Namespace Showcases
Auth Demo
APIs: auth.getUser, auth.isAuthenticated, auth.requestSignIn, auth.onAuthStateChange, auth.getSession
Read the signed-in Omniscio identity and request scoped Google / GitHub access tokens. Masks the returned token before rendering. Needs the auth and auth.session permissions.
Inbox Demo
APIs: inbox.setItems, storage.set/get
Add and remove items in the Omniscio inbox. Demonstrates the full-replace semantics of setItems() by keeping the working list in storage and re-publishing on every change.
Recording Demo
APIs: recording.start/stop/list/getShareUrl/delete
A working recorder. Screen recording is a backend capability (ctx.recording) with no webview equivalent, so this demo's backend owns it and the webview drives it over the shared event bus — which also makes it the reference example for crossing the two surfaces.
Widget Demo
APIs: widget.set, widget.clear
Draws a live widget in the Omniscio titlebar. Pick a shape and a tone and watch the header change. Needs the chrome and chrome.widget permissions, and declares ui.widget.entryPoint for the click popover. The dev shell has no titlebar, so try it inside Omniscio.
Sidebar Widgets Demo
APIs: widget.set, widget.clear, widget.action, ui.widgets
Offers two widgets for the widget sidebar: an Agenda tile that switches between a rich list and a compact number and carries an Open inbox button, and a Demo controls panel that is the plugin's own page shown inside the sidebar. Plain JavaScript with no build step. The dev shell has no widget sidebar, so try it inside Omniscio.
Full Examples
GitHub Issues
APIs: http.fetch, db.*, cron.register, settings.get, sidebar.setBadge, toast.show, log.*
Full-stack plugin with backend. Syncs GitHub issues via cron, caches them locally, renders with filters and search. Demonstrates the complete plugin lifecycle.
Pocket PM
APIs: boards.requestAccess/listItems, tasks.requestAccess/list, people.timeOff.list, calendar.requestAccess/events.list, sessionControl.requestAccess/list/message, teamChat.requestAccess/channels.list/messages.post, backend.invoke, rpc.handle
A small project manager. The panel opens Omniscio's own pickers one at a time, then asks its backend to build a short update from the picked board and task list, who is away this week, today's calendar and the picked sessions. It never posts by itself: nudging a stuck session and posting the update to Team Chat each ask the person first, and every refusal (such as DECLINED or NOT_FOUND) comes back as a plain sentence. Needs boards.read, tasks.read, members.read, people.read, calendar.read, sessions.control, teamChat.read and teamChat.write.
Running Examples
Each example is a standalone plugin project, and every one declares @omniscio/plugin-cli, so npm install puts the omniscio-plugin command on the project's PATH:
cd examples/<example-name>
npm install # installs the SDK and the omniscio-plugin CLI
npm run build
npm run dev # launches dev shell