{"id":26747303,"url":"https://github.com/dheerajmahra/react-use-medium","last_synced_at":"2025-07-07T13:37:13.135Z","repository":{"id":57347147,"uuid":"384770458","full_name":"DheerajMahra/react-use-medium","owner":"DheerajMahra","description":"A React hook to fetch your Medium stories in json format 📝","archived":false,"fork":false,"pushed_at":"2021-07-12T15:00:55.000Z","size":7,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T00:01:36.131Z","etag":null,"topics":["custom-hooks","medium","medium-stories","react","react-hooks"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-use-medium","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/DheerajMahra.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}},"created_at":"2021-07-10T19:00:33.000Z","updated_at":"2023-03-08T13:39:49.000Z","dependencies_parsed_at":"2022-09-18T10:42:53.159Z","dependency_job_id":null,"html_url":"https://github.com/DheerajMahra/react-use-medium","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DheerajMahra%2Freact-use-medium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DheerajMahra%2Freact-use-medium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DheerajMahra%2Freact-use-medium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DheerajMahra%2Freact-use-medium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DheerajMahra","download_url":"https://codeload.github.com/DheerajMahra/react-use-medium/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245999634,"owners_count":20707574,"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":["custom-hooks","medium","medium-stories","react","react-hooks"],"created_at":"2025-03-28T09:17:55.056Z","updated_at":"2025-03-28T09:17:55.696Z","avatar_url":"https://github.com/DheerajMahra.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-use-medium\n\nA React hook to fetch your Medium stories in json format 📝\n\n![react-use-medium logo](https://raw.githubusercontent.com/DheerajMahra/image-hosting/main/medium.png)\n\n![Npm](https://img.shields.io/npm/v/react-use-medium?logo=npm\u0026style=flat-square)\n![GitHub](https://img.shields.io/github/license/dheerajmahra/react-use-medium?style=flat-square)\n![Npm](https://img.shields.io/npm/dm/react-use-medium?style=flat-square)\n\n## Live Demo\n\nCheckout live demo of react-use-medium below\n\n[CodeSandbox](https://codesandbox.io/s/react-use-medium-demo-fn91d?file=/src/App.jsx)\n\n## Install\n\n```\nnpm install react-use-medium\n```\n\n## Import\n\n```js\nimport { useMedium } from \"react-use-medium\";\n```\n\n## Usage\n\n```js\nconst { data, isFetched } = useMedium(\"\u003cyour-medium-username\u003e\");\n```\n\n| _Returns_            | _Description_                                                                                            |\n| -------------------- | -------------------------------------------------------------------------------------------------------- |\n| `data` : _obj_       | an object having user's information and stories; `{}` if username not found                              |\n| `isFetched` : _bool_ | `true` if username is a valid Medium username and data has been fetched; `false` for all other scenarios |\n\n## Example\n\n```js\nimport React from \"react\";\nimport { useMedium } from \"react-use-medium\";\n\nexport default function Blogs() {\n\n  const { data, isFetched } = useMedium(\"dheerajmahra\");\n  return isFetched ? \u003cBlogList data={data}\u003e : null;\n\n}\n```\n\n## License\n\n**MIT \u0026copy; [Dheeraj Mahra](https://github.com/dheerajmahra/react-use-medium/blob/master/LICENSE)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdheerajmahra%2Freact-use-medium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdheerajmahra%2Freact-use-medium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdheerajmahra%2Freact-use-medium/lists"}