npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@enhance/arc-plugin-posse

v0.3.1

Published

Enhance/Architect plugin for syndicating everywhere

Downloads

48

Readme

enhance-type

@enhance/arc-plugin-posse

CI Published on npm

Publish (on your) Own Site, Syndicate Elsewhere plugin for Enhance applications.

Install

npm i @enhance/arc-plugin-posse

Add the following to your Architect project manifest (usually .arc):

@plugins
enhance/arc-plugin-posse

@posse
feed "https://url.to/rss"

Project manifest settings

The following higher-level settings are available in your Architect project manifest with the @posse settings pragma:

  • feed - the RSS feed to pull your posts from.
  • rate - how frequently to poll the feed for new posts to syndicate. Default value is 1 day. Accepts any valid rate expression.
  • since - the day in which to start checking your feed for new posts. Defaults to today's date. Uses the data format YYYY-MM-DD which is the only correct date format.

Example:

@posse
feed "https://bookrecs.org/rss"
rate "1 day"
since "2023-04-02"

Syndication Targets

Bluesky

In order to enable Bluesky syndication the user will need to set two environment variables in their app, BLUESKY_USERNAME and BLUESKY_PASSWORD.

  • BLUESKY_USERNAME - your Bluesky username without the leading @ symbol.
  • BLUESKY_PASSWORD - the password for your Bluesky account.

Once you set these two environment variables you will need to deploy your application again for them to be read properly.

Then when a new posts is detected it will be syndicated to Bluesky following the format:

Item Title

Item Description

Item Link

Dev.to

In order to enable Dev.to syndication the user will need to set one environment variables in your app, DEV_TO_API_KEY.

  • DEV_TO_API_KEY - visit https://dev.to/settings/extensions. In the "DEV API Keys" section create a new key by adding a description and clicking on "Generate API Key"

Once you set this environment variable you will need to deploy your application again for them to be read properly.

Then when a new posts is detected it will be syndicated to Dev.to. The plugin will convert your RSS feed item to Dev.to compatible markdown.

Mastodon

In order to enable Mastodon syndication the user will need to set two environment variables in their app, MASTODON_TOKEN and MASTODON_URL.

  • MASTODON_TOKEN - Go to your settings page, open Development, and click the New Application button to create your personal access token.
  • MASTODON_URL - the url of your Mastodon server. For example: https://fosstodon.org/

Once you set these two environment variables you will need to deploy your application again for them to be read properly.

Then when a new posts is detected it will be syndicated to Mastodon following the format:

Item Title

Item Description

Item Link

Twitter (Deprecated)

Support for Twitter (X) is deprecated.

In order to enable Twitter syndication the user will need to set four environment variables in their app, TWITTER_API_KEY, TWITTER_API_SECRET, TWITTER_ACCESS_TOKEN and TWITTER_ACCESS_TOKEN_SECRET.

  • TWITTER_API_KEY - This is the API Key under Consumer Keys in your app on developer.twitter.com.
  • TWITTER_API_SECRET - This is the API Secret under Consumer Keys in your app on developer.twitter.com
  • TWITTER_ACCESS_TOKEN - This is the Access Token under Authentication Tokens in your app on developer.twitter.com.
  • TWITTER_ACCESS_TOKEN_SECRET - This is the Access Token under Authentication Tokens in your app on developer.twitter.com

to generate the TWITTER_ACCESS_TOKEN and TWITTER_ACCESS_TOKEN_SECRET you need to jump through a few hoops (as of this writing).

  1. On the Settings tab of your app under User authentication settings click edit.
  2. Set the App Permissions to Read and write and Direct message.
  3. Set Type of App to Web App, Automated App or Bot.
  4. Fill out the required fields under App Info.
  5. Save
  6. Under the Keys and tokens tab of your app click Regenerate next to Access Token and Secret .

Once you set these four environment variables you will need to deploy your application again for them to be read properly.

Then when a new posts is detected it will be syndicated to Twitter following the format:

Item Title

Item Description

Item Link