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

fomoapp

v4.0.0

Published

Get the latest tech news right into your CLI

Downloads

27

Readme

npm

Install

npm install -g fomoapp

Usage

$ fomo

Select a specific source using the -s flag:

$ fomo -s hn # Hacker News

You can also select a specific ordering/sub-group using the -t flag:

$ fomo -s hn -t ask # ask HN

Limit the number of responses (for each source) using the -l flag:

$ fomo -l 3 # showes 3 entries for each source

Configure fomo using the -c flag:

$ fomo -c # openes the configuration menu

List all available sources (and their types) using the -p flag:

$ fomo -p # prints all available sources

Get help using the -h flag:

$ fomo -h

Sources

| Source | Source ID | Available types | |-------------- |----------- |----------------------------------------------------------------------------------------------------------- | | Hacker News | hn | ask (Ask HN)bestjobsnewshow (Show HN)top | | Product Hunt | ph | featurednewtop_rankingtop_votes | | TechCrunch | tc | eurofundinggearmobilesocialstartupstop | | The Verge | verge | breakingculturefullmobilesw (Software and Apps)web | | Reddit | reddit | fed (r/Frontend)js (r/javascript)prog (r/programming)tech (r/technology)webdev (r/webdev) | | Wired | wired | businessgearsciencetop |

User-defined RSS sources (New!)

You can define your own RSS sources using simple configuration files.

In order to configure a new RSS source you'll need:

  1. Create a new folder to hold your source configuration files.
  2. Create a configuration file for your desired source.
  3. Tell fomo where to find your config files:
  • Open fomo's config menu (run fomo -c)
  • Choose "Configure external rss feeds directory"
  • Enter the path to the folder you created. Make sure to use an absolute path

Source configuration file

Source configuration file should be a valid JSON file with the following structure:

{
  "details": {
    "name": "The source name",
    "id": "The source ID"
  },
  "baseUrl": "base URL of the RSS feeds",
  "fetchTypes": {
    "key1": "First RSS feed name",
    "key2": "Second RSS feed name",
    "keyN": "Nth RSS feed name"
  },
  "defaultFetchType": "Key name of the default RSS feed (should be one the keys defined above)",
  "fieldsMapping": {
    "title": "title field name",
    "link": "link field name",
    "summary": "summary field name (optional)",
    "date": "date field name (optional)",
    "author": "author field name (optional)"
  },
  "defaultCacheTTL": "Number of minutes to cache result from this source (optional. default is 10 minutes)"
}

The final RSS feed URL is built in the following way: ${baseUrl}/${selectedFetchTypeValue}, so make sure baseUrl doesn't end with a comma and that non of the fetchTypes keys' values doesn't start with a comma.

For your convenience, here's an example source config file:

{
  "details": {
    "name": "MIT News",
    "id": "mit"
  },
  "baseUrl": "https://news.mit.edu/topic",
  "fetchTypes": {
    "astronauts": "mitastronauts-rss.xml",
    "ai": "mitartificial-intelligence2-rss.xml"
  },
  "defaultFetchType": "ai",
  "fieldsMapping": {
    "title": "title",
    "link": "link",
    "summary": "summary",
    "date": "isoDate",
    "author": "author"
  },
  "defaultCacheTTL": 10
}

License

MIT