On this page
expose-protocol
Prev: evok | Up: projects | Next: immunity
Rel: wispsy, Tooling & Runtimes, recipes
Ref: wispsy on GitHub
Tags: #public #wispsy #project #tooling #tier/standard
Role
Expose locally configured programs through validated macOS URL schemes (scheme://action?name=value) from declarative TOML profiles, building ad-hoc signed .app handlers with zero runtime dependencies (Python 3.14+).
Install
# Local checkout (0.1.0, uv_build):
uv sync --locked
Quickstart
# vim.toml — declarative local URL scheme profile
schema = 1
scheme = "vim"
action = "open"
command = ["/usr/bin/vim", "--", "{file}"]
root = "."
mode = "terminal"
[parameters.file]
type = "path"
uv run expose-protocol validate --config vim.toml
uv run expose-protocol link --config vim.toml file=README.md --markdown 'Edit README'
uv run expose-protocol install --config vim.toml
When to Reach for It
- Triggering local Python scripts, editors, or CLI tools from custom macOS URL schemes in Obsidian, Apple Notes, or browsers with strict path/argument validation.
Gotchas & Pitfalls
- macOS-only
.apphandlers: Generates ad-hoc signed macOS.appbundles registered with LaunchServices; not applicable on Linux or Windows. - Strict TOML validation: Every URL parameter must match its declared type and stay within the configured
rootdirectory—unlisted arguments or path traversal attempts are rejected before launching the target command. - Re-install after TOML edits: Updating a profile's scheme, command, or parameters requires re-running
expose-protocol installso the installed.appwrapper reflects the new definition.
Pairs With
- expose-interface — Targets the same underlying local commands via URL schemes instead of a terminal shell.
- desktop-interface — Complements typed native macOS desktop APIs.
Metadata
type: project-card
slug: expose-protocol
org: wispsy
repo: wispsy/expose-protocol
package: expose-protocol
version: 0.1.0
requires_python: ">=3.14"
layer: tooling
topic: wispsy-tooling
status: active
language: python
source_docs: README.md, docs/
Linked from
Related notes
- wiki/projects/evok Linked here; links to this page; shared tags: #project, #tier, #tooling, #wispsy
- wiki/projects/immunity Linked here; links to this page; shared tags: #project, #tier, #tooling, #wispsy
- wiki/projects/desktop-interface Linked here; links to this page; shared tags: #project, #tier, #wispsy
- wiki/stack/tooling Linked here; links to this page; shared tags: #tier, #tooling, #wispsy
- wiki/projects Linked here; links to this page; shared tags: #wispsy
- wiki/recipes Linked here; links to this page; shared tags: #wispsy
- wiki/projects/expose-interface Linked here; shared tags: #project, #tier, #wispsy
- wiki/projects/parse-toml links to this page; shared tags: #project, #tier, #wispsy
- wiki/compatibility links to this page; shared tags: #tier, #wispsy
- wiki/orgs/wispsy Linked here; shared tags: #tier, #wispsy