{"id":27555901,"url":"https://github.com/starlightcms/react-sdk","last_synced_at":"2026-05-17T06:31:29.606Z","repository":{"id":57162498,"uuid":"419912182","full_name":"starlightcms/react-sdk","owner":"starlightcms","description":"The Starlight SDK for React applications.","archived":false,"fork":false,"pushed_at":"2024-03-21T17:23:34.000Z","size":2102,"stargazers_count":2,"open_issues_count":13,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-01T08:07:48.472Z","etag":null,"topics":["react","sdk","starlight"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/starlightcms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2021-10-22T00:02:38.000Z","updated_at":"2024-07-15T16:54:57.000Z","dependencies_parsed_at":"2023-02-18T18:15:25.616Z","dependency_job_id":"77256db4-316e-4664-97bb-2aa3a95c4d56","html_url":"https://github.com/starlightcms/react-sdk","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/starlightcms/react-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starlightcms%2Freact-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starlightcms%2Freact-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starlightcms%2Freact-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starlightcms%2Freact-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/starlightcms","download_url":"https://codeload.github.com/starlightcms/react-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starlightcms%2Freact-sdk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266165657,"owners_count":23886656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["react","sdk","starlight"],"created_at":"2025-04-19T17:55:43.358Z","updated_at":"2025-10-26T21:34:20.520Z","avatar_url":"https://github.com/starlightcms.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"/website/static/img/sdk-header-dark.svg\"\u003e\n  \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"/website/static/img/sdk-header.svg\"\u003e\n  \u003cimg alt=\"Starlight React SDK logo\" src=\"/website/static/img/sdk-header.svg\"\u003e\n\u003c/picture\u003e\n\n# Starlight React SDK\n\nThis is the official Starlight SDK for React applications, which makes integrating Starlight\ncontent into your apps a real breeze.\n\nYou can read the usage guide and the API reference in [its documentation page](https://react.sdk.starlight.sh).\n\n## Quick Start\n\nTo quickly start using the React SDK, install it into your project:\n\n```shell\nnpm install @starlightcms/react-sdk\n```\n\nThen, import the SDK and configure which Starlight workspace it should request data from:\n\n```js\nimport Starlight from '@starlightcms/react-sdk'\n\nStarlight.configure({\n  workspace: '1234567890'\n})\n```\n\nAnd, finally, start requesting data and rendering content:\n\n```jsx\nimport Starlight, { VisualContent } from '@starlightcms/react-sdk'\n\n// Listing all entries from the 'posts' model.\nconst response = Starlight.posts.entries.list()\n\n// Getting content from the 'hello-world' entry.\nconst response = Starlight.posts.entries.get('hello-world')\n\n// Rendering visual editor content:\n\u003cVisualContent content={response.data.data.content} /\u003e\n```\n\nThe SDK is capable of requesting a myriad of different content from your workspaces. Check out \n[the documentation](https://react.sdk.starlight.sh/docs/intro) to learn more.\n\n## JavaScript SDK\n\nIf you don't use React, take a look at [the Starlight JavaScript SDK](https://github.com/starlightcms/js-sdk). It\nprovides most of React SDK's functionality, and you can use it with vanilla JavaScript or any JS framework.\n\n## Issues\n\nIf you have any questions or you're facing any issues with the SDK, feel free to [open an issue](https://github.com/starlightcms/react-sdk/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarlightcms%2Freact-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstarlightcms%2Freact-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarlightcms%2Freact-sdk/lists"}