{"id":28497329,"url":"https://github.com/btholt/react-reddit","last_synced_at":"2025-07-02T21:30:50.499Z","repository":{"id":20992809,"uuid":"24282320","full_name":"btholt/react-reddit","owner":"btholt","description":"A webpacked bundle of reddit React components","archived":false,"fork":false,"pushed_at":"2014-09-21T04:45:19.000Z","size":3008,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-30T02:56:17.622Z","etag":null,"topics":[],"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/btholt.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}},"created_at":"2014-09-21T04:43:07.000Z","updated_at":"2020-08-22T12:04:00.000Z","dependencies_parsed_at":"2022-07-31T05:17:58.042Z","dependency_job_id":null,"html_url":"https://github.com/btholt/react-reddit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/btholt/react-reddit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btholt%2Freact-reddit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btholt%2Freact-reddit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btholt%2Freact-reddit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btholt%2Freact-reddit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/btholt","download_url":"https://codeload.github.com/btholt/react-reddit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btholt%2Freact-reddit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263217938,"owners_count":23432403,"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":[],"created_at":"2025-06-08T13:05:48.339Z","updated_at":"2025-07-02T21:30:50.469Z","avatar_url":"https://github.com/btholt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reddit React Components\n\n## What?\n\nThis is mostly an experiment to toy around with React and webpack together which is extremely fun. webpack's idea of including images and CSS as JS assets fits perfectly with the component architecture of React.\n\nThis is intended to be an embeddable reddit link though right now it isn't really fit for production use. You cannot very well use webpack componennts outside of webpack very easily, a fact I just discovered. I'll keep toying with it.\n\n## Use\n\nYou can open up `test/index.html` in a browser to see it how it's compiled as-is right now.\n\nTo modify for your own use:\n\n1. Run `npm install`\n1. Run `npm install -g webpack`\n1. Modify `js/components.jsx` to suit what you want it do.\n1. Run `webpack --display-error-details --colors` from the root directory of the project to recompile.\n1. Check test/index.html again to see changes.\n\n## API\n\nRight now there's only one component, the humble RedditLink. It only accepts one parameter as a prop, `url`. Go to a reddit comment thread for the link you're using and grab the URL. It'll look like `https://www.reddit.com/r/lunapuppy/comments/1q71jj/luna_playing_with_her_sock_monkey_which_she_then/`. Pass that in as a prop to the RedditLink and it should display it.\n\n## Roadmap\n\n- Tests\n- Be able to do lists of links like subreddits or search results.\n- Handle self posts and embeds.\n- Definitely to be able to import the bundle to non-webpack code so you could potentially throw this anywhere, just like you do with tweets. Ideally the embed would be dead simple to include on a website.\n\n## Authors\n\n- [@btholt](https://twitter.com/holtbt)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtholt%2Freact-reddit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbtholt%2Freact-reddit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtholt%2Freact-reddit/lists"}