{"id":28791934,"url":"https://github.com/forestadmin/forest-live-demo-rpc","last_synced_at":"2026-07-26T10:31:42.522Z","repository":{"id":248131386,"uuid":"827847049","full_name":"ForestAdmin/forest-live-demo-rpc","owner":"ForestAdmin","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-12T14:09:58.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-18T00:38:27.269Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ForestAdmin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-12T14:00:45.000Z","updated_at":"2024-09-12T08:45:39.000Z","dependencies_parsed_at":"2024-07-12T16:13:04.136Z","dependency_job_id":"ebeeb1cb-6fa8-4979-817d-289a039a0e63","html_url":"https://github.com/ForestAdmin/forest-live-demo-rpc","commit_stats":null,"previous_names":["forestadmin/forest-live-demo-rpc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ForestAdmin/forest-live-demo-rpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForestAdmin%2Fforest-live-demo-rpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForestAdmin%2Fforest-live-demo-rpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForestAdmin%2Fforest-live-demo-rpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForestAdmin%2Fforest-live-demo-rpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ForestAdmin","download_url":"https://codeload.github.com/ForestAdmin/forest-live-demo-rpc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForestAdmin%2Fforest-live-demo-rpc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35911748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-26T02:00:06.503Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-18T00:30:51.731Z","updated_at":"2026-07-26T10:31:42.501Z","avatar_url":"https://github.com/ForestAdmin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"You'll need 3 empty databases, `rpc_1`, `rpc_2`, `rpc_3`.\n\nThe gateway behaves like a classic `agent-nodejs`, so all the agent capabilities are supported when developed directly on it.\nThe RPC agents also have customisation capabilities. Some aren't supported though, they should be listed in the \"Known Limitations\" section.\n\n# Install\n\n- `cp .env.example .env` and fill in the necessary details.\n- `yarn` to install.\n- `yarn seed` to seed the database with dummy data.\n\nIn the following order\n\n- `yarn watch:rpc1` to start RPC Agent 1 (Containing the user collection)\n- `yarn watch:rpc3` to start RPC Agent 3 (Containing the Country with extension collection)\n- `yarn watch:rpc2` to start RPC Agent 2 (Containing the company collection, depends on RPC 3)\n- `yarn watch:gateway` to start the Gateway (That'll contain both RPC Agent 1 \u0026 RPC Agent 2 data)\n\n# Technical details\n\n```\n               ┌──────────┐            \n               │          │            \n               │ Gateway  │            \n               │          │            \n               ├┬────────┬┤            \n    ┌──────────┴┘        └┴───────┐    \n    │                             │   \n┌───▼───┐                     ┌───▼───┐\n│ RPC 1 │                     │ RPC 2 │\n└───────┘                     └───┬───┘\n                                  │    \n                              ┌───▼───┐\n                              │ RPC 3 │\n                              └───────┘\n```\n\n## RPC DataSource\n\nThe RPC data source allows get and proxify data from a RPC agent.\n\n### Installation\n\n- install the package `@forestadmin-experimental/datasource-rpc`.\n- give the URI, FOREST_ENV_SECRET \u0026 FOREST_AUTH_SECRET\n\n```javascript\nconst { createAgent } = require('@forestadmin/agent');\nconst { createRpcDataSource } = require('@forestadmin-experimental/datasource-rpc');\n\nconst agent = createAgent(options).addDataSource(\n  createRpcDataSource({\n    uri: 'http://localhost:3352',\n    authSecret: process.env.FOREST_AUTH_SECRET,\n  }),\n);\n```\n\n## RPC Agent\n\nThe RPC agent is created to split your data into microservices, combined with a real agent and a RPC data source,\nyou will be able to access all your collections as this is a normal agent.\n\n### Installation\n\n- install the package `@forestadmin-experimental/rpc-agent`.\n- give options like a real agent.\n\n```javascript\nconst { createRpcAgent } = require('@forestadmin-experimental/rpc-agent');\n\nconst agent = createRpcAgent({\n  authSecret: process.env.FOREST_AUTH_SECRET,\n  isProduction: process.env.NODE_ENV === 'production',\n  loggerLevel: 'Info',\n});\n// use the agent like a real one.\n```\n\n# Known limitations\n\n- The RPC agent are not able to communicate with each other. They can only communicate with the Gateway.\n- Using files (Upload or download) on RPC Agents aren't supported yet.\n- If a RPC agent cannot start, the gateway won't start as well.\n- If 2 RPCs share the same collection (name), they will conflict, and only one will be used and display. Using the `rename` option will be mandatory in this case.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforestadmin%2Fforest-live-demo-rpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforestadmin%2Fforest-live-demo-rpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforestadmin%2Fforest-live-demo-rpc/lists"}