@remy-ai/react 0.1.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Remy contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # @remy-ai/react
2
+
3
+ Small, optional React bindings for Remy.
4
+
5
+ > Alpha workspace package. It is prepared for publication but is not on npm yet. Run it from the [public repository](https://github.com/MustafaK99/Remy) today.
6
+
7
+ ```tsx
8
+ "use client";
9
+
10
+ import { useRemySnapshot } from "@remy-ai/react";
11
+ import type { RemyClient } from "@remy-ai/core";
12
+
13
+ export function PendingActions({
14
+ remy,
15
+ }: {
16
+ readonly remy: RemyClient<unknown>;
17
+ }) {
18
+ const snapshot = useRemySnapshot(remy);
19
+ return <span>{snapshot.receipts.length} recorded actions</span>;
20
+ }
21
+ ```
22
+
23
+ `useRemySnapshot` uses React's external-store contract and preserves referentially stable snapshots between changes. React is a peer dependency; Remy does not require a provider or any styling system.
24
+
25
+ MIT licensed. Alpha software.
@@ -0,0 +1,6 @@
1
+ import * as _remy_ai_core from '@remy-ai/core';
2
+ import { RemyClient } from '@remy-ai/core';
3
+
4
+ declare function useRemySnapshot<Context>(remy: RemyClient<Context>): _remy_ai_core.RemySnapshot;
5
+
6
+ export { useRemySnapshot };
package/dist/index.js ADDED
@@ -0,0 +1,15 @@
1
+ "use client";
2
+
3
+ // src/index.ts
4
+ import { useSyncExternalStore } from "react";
5
+ function useRemySnapshot(remy) {
6
+ return useSyncExternalStore(
7
+ remy.subscribe,
8
+ remy.getSnapshot,
9
+ remy.getServerSnapshot
10
+ );
11
+ }
12
+ export {
13
+ useRemySnapshot
14
+ };
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["\"use client\";\n\nimport { useSyncExternalStore } from \"react\";\nimport type { RemyClient } from \"@remy-ai/core\";\n\nexport function useRemySnapshot<Context>(remy: RemyClient<Context>) {\n return useSyncExternalStore(\n remy.subscribe,\n remy.getSnapshot,\n remy.getServerSnapshot,\n );\n}\n"],"mappings":";;;AAEA,SAAS,4BAA4B;AAG9B,SAAS,gBAAyB,MAA2B;AAClE,SAAO;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,EACP;AACF;","names":[]}
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@remy-ai/react",
3
+ "version": "0.1.0-alpha",
4
+ "description": "Small React bindings for Remy external-store clients.",
5
+ "keywords": [
6
+ "react",
7
+ "ai",
8
+ "agents",
9
+ "typescript",
10
+ "webmcp"
11
+ ],
12
+ "type": "module",
13
+ "sideEffects": false,
14
+ "files": [
15
+ "dist",
16
+ "LICENSE",
17
+ "README.md"
18
+ ],
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "import": "./dist/index.js"
23
+ }
24
+ },
25
+ "main": "./dist/index.js",
26
+ "types": "./dist/index.d.ts",
27
+ "scripts": {
28
+ "build": "tsup src/index.ts --format esm --dts --clean --sourcemap --external react --external @remy-ai/core",
29
+ "prepack": "npm run build"
30
+ },
31
+ "dependencies": {
32
+ "@remy-ai/core": "0.1.0-alpha"
33
+ },
34
+ "peerDependencies": {
35
+ "react": ">=18.2"
36
+ },
37
+ "license": "MIT",
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "git+https://github.com/MustafaK99/Remy.git",
41
+ "directory": "packages/react"
42
+ },
43
+ "bugs": {
44
+ "url": "https://github.com/MustafaK99/Remy/issues"
45
+ },
46
+ "homepage": "https://github.com/MustafaK99/Remy#readme",
47
+ "engines": {
48
+ "node": ">=18.18"
49
+ },
50
+ "publishConfig": {
51
+ "access": "public",
52
+ "tag": "alpha"
53
+ }
54
+ }