Developer

Resources

Discover other applets' resources read-only across applets via ctx.sdk.resources.

ctx.sdk.resources gives an applet read-only discovery of resources owned by other applets, by type. Use it for cross-applet dashboards and integrations.

Scope required: resources:read

Usage

import { defineMethod } from "@rightplace/applet-sdk/v2";

export default defineMethod("listFeeds", async (ctx) => {
  const feeds = await ctx.sdk.resources.list("rss_feed");   // resources of a given type
  return feeds;
});

Read-only across applets. Mutating another applet’s state goes through that applet’s hooks (typed cross-applet calls), not through this surface.

Manifest

Declare the scope in applet.json:

{
  "scopes": ["resources:read"]
}

Notes

  • ctx.sdk.resources.list(type) takes a resource type string and returns the matching resources.
  • This surface is read-only. It cannot create, update, or delete resources belonging to other applets.
  • Configuration and credential details on other applets’ resources are not exposed here.