Description
As more users are publishing their own frontity packages, we should start tracking them so that we can provide an official “index” of frontity packages that can be installed.
In the future we can provide an official, searchable list of frontity packages on our website and extend the CLI so that each one of them could be installable with just frontity install-package <package-name>
Examples
Gatsby has an ecosystem of “plugins” that basically serve the same purpose as frontity packages: https://www.gatsbyjs.org/plugins/
Possible solution
There are several related tasks that we need to accomplish:
- Create an index of packages as an editable database. This should be editable both manually and through some sort of an API. We could probably get away with just a notion page for the moment. Later, I think we should create a serverless function that connects to a data storage somewhere.
- Manually collect a list of already existing frontity packages (can search on npm/github)
- Establish a convention that each npm package with a
frontity-*
prefix is an installable “frontity” package. - Create a cron job that periodically adds all those packages to our index.
- Extend the CLI to allow installing a frontity package by doing just
frontity install-package <package-name>
- (nice to have) Update the frontity CLI to by default create a package with a
frontity-
prefix followed by 2 random words (e.g.frontity-daring-fireplace
) so that it’s instantly publishable under that name.