Files
TREK/plugin-sdk/examples/trip-countdown/trek-plugin.json
T
mauriceboe 660e4b9dfc docs(plugins): plugin wiki + reference plugin (M7)
- Wiki pages (sync to the GitHub wiki on push to main): Plugins overview + trust
  model, Plugin Development (SDK, definePlugin, ctx, routes/jobs, the client
  bridge, testing with the mock host), Plugin Permissions reference, and
  Publishing (registry PR + CI gates + provenance). Linked from the sidebar.
- Reference plugin plugin-sdk/examples/trip-countdown: a complete, minimal-
  permission widget (reads trip data through ctx, renders in the sandboxed
  iframe via the bridge, filled-in README). Validated in the SDK test suite so it
  passes the exact gate authors face.
2026-07-04 19:11:23 +02:00

22 lines
575 B
JSON

{
"id": "trip-countdown",
"name": "Trip Countdown",
"version": "1.0.0",
"apiVersion": 1,
"author": "TREK",
"description": "A dashboard widget counting down the days to your next trip.",
"homepage": "https://github.com/mauriceboe/TREK",
"license": "MIT",
"icon": "CalendarClock",
"type": "widget",
"trek": ">=3.2.0 <4.0.0",
"nativeModules": false,
"permissions": ["db:read:trips"],
"capabilities": {
"widget": { "title": "Trip Countdown", "defaultSize": "small" }
},
"routes": [
{ "method": "GET", "path": "/next", "auth": true }
]
}