mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 05:26:47 +00:00
0a5c8be83d
- 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.
22 lines
575 B
JSON
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 }
|
|
]
|
|
}
|