Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@orbit-love/reddit
Advanced tools
This is a JavaScript package that can be used to integrate new Reddit interactions from a specified subreddit into your organization's Orbit workspace.
:sparkles: This is a community project. The Orbit team does its best to maintain it and keep it up to date with any recent API changes.We welcome community contributions to make sure that it stays current. :sparkles: |
---|
orbit-community-integration
script
orbit.love community integration
https://github.com/orbit-love/community-js-reddit-orbit
https://orbit.love
Client ID
which is just below your app name, and your Client Secret
.The application requires the following environment variables:
Variable | Description | More Info |
---|---|---|
REDDIT_CLIENT_ID | Client ID for your Reddit App | Follow the guide above |
REDDIT_CLIENT_SECRET | Client Secret for your Reddit App | Follow the guide above |
REDDIT_USERNAME | Your Reddit username | Your account credentials |
REDDIT_PASSWORD | Your Reddit password | Your account credentials |
ORBIT_API_KEY | API key for Orbit | Found in Account Settings in your Orbit workspace |
ORBIT_WORKSPACE_ID | ID for your Orbit workspace | Last part of the Orbit workspace URL, i.e. https://app.orbit.love/my-workspace , the ID is my-workspace |
Install the package with the following command
$ npm install @orbit-love/reddit
Use the package with the following snippet.
const OrbitReddit = require('@orbit-love/reddit')
const orbitReddit = new OrbitReddit()
// Allows you to go back a number of hours and only get posts in that timeframe
const posts = await orbitReddit.getPosts({ subreddit: 'javascript', hours: 24 })
const prepared = await orbitReddit.preparePosts(posts)
const added = await orbitReddit.addActivities(prepared)
console.log(added) // "Added n activities to your Orbit workspace"
The standard initialization of the library requires the following signature:
const OrbitReddit = require('@orbit-love/reddit')
const orbitReddit = new OrbitReddit('orbitWorkspaceId', 'orbitApiKey', 'redditClientId', 'redditClientSecret', 'redditUsername', 'redditPassword')
If you have the following environment variables set: ORBIT_WORKSPACE_ID
, ORBIT_API_KEY
, REDDIT_CLIENT_ID
, REDDIT_CLIENT_SECRET
, REDDIT_USERNAME
and REDDIT_PASSWORD
then you can initialize the client as follows:
const OrbitReddit = require('@orbit-love/reddit')
const orbitReddit = new OrbitReddit()
To use this package you do not need to install it, but will need Node.js installed on your machine.
npx @orbit-love/reddit --posts --subreddit=javascript
By default this will get the last 24 hours worth of activity, but this can be explicitly overridden:
npx @orbit-love/reddit --posts --subreddit=javascript --hours=12
⚡ You can set up this integration in a matter of minutes using our GitHub Actions template. It will run regularly to add new activities to your Orbit workspace. All you need is a GitHub account.
See our guide for setting up this automation
We 💜 contributions from everyone! Check out the Contributing Guidelines for more information.
This project is under the MIT License.
This project uses the Contributor Code of Conduct. We ask everyone to please adhere by its guidelines.
FAQs
Integrate Reddit interactions into Orbit workspaces
The npm package @orbit-love/reddit receives a total of 1,223 weekly downloads. As such, @orbit-love/reddit popularity was classified as popular.
We found that @orbit-love/reddit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.