{"id":21845338,"url":"https://github.com/flashblaze/reddit-fact","last_synced_at":"2026-04-05T22:03:55.499Z","repository":{"id":39454437,"uuid":"198972594","full_name":"flashblaze/reddit-fact","owner":"flashblaze","description":"A simple implementation of Reddit API","archived":false,"fork":false,"pushed_at":"2023-01-04T05:26:08.000Z","size":4426,"stargazers_count":1,"open_issues_count":22,"forks_count":0,"subscribers_count":1,"default_branch":"no-redux","last_synced_at":"2025-01-26T12:08:28.151Z","etag":null,"topics":["react","reactjs","reddit","reddit-api","snoowrap","tailwindcss"],"latest_commit_sha":null,"homepage":"https://reddit-fact.netlify.com/","language":"CSS","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/flashblaze.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}},"created_at":"2019-07-26T07:52:03.000Z","updated_at":"2023-03-09T03:40:14.000Z","dependencies_parsed_at":"2023-02-01T23:01:42.463Z","dependency_job_id":null,"html_url":"https://github.com/flashblaze/reddit-fact","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/flashblaze%2Freddit-fact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flashblaze%2Freddit-fact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flashblaze%2Freddit-fact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flashblaze%2Freddit-fact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flashblaze","download_url":"https://codeload.github.com/flashblaze/reddit-fact/tar.gz/refs/heads/no-redux","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244830619,"owners_count":20517527,"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","reactjs","reddit","reddit-api","snoowrap","tailwindcss"],"created_at":"2024-11-27T23:09:36.740Z","updated_at":"2025-12-30T23:56:55.751Z","avatar_url":"https://github.com/flashblaze.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reddit-fact\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/FlashBlaze/reddit-fact/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"@FlashBlaze/reddit-fact is released under the MIT license.\" /\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg\" alt=\"PRs welcome!\" /\u003e\n  \u003ca href=\"https://app.netlify.com/sites/reddit-fact/deploys\"\u003e\n      \u003cimg src=\"https://api.netlify.com/api/v1/badges/adbfab56-08f1-43ee-b97d-25b17ea64c49/deploy-status\" alt=\"Netlify Status\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\nA simple React app which displays a random fact from Reddit using their API.\n\n:tada: Site is live [here](https://reddit-fact.netlify.com) :tada:\n\n## How to use\n\n1. Create and register your **script** app [here](https://www.reddit.com/prefs/apps)\n2. Clone the repo and go into it. Run `npm install` to install the dependencies.\n3. Create a `config` folder in `src` directory and create a `data.js` file in it.\n\n   The directory structure is something like this:\n\n   ```\n   project\n   |\n   |\n   |-src\n    |\n    |\n    |-config\n        |data.js\n   ```\n\n4. Create a requester like so and export it:\n\n   ```js\n   const snoowrap = require('snoowrap');\n\n   const r = new snoowrap({\n     userAgent: 'put your user-agent string here',\n     clientId: 'put your client id here',\n     clientSecret: 'put your client secret here',\n     username: 'put your username here',\n     password: 'put your password here'\n   });\n\n   export default r;\n   ```\n\n   For more info, you can refer [this](https://github.com/not-an-aardvark/snoowrap#examples)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflashblaze%2Freddit-fact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflashblaze%2Freddit-fact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflashblaze%2Freddit-fact/lists"}