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

gatsby-theme-atom-service

v1.1.298

Published

Gatsby theme for website that curate Atom packages that provide and consume an Atom service

Downloads

328

Readme

gatsby-theme-atom-service

Gatsby theme for website that curate Atom packages that provide and consume an Atom service. Used to create the AtomLinter and AtomBuild websites.

Installation

In your Gatsby project, run:

npm install gatsby-theme-atom-service

Usage

Add gatsby-theme-atom-service to your gatsby-config.js

module.exports = {
  plugins: [
    "gatsby-theme-atom-service",
    /// or
    {
      resolve: "gatsby-theme-atom-service",
      options: {
        // customize any of the options below
      },
    },
  ],
};

Site Metadata

In order for the theme to function please define the following in the siteMetadata field of your gatsby-config.js:

module.exports = {
  siteMetadata: {
    // Your Project's Title, will also be the title of your website
    title: "Your Project's Amazing Title!",
    // The canonical url of your website
    siteUrl: "https://example.dev",
    // Description of your project, should be about a sentence in length.
    description: "A Very Descriptive, Snippet All About Your Project.",
    // Navigation links. Will be included in the navbar and hamburger menu.
    nav: [
      {
        name: "A Helpful Link for Navigation",
        url: "https://helpful.dev/",
      },
      /// ...
    ],
  },
};

Data

YAML is used to curate your list of provider and consumer packages. In your content folder (./content/ by default) create a consumers.yml and providers.yml with the following structure:

consumers.yml:

- title: ""
  author: ""
  url: https://atom.io/packages/example
  code: https://github.com/example/example
# ...

providers.yml:

- type:
  title: ""
  modal: ""
  types:
    - title: ""
      modal: ""
      packages:
        - title: ""
          url: https://atom.io/packages/example

Customization

The following options can be passed to the theme in gatsby-config.js to customize the site's functionality:

| Field Name | Type | Default Value | Description | | ----------------- | --------- | --------------------- | ----------------------------------------------------------------------------------------------------------------- | | basePath | string | "/" | The base path of the theme. Where it will render out your data. Default is the index of your site. | | assetPath | string | "./content/assets/" | The directory in your Gatsby site where site assets (e.g. logos, site images) are stored. | | contentPath | string | "./content/data/" | The folder in your Gatsby site where your data files are stored. | | renderConsumers | boolean | true | Should the theme render content from the consumers data file. Will not check for or requre data file if false. | | renderProviders | boolean | true | Should the theme render content from the providers data file. Will not check for or require data file if false. |