Skip to content

Fetch Eleventy plugins list from npm API instead of collection of data files #47

@pdehaan

Description

@pdehaan

I've used npms's API before and enjoyed it.

https://api.npms.io/v2/search?q=keywords:eleventy-plugin+not:deprecated&size=250

We'll have to paginate+offset results if we expect more than 250 plugins since 250 is the max per-page allowed.
If we need more data from npm for a package, we can always use npm's own pacote.

But that might be a reasonable enough start and just refresh that via serverless every 24h or whatever.

Other metaphorical wrench in the plans is that everything npm related (from either API) would always just refer to an npm username, which means it might be trickier to display a list of an author's eleventy-plugins on their authors page; unless we try and maintain a lookup table between twitter/github/npm accounts.


Fun fact, I was starting to build an eleventy-plugins.dev style site at one point which was just going to deploy daily on a cron job.
The one feature I was working on but didn't get around to finishing was a list of keywords/tags or something to make it easier to search/filter by. For example, if I want an 11ty plugin for PWAs, it'd be nice to filter or just do a Ctrl+F on the page for some keywords. I did find a few packages have some weird keywords so I was working on a list of keywords I wanted to ignore (along w/ 11ty, eleventy, eleventy-plugin).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions