Skip to content
Back to search

data-client

MarketplaceWorks with Claude CodeGitHub

Async State Management without the Management. REST, GraphQL, SSE, Websockets

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked yesterday

Check it deeper on your machine

It has changed since its scan on 19 Nov 2026.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/reactive/data-client with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/reactive/data-client'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/reactive--data-client/badge.svg)](/listings/reactive--data-client)

HTML

<a href="/listings/reactive--data-client"><img src="/api/listings/reactive--data-client/badge.svg" alt="findsafeskills safety rating" /></a>

Install

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

npm install --save @data-client/react @data-client/rest @data-client/test

Then [add the provider](https://dataclient.io/docs/getting-started/installation#add-provider-at-top-level-component) at your app's root.

Coding agent setup (recommended)

Or skip the steps above and paste this into your coding agent's chat. It installs Data Client's setup skill, which adds the packages, wires up the provider and links the skills they ship:

Set up `@data-client/react` and use it for all API data. Install its setup skill first: `npx skills add reactive/data-client --skill data-client-setup -y`, then read `.agents/skills/data-client-setup/SKILL.md` and follow it.

<details> <summary>Or use the Claude Code, Cursor or Codex plugin</summary>

More on each in [Installation](https://dataclient.io/docs/getting-started/installation#agent-setup).

**Claude Code:** in a terminal at the project root:

claude plugin marketplace add reactive/data-client --scope project \
  --sparse .claude-plugin .agents/skills
claude plugin install data-client@data-client --scope project

Then in Claude Code's chat:

/data-client:data-client-setup Set up `@data-client/react` and use it for all API data

**Cursor:** in Cursor's agent chat:

/add-plugin data-client@https://github.com/reactive/data-client

Then, in a new chat:

/data-client-setup Set up `@data-client/react` and use it for all API data

**Codex:** in a terminal:

codex plugin marketplace add reactive/data-client \
  --sparse .claude-plugin --sparse .agents/skills
codex plugin add data-client@data-client

Then in Codex's chat:

$data-client:data-client-setup Set up `@data-client/react` and use it for all API data

</details>

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

.claude-plugin/marketplace.json · Manifest · 72 lines
  1. {
  2. "name": "data-client",
  3. "owner": {
  4. "name": "Nathaniel Tucker",
  5. "email": "me@ntucker.me"
  6. },
  7. "metadata": {
  8. "description": "Agent skills for Reactive Data Client, matched to the version your project installs"
  9. },
  10. "plugins": [
  11. {
  12. "name": "data-client",
  13. "description": "Sets up Data Client, then points your agent at the skills shipped in your installed @data-client packages, so React or Vue apps get the guidance for their version",
  14. "source": "./",
  15. "strict": false,
  16. "homepage": "https://dataclient.io/docs/getting-started/agent-skills",
  17. "license": "Apache-2.0",
  18. "skills": [
  19. "./.agents/skills/data-client",
  20. "./.agents/skills/data-client-setup"
  21. ]
  22. },
  23. {
  24. "name": "core",
  25. "description": "Renamed to data-client; kept so existing installs keep updating",
  26. "source": "./",
  27. "strict": false,
  28. "homepage": "https://dataclient.io/docs/getting-started/agent-skills",
  29. "license": "Apache-2.0",
  30. "skills": [
  31. "./.agents/skills/data-client",
  32. "./.agents/skills/data-client-setup"
  33. ]
  34. },
  35. {
  36. "name": "react",
  37. "description": "Renamed to data-client; kept so existing installs keep updating",
  38. "source": "./",
  39. "strict": false,
  40. "homepage": "https://dataclient.io/docs/getting-started/agent-skills",
  41. "license": "Apache-2.0",
  42. "skills": [
  43. "./.agents/skills/data-client",
  44. "./.agents/skills/data-client-setup"
  45. ]
  46. },
  47. {
  48. "name": "vue",
  49. "description": "Renamed to data-client; kept so existing installs keep updating",
  50. "source": "./",
  51. "strict": false,
  52. "homepage": "https://dataclient.io/docs/getting-started/agent-skills",
  53. "license": "Apache-2.0",
  54. "skills": [
  55. "./.agents/skills/data-client",
  56. "./.agents/skills/data-client-setup"
  57. ]
  58. },
  59. {
  60. "name": "migrations",
  61. "description": "Renamed to data-client; kept so existing installs keep updating",
  62. "source": "./",
  63. "strict": false,
  64. "homepage": "https://dataclient.io/docs/getting-started/agent-skills",
  65. "license": "Apache-2.0",
  66. "skills": [
  67. "./.agents/skills/data-client",
  68. "./.agents/skills/data-client-setup"
  69. ]
  70. }
  71. ]
  72. }
README.md · README · 506 lines
  1. <div align="center">
  2. <a href="https://dataclient.io" target="_blank" rel="noopener">
  3. <picture>
  4. <source media="(prefers-color-scheme: dark)" srcset="https://github.com/reactive/data-client/raw/master/website/static/img/client_logo_and_text-border--dark.svg?sanitize=true">
  5. <img alt="Reactive Data Client" src="https://github.com/reactive/data-client/raw/master/website/static/img/client_logo_and_text-border--light.svg?sanitize=true">
  6. </picture>
  7. </a>
  8. The scalable way to build applications with [dynamic data](https://dataclient.io/docs/getting-started/mutations).
  9. [Declarative resource definitions](https://dataclient.io/docs/getting-started/resource) for [REST](https://dataclient.io/rest), [GraphQL](https://dataclient.io/graphql), [Websockets+SSE](https://dataclient.io/docs/concepts/managers#data-stream) and [more](https://dataclient.io/rest/api/Endpoint)
  10. <br/>[Performant rendering](https://dataclient.io/docs/getting-started/data-dependency) in [React](https://react.dev/), [NextJS](https://nextjs.org/), [React Native](https://reactnative.dev/), [Expo](https://expo.dev/), [Vue](https://vuejs.org/)
  11. Schema driven. Zero updater functions.
  12. [![CircleCI](https://circleci.com/gh/reactive/data-client/tree/master.svg?style=shield)](https://circleci.com/gh/reactive/data-client)
  13. [![Coverage Status](https://img.shields.io/codecov/c/gh/reactive/data-client/master.svg?style=flat-square)](https://app.codecov.io/gh/reactive/data-client?branch=master)
  14. [![Percentage of issues still open](https://isitmaintained.com/badge/open/reactive/data-client.svg)](https://github.com/reactive/data-client/issues 'Percentage of issues still open')
  15. [![bundle size](https://img.shields.io/bundlephobia/minzip/@data-client/react?style=flat-square)](https://bundlephobia.com/result?p=@data-client/react)
  16. [![npm version](https://img.shields.io/npm/v/@data-client/react.svg?style=flat-square)](https://www.npmjs.com/package/@data-client/react)
  17. [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
  18. [![Agent Skills](https://img.shields.io/badge/Agent_Skills-cc785c?style=flat-square&logo=claude&logoColor=white)](https://skills.sh/reactive/data-client)
  19. [![Chat](https://img.shields.io/discord/768254430381735967.svg?style=flat-square&colorB=758ED3)](https://discord.gg/35nb8Mz)
  20. **[📖Read The Docs](https://dataclient.io/docs)** &nbsp;|&nbsp; [🏁Getting Started](https://dataclient.io/docs/getting-started/installation) &nbsp;|&nbsp; [🤖Agent Skills](https://skills.sh/reactive/data-client)<br/>🎮 Demos: &nbsp;
  21. [Todo](https://stackblitz.com/github/reactive/data-client/tree/master/examples/todo-app?file=src%2Fpages%2FHome%2FTodoList.tsx) &nbsp;|&nbsp;
  22. [Github Social](https://stackblitz.com/github/reactive/data-client/tree/master/examples/github-app?file=src%2Fpages%2FIssueList.tsx) &nbsp;|&nbsp;
  23. [NextJS SSR](https://stackblitz.com/github/reactive/data-client/tree/master/examples/nextjs?file=components%2Ftodo%2FTodoList.tsx) &nbsp;|&nbsp;
  24. [Websockets+SSR](https://stackblitz.com/github/reactive/coin-app/tree/master?file=src%2Fresources%2FStreamManager.ts,src%2Fapp%2FCurrencyList.tsx)
  25. </div>
  26. ## Installation
  27. ```bash
  28. npm install --save @data-client/react @data-client/rest @data-client/test
  29. ```
  30. Then [add the provider](https://dataclient.io/docs/getting-started/installation#add-provider-at-top-level-component) at your app's root.
  31. ### Coding agent setup (recommended)
  32. Or skip the steps above and paste this into your coding agent's chat. It installs Data Client's setup skill, which adds the packages, wires up the provider and links the skills they ship:
  33. ```prompt
  34. Set up `@data-client/react` and use it for all API data. Install its setup skill first: `npx skills add reactive/data-client --skill data-client-setup -y`, then read `.agents/skills/data-client-setup/SKILL.md` and follow it.
  35. ```
  36. <details>
  37. <summary>Or use the Claude Code, Cursor or Codex plugin</summary>
  38. More on each in [Installation](https://dataclient.io/docs/getting-started/installation#agent-setup).
  39. **Claude Code:** in a terminal at the project root:
  40. ```bash
  41. claude plugin marketplace add reactive/data-client --scope project \
  42. --sparse .claude-plugin .agents/skills
  43. claude plugin install data-client@data-client --scope project
  44. ```
  45. Then in Claude Code's chat:
  46. ```prompt
  47. /data-client:data-client-setup Set up `@data-client/react` and use it for all API data
  48. ```
  49. **Cursor:** in Cursor's agent chat:
  50. ```prompt
  51. /add-plugin data-client@https://github.com/reactive/data-client
  52. ```
  53. Then, in a new chat:
  54. ```prompt
  55. /data-client-setup Set up `@data-client/react` and use it for all API data
  56. ```
  57. **Codex:** in a terminal:
  58. ```bash
  59. codex plugin marketplace add reactive/data-client \
  60. --sparse .claude-plugin --sparse .agents/skills
  61. codex plugin add data-client@data-client
  62. ```
  63. Then in Codex's chat:
  64. ```prompt
  65. $data-client:data-client-setup Set up `@data-client/react` and use it for all API data
  66. ```
  67. </details>
  68. ## Usage
  69. ### Simple [TypeScript definition](https://dataclient.io/rest/api/Entity)
  70. ```typescript
  71. class User extends Entity {
  72. id = '';
  73. username = '';
  74. }
  75. class Article extends Entity {
  76. id = '';
  77. title = '';
  78. body = '';
  79. author = User.fromJS();
  80. createdAt = Temporal.Instant.fromEpochMilliseconds(0);
  81. static schema = {
  82. author: User,
  83. createdAt: Temporal.Instant.from,
  84. };
  85. }
  86. ```
  87. ### Create [collection of API Endpoints](https://dataclient.io/docs/getting-started/resource)
  88. ```typescript
  89. const UserResource = resource({
  90. path: '/users/:id',
  91. schema: User,
  92. optimistic: true,
  93. });
  94. const ArticleResource = resource({
  95. path: '/articles/:id',
  96. schema: Article,
  97. searchParams: {} as { author?: string },
  98. optimistic: true,
  99. paginationField: 'cursor',
  100. });
  101. ```
  102. ### One line [data binding](https://dataclient.io/docs/getting-started/data-dependency)
  103. ```tsx
  104. const article = useSuspense(ArticleResource.get, { id });
  105. return (
  106. <article>
  107. <h2>
  108. {article.title} by {article.author.username}
  109. </h2>
  110. <p>{article.body}</p>
  111. </article>
  112. );
  113. ```
  114. ### [Reactive Mutations](https://dataclient.io/docs/getting-started/mutations)
  115. ```tsx
  116. const ctrl = useController();
  117. return (
  118. <>
  119. <CreateArticleForm
  120. onSubmit={article =>
  121. ctrl.fetch(ArticleResource.getList.push, article)
  122. }
  123. />
  124. <ProfileForm
  125. onSubmit={user =>
  126. ctrl.fetch(UserResource.update, { id: article.author.id }, user)
  127. }
  128. />
  129. <button onClick={() => ctrl.fetch(ArticleResource.delete, { id })}>
  130. Delete
  131. </button>
  132. </>
  133. );
  134. ```
  135. ### [Subscriptions](https://dataclient.io/docs/api/useLive)
  136. ```tsx
  137. const price = useLive(PriceResource.get, { symbol });
  138. return price.value;
  139. ```
  140. ### [Type-safe Imperative Actions](https://dataclient.io/docs/api/Controller)
  141. ```tsx
  142. const ctrl = useController();
  143. await ctrl.fetch(ArticleResource.update, { id }, articleData);
  144. await ctrl.fetchIfStale(ArticleResource.get, { id });
  145. ctrl.expireAll(ArticleResource.getList);
  146. ctrl.invalidate(ArticleResource.get, { id });
  147. ctrl.invalidateAll(ArticleResource.getList);
  148. ctrl.setResponse(ArticleResource.get, { id }, articleData);
  149. ctrl.set(Article, { id }, articleData);
  150. ```
  151. ### [Programmatic queries](https://dataclient.io/rest/api/Query)
  152. ```typescript
  153. const queryTotalVotes = new Query(
  154. new Collection([BlogPost]),
  155. posts => posts.reduce((total, post) => total + post.votes, 0),
  156. );
  157. const totalVotes = useQuery(queryTotalVotes);
  158. const totalVotesForUser = useQuery(queryTotalVotes, { userId });
  159. ```
  160. ```typescript
  161. const groupTodoByUser = new Query(
  162. TodoResource.getList.schema,
  163. todos => Object.groupBy(todos, todo => todo.userId),
  164. );
  165. const todosByUser = useQuery(groupTodoByUser);
  166. ```
  167. ### [Powerful Middlewares](https://dataclient.io/docs/concepts/managers)
  168. ```ts
  169. class LoggingManager implements Manager {
  170. middleware: Middleware = controller => next => async action => {
  171. console.log('before', action, controller.getState());
  172. await next(action);
  173. console.log('after', action, controller.getState());
  174. };
  175. cleanup() {}
  176. }
  177. ```
  178. ```ts
  179. class TickerStream implements Manager {
  180. middleware: Middleware = controller => {
  181. this.handleMsg = msg => {
  182. controller.set(Ticker, { id: msg.id }, msg);
  183. };
  184. return next => action => next(action);
  185. };
  186. init() {
  187. this.websocket = new WebSocket('wss://ws-feed.myexchange.com');
  188. this.websocket.onmessage = event => {
  189. const msg = JSON.parse(event.data);
  190. this.handleMsg(msg);
  191. };
  192. }
  193. cleanup() {
  194. this.websocket.close();
  195. }
  196. }
  197. ```
  198. ### [Integrated data mocking](https://dataclient.io/docs/api/Fixtures)
  199. ```tsx
  200. const fixtures = [
  201. {
  202. endpoint: ArticleResource.getList,
  203. args: [{ maxResults: 10 }] as const,
  204. response: [
  205. {
  206. id: '5',
  207. title: 'first post',
  208. body: 'have a merry christmas',
  209. author: { id: '10', username: 'bob' },
  210. createdAt: new Date(0).toISOString(),
  211. },
  212. {
  213. id: '532',
  214. title: 'second post',
  215. body: 'never again',
  216. author: { id: '10', username: 'bob' },
  217. createdAt: new Date(0).toISOString(),
  218. },
  219. ],
  220. },
  221. {
  222. endpoint: ArticleResource.update,
  223. response: ({ id }, body) => ({
  224. ...body,
  225. id,
  226. }),
  227. },
  228. ];
  229. const Story = () => (
  230. <MockResolver fixtures={options[result]}>
  231. <ArticleList maxResults={10} />
  232. </MockResolver>
  233. );
  234. ```
  235. ### ...all typed ...fast ...and consistent
  236. For the small price of 9kb brotli. &nbsp;&nbsp; [🏁Get started now](https://dataclient.io/docs/getting-started/installation)
  237. ## Features
  238. - [x] <img src="https://github.com/reactive/data-client/raw/master/packages/react/typescript.svg?sanitize=true" alt="TS" style="max-width: 100%;"> Strong [Typescript](https://www.typescriptlang.org/) inference
  239. - [x] 🛌 React [Suspense](https://dataclient.io/docs/getting-started/data-dependency#boundaries) support
  240. - [x] 🧵 React 18 [Concurrent mode](https://dataclient.io/docs/guides/render-as-you-fetch) compatible
  241. - [x] 💦 [Partial Hydration Server Side Rendering](https://dataclient.io/docs/guides/ssr)
  242. - [x] 🎣 [Declarative API](https://dataclient.io/docs/getting-started/data-dependency)
  243. - [x] 📝 Composition over configuration
  244. - [x] 💰 [Normalized](https://dataclient.io/docs/concepts/normalization) caching
  245. - [x] 💥 Tiny bundle footprint
  246. - [x] 🛑 Automatic overfetching elimination
  247. - [x] ✨ Fast [optimistic updates](https://dataclient.io/rest/guides/optimistic-updates)
  248. - [x] 🧘 [Flexible](https://dataclient.io/docs/getting-started/resource) to fit any API design (one size fits all)
  249. - [x] 🔧 [Debugging and inspection](https://dataclient.io/docs/getting-started/debugging) via browser extension
  250. - [x] 🌳 Tree-shakable (only use what you need)
  251. - [x] 🔁 [Subscriptions](https://dataclient.io/docs/api/useSubscription)
  252. - [x] ♻️ Optional [redux integration](https://dataclient.io/docs/guides/redux)
  253. - [x] 📙 [Storybook mocking](https://dataclient.io/docs/guides/storybook)
  254. - [x] 📱 [React Native](https://facebook.github.io/react-native/) support
  255. - [x] 📱 [Expo](https://dataclient.io/docs/getting-started/installation) support
  256. - [x] ⚛️ [NextJS](https://dataclient.io/docs/guides/ssr#nextjs) support
  257. - [x] 🚯 [Declarative cache lifetime policy](https://dataclient.io/docs/concepts/expiry-policy)
  258. - [x] 🧅 [Composable middlewares](https://dataclient.io/docs/api/Manager)
  259. - [x] 💽 Global data consistency guarantees
  260. - [x] 🏇 Automatic race condition elimination
  261. - [x] 👯 Global referential equality guarantees
  262. ## Examples
  263. - Todo: [![GitHub](https://badgen.net/badge/icon/github?icon=github&label)](https://github.com/reactive/data-client/tree/master/examples/todo-app) | [![Sandbox](https://developer.stackblitz.com/img/open_in_stackblitz_small.svg)](https://stackblitz.com/github/reactive/data-client/tree/master/examples/todo-app?file=src%2Fpages%2FHome%2FTodoList.tsx) | [![Edit on CodeSandbox](https://dataclient.io/img/third-party/play-codesandbox-small.svg)](https://codesandbox.io/p/devbox/github/reactive/data-client/tree/master/examples/todo-app)
  264. - Github: [![GitHub](https://badgen.net/badge/icon/github?icon=github&label)](https://github.com/reactive/data-client/tree/master/examples/github-app) | [![Sandbox](https://developer.stackblitz.com/img/open_in_stackblitz_small.svg)](https://stackblitz.com/github/reactive/data-client/tree/master/examples/github-app?file=src%2Fpages%2FIssueList.tsx)
  265. - NextJS: [![GitHub](https://badgen.net/badge/icon/github?icon=github&label)](https://github.com/reactive/data-client/tree/master/examples/nextjs) | [![Sandbox](https://developer.stackblitz.com/img/open_in_stackblitz_small.svg)](https://stackblitz.com/github/reactive/data-client/tree/master/examples/nextjs?file=components%2Ftodo%2FTodoList.tsx) | [![Edit on CodeSandbox](https://dataclient.io/img/third-party/play-codesandbox-small.svg)](https://codesandbox.io/p/devbox/github/reactive/data-client/tree/master/examples/nextjs)
  266. - Websockets: [![GitHub](https://badgen.net/badge/icon/github?icon=github&label)](https://github.com/reactive/coin-app) | [![Sandbox](https://developer.stackblitz.com/img/open_in_stackblitz_small.svg)](https://stackblitz.com/github/reactive/coin-app/tree/master?file=src%2Fresources%2FStreamManager.ts,src%2Fapp%2FCurrencyList.tsx) | [![Website](https://badgen.net/badge/icon/production?icon=vercel&label)](https://coin-app-lake.vercel.app)
  267. ## API
  268. ### Reactive Applications
  269. - Rendering: [useSuspense()](https://dataclient.io/docs/api/useSuspense), [useLive()](https://dataclient.io/docs/api/useLive), [useCache()](https://dataclient.io/docs/api/useCache), [useDLE()](https://dataclient.io/docs/api/useDLE), [useQuery()](https://dataclient.io/docs/api/useQuery), [useLoading()](https://dataclient.io/docs/api/useLoading), [useDebounce()](https://dataclient.io/docs/api/useDebounce), [useCancelling()](https://dataclient.io/docs/api/useCancelling)
  270. - Event handling: [useController()](https://dataclient.io/docs/api/useController) returns [Controller](https://dataclient.io/docs/api/Controller)
  271. <table>
  272. <thead>
  273. <tr>
  274. <th>Method</th>
  275. <th>Subject</th>
  276. </tr>
  277. </thead>
  278. <tbody>
  279. <tr>
  280. <th colSpan="2" align="center">Fetch</th>
  281. </tr>
  282. <tr>
  283. <td><a href="https://dataclient.io/docs/api/Controller#fetch">ctrl.fetch</a></td>
  284. <td>Endpoint + Args</td>
  285. </tr>
  286. <tr>
  287. <td><a href="https://dataclient.io/docs/api/Controller#fetchIfStale">ctrl.fetchIfStale</a></td>
  288. <td>Endpoint + Args</td>
  289. </tr>
  290. <tr>
  291. <th colSpan="2" align="center">Expiry</th>
  292. </tr>
  293. <tr>
  294. <td><a href="https://dataclient.io/docs/api/Controller#expireAll">ctrl.expireAll</a></td>
  295. <td>Endpoint</td>
  296. </tr>
  297. <tr>
  298. <td><a href="https://dataclient.io/docs/api/Controller#invalidate">ctrl.invalidate</a></td>
  299. <td>Endpoint + Args</td>
  300. </tr>
  301. <tr>
  302. <td><a href="https://dataclient.io/docs/api/Controller#invalidateAll">ctrl.invalidateAll</a></td>
  303. <td>Endpoint</td>
  304. </tr>
  305. <tr>
  306. <td><a href="https://dataclient.io/docs/api/Controller#resetEntireStore">ctrl.resetEntireStore</a></td>
  307. <td>Everything</td>
  308. </tr>
  309. <tr>
  310. <th colSpan="2" align="center">Set</th>
  311. </tr>
  312. <tr>
  313. <td><a href="https://dataclient.io/docs/api/Controller#set">ctrl.set</a></td>
  314. <td>Schema + Args</td>
  315. </tr>
  316. <tr>
  317. <td><a href="https://dataclient.io/docs/api/Controller#setResponse">ctrl.setResponse</a></td>
  318. <td>Endpoint + Args</td>
  319. </tr>
  320. <tr>
  321. <td><a href="https://dataclient.io/docs/api/Controller#setError">ctrl.setError</a></td>
  322. <td>Endpoint + Args</td>
  323. </tr>
  324. <tr>
  325. <td><a href="https://dataclient.io/docs/api/Controller#resolve">ctrl.resolve</a></td>
  326. <td>Endpoint + Args</td>
  327. </tr>
  328. <tr>
  329. <th colSpan="2" align="center">Subscription</th>
  330. </tr>
  331. <tr>
  332. <td><a href="https://dataclient.io/docs/api/Controller#subscribe">ctrl.subscribe</a></td>
  333. <td>Endpoint + Args</td>
  334. </tr>
  335. <tr>
  336. <td><a href="https://dataclient.io/docs/api/Controller#unsubscribe">ctrl.unsubscribe</a></td>
  337. <td>Endpoint + Args</td>
  338. </tr>
  339. </tbody>
  340. </table>
  341. - Components: [&lt;DataProvider/>](https://dataclient.io/docs/api/DataProvider), [&lt;AsyncBoundary/>](https://dataclient.io/docs/api/AsyncBoundary), [&lt;ErrorBoundary/>](https://dataclient.io/docs/api/ErrorBoundary), [&lt;MockResolver/>](https://dataclient.io/docs/api/MockResolver)
  342. - Data Mocking: [Fixture](https://dataclient.io/docs/api/Fixtures#successfixture), [Interceptor](https://dataclient.io/docs/api/Fixtures#interceptor), [renderDataHook()](https://dataclient.io/docs/api/renderDataHook)
  343. - Middleware: [LogoutManager](https://dataclient.io/docs/api/LogoutManager), [NetworkManager](https://dataclient.io/docs/api/NetworkManager), [SubscriptionManager](https://dataclient.io/docs/api/SubscriptionManager), [PollingSubscription](https://dataclient.io/docs/api/PollingSubscription), [DevToolsManager](https://dataclient.io/docs/api/DevToolsManager)
  344. ### [Define Data](https://dataclient.io/docs/getting-started/resource)
  345. #### Networking definition
  346. - [Endpoints](https://dataclient.io/rest/api/Endpoint): [RestEndpoint](https://dataclient.io/rest/api/RestEndpoint), [GQLEndpoint](https://dataclient.io/graphql/api/GQLEndpoint)
  347. - [Resources](https://dataclient.io/docs/getting-started/resource): [resource()](https://dataclient.io/rest/api/resource), [hookifyResource()](https://dataclient.io/rest/api/hookifyResource)
  348. <table>
  349. <caption>
  350. <a href="https://dataclient.io/docs/concepts/normalization">Data model</a>
  351. </caption>
  352. <thead>
  353. <tr>
  354. <th>Data Type</th>
  355. <th>Mutable</th>
  356. <th>Schema</th>
  357. <th>Description</th>
  358. <th><a href="https://dataclient.io/rest/api/schema#queryable">Queryable</a></th>
  359. </tr>
  360. </thead>
  361. <tbody><tr>
  362. <td rowSpan="4"><a href="https://en.wikipedia.org/wiki/Object_(computer_science)">Object</a></td>
  363. <td align="center">✅</td>
  364. <td><a href="https://dataclient.io/rest/api/Entity">Entity</a>, <a href="https://dataclient.io/rest/api/EntityMixin">EntityMixin</a></td>
  365. <td>single <em>unique</em> object</td>
  366. <td align="center">✅</td>
  367. </tr>
  368. <tr>
  369. <td align="center">✅</td>
  370. <td><a href="https://dataclient.io/rest/api/Union">Union(Entity)</a></td>
  371. <td>polymorphic objects (<code>A | B</code>)</td>
  372. <td align="center">✅</td>
  373. </tr>
  374. <tr>
  375. <td align="center">🛑</td>
  376. <td><a href="https://dataclient.io/rest/api/Object">Object</a></td>
  377. <td>statically known keys</td>
  378. <td align="center">✅</td>
  379. </tr>
  380. <tr>
  381. <td align="center"></td>
  382. <td><a href="https://dataclient.io/rest/api/Invalidate">Invalidate(Entity)</a></td>
  383. <td><a href="https://dataclient.io/docs/concepts/expiry-policy#invalidate-entity">delete an entity</a></td>
  384. <td align="center">🛑</td>
  385. </tr>
  386. <tr>
  387. <td rowSpan="3"><a href="https://en.wikipedia.org/wiki/List_(abstract_data_type)">List</a></td>
  388. <td align="center">✅</td>
  389. <td><a href="https://dataclient.io/rest/api/Collection">Collection(Array)</a></td>
  390. <td>growable lists</td>
  391. <td align="center">✅</td>
  392. </tr>
  393. <tr>
  394. <td align="center">🛑</td>
  395. <td><a href="https://dataclient.io/rest/api/Array">Array</a></td>
  396. <td>immutable lists</td>
  397. <td align="center">🛑</td>
  398. </tr>
  399. <tr>
  400. <td align="center"> </td>
  401. <td><a href="https://dataclient.io/rest/api/All">All</a></td>
  402. <td>list of all entities of a kind</td>
  403. <td align="center">✅</td>
  404. </tr>
  405. <tr>
  406. <td rowSpan="2"><a href="https://en.wikipedia.org/wiki/Associative_array">Map</a></td>
  407. <td align="center">✅</td>
  408. <td><a href="https://dataclient.io/rest/api/Collection">Collection(Values)</a></td>
  409. <td>growable maps</td>
  410. <td align="center">✅</td>
  411. </tr>
  412. <tr>
  413. <td align="center">🛑</td>
  414. <td><a href="https://dataclient.io/rest/api/Values">Values</a></td>
  415. <td>immutable maps</td>
  416. <td align="center">🛑</td>
  417. </tr>
  418. <tr>
  419. <td rowSpan="1"><a href="https://en.wikipedia.org/wiki/Scalar_(mathematics)">Scalar</a></td>
  420. <td align="center">✅</td>
  421. <td><a href="https://dataclient.io/rest/api/Scalar">Scalar</a></td>
  422. <td>lens-dependent entity fields</td>
  423. <td align="center">✅</td>
  424. </tr>
  425. <tr>
  426. <td rowSpan="2">any</td>
  427. <td align="center"></td>
  428. <td><a href="https://dataclient.io/rest/api/Query">Query(Queryable)</a></td>
  429. <td>memoized custom transforms</td>
  430. <td align="center">✅</td>
  431. </tr>
  432. <tr>
  433. <td align="center"></td>
  434. <td><a href="https://dataclient.io/rest/api/Lazy">Lazy(Schema)</a></td>
  435. <td>deferred denormalization; <a href="https://dataclient.io/rest/api/Lazy#query"><code>.query</code></a> is Queryable</td>
  436. <td align="center">🛑</td>
  437. </tr>
  438. </tbody></table>

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.