{"id":13565858,"url":"https://github.com/tleunen/react-gist","last_synced_at":"2025-04-09T17:26:40.843Z","repository":{"id":22649672,"uuid":"25992707","full_name":"tleunen/react-gist","owner":"tleunen","description":"Github Gist React component","archived":false,"fork":false,"pushed_at":"2023-03-04T18:20:03.000Z","size":15,"stargazers_count":85,"open_issues_count":8,"forks_count":20,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T22:03:11.399Z","etag":null,"topics":["gist","github","github-gist","react"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tleunen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2014-10-30T22:39:55.000Z","updated_at":"2025-03-30T00:41:30.000Z","dependencies_parsed_at":"2024-01-19T06:57:43.181Z","dependency_job_id":"94e9f7ab-4b2d-46fa-8173-085e5c5be9a1","html_url":"https://github.com/tleunen/react-gist","commit_stats":{"total_commits":19,"total_committers":8,"mean_commits":2.375,"dds":0.5263157894736843,"last_synced_commit":"577be28f953d069058f71caa08d067769fee3eed"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tleunen%2Freact-gist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tleunen%2Freact-gist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tleunen%2Freact-gist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tleunen%2Freact-gist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tleunen","download_url":"https://codeload.github.com/tleunen/react-gist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248076290,"owners_count":21043743,"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":["gist","github","github-gist","react"],"created_at":"2024-08-01T13:01:56.770Z","updated_at":"2025-04-09T17:26:40.823Z","avatar_url":"https://github.com/tleunen.png","language":"JavaScript","readme":"# react-gist\n\n[![NPM](https://nodei.co/npm/react-gist.png)](https://nodei.co/npm/react-gist/)\n\nUse this component to add a github gist on your website.\n\n\u003cp\u003e\u003cdetails\u003e\n  \u003csummary\u003e\u003cb\u003ePreview\u003c/b\u003e\u003c/summary\u003e\n  \u003cp\u003e\u003cimg src=\"https://i.imgur.com/4EYDskB.png\" /\u003e\u003c/p\u003e\n\u003c/details\u003e\u003c/p\u003e\n\nGet the id from the gist url `https://gist.github.com/{your_name}/{id}` and set it as a property of the component.\n\n## Example\n\nSingle-file gist:\n\n```js\nvar React = require('react');\nvar Gist = require('react-gist');\n\nReact.render(\n    \u003cGist id='5104372' /\u003e,\n    document.body\n);\n```\n\n[![Edit react-gist-example-single-file](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/reactgistexamplesinglefile-z9vkc?fontsize=14)\n\nMulti-file gist:\n\n```js\nvar React = require('react');\nvar Gist = require('react-gist');\n\nReact.render(\n    \u003cGist id='5995ea726914f280afb3' file='Chef-Dockerfile' /\u003e,\n    document.body\n);\n```\n\n[![Edit react-gist-example-multi-file](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/reactgistexamplemultifile-9rw4g?fontsize=14)\n\n## Usage\n\n### `\u003cGist id={string} file={string} /\u003e`\n\n- `id` {string} Id of the gist\n- `file` {string} Name of a specific file in a multi-file gist\n\n## License\n\nMIT, see [LICENSE.md](http://github.com/tleunen/react-gist/blob/master/LICENSE.md) for details.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftleunen%2Freact-gist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftleunen%2Freact-gist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftleunen%2Freact-gist/lists"}