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-simple-bio

v0.3.1

Published

This theme is developed using ```gatsby```. One can use this theme for having a website with brief introduction and social profiles.

Downloads

27

Readme

Gatsby Theme - Simple Bio

This theme is developed using gatsby. One can use this theme for having a website with brief introduction and social profiles.

See the live demo.

Installation

To use this theme in your Gatsby sites, follow these instructions:

  1. Install the theme

    npm install --save gatsby-theme-simple-bio
  2. Add the theme to your gatsby-config.js:

    module.exports = {
      plugins: [
        {
          resolve: 'gatsby-theme-simple-bio',
          options: {
            // See Options section for more details
          }
        }
      ]
    }
  3. Start your site

    gatsby develop

Usage

Site setup

  • Required directories
    • author
├── author
│   └── john-doe.yml
├── content
│   ├── assets
│   │   ├── profile.png
│   │   └── profile.svg
│   └── home
│       └── index.mdx
├── gatsby-config.js
├── package-lock.json
├── package.json
└── src
    ├── gatsby-theme-simple-bio
    │   ├── components
    │   │   └── bio
    │   │       └── figure.js
    │   └── gatsby-plugin-theme-ui
    │       ├── colors.js
    │       └── index.js
    └── pages
        └── 404.js
  • You need to have an author directory which contains a yml file containing author information
  • The structure of yml file in author is expected to be
# Author info
name: John Doe
description: A passionate web designer
cover: ../content/assets/profile.png
username:
  linkedin: john-doe
  github: john-doe
  facebook: john.doe
  twitter: john_doe
  email: [email protected]
positions:
  - title: Position 1
    company: XYZ Company
    duration: July YYYY - Present
  :
  :
  • The image provided in cover entry of yml is expected to be an image file (other than SVGs) which is locally present (Currently online image links are not supported)

NOTE: This image should be present in the directory specified by assetsPath in theme options.

  • If you don't wish to provide any usernames, make the entry an empty string as below
username:
  github: ""
  • Description of the person should be provided in the folder specified in homePath option of the theme. The MDX file present in this folder should have type "home-page" in the front matter.

Theme Options

Below are the options available for the theme

// Base url for rendering site
baseUrl: "/", // Default: "/"
// Directory path for images
assetsPath: "content/assets", // Default: "content/assets"
// Directory path for MDX home page content
homePath: "content/home", // Default: "content/home"
// Should the theme have rounded components
rounded: false, // Default: false

| Key | Default | Description | |------------------|----------------------|------------------------------------------| | baseUrl | / | Base url for rendering site | | assetsPath | content/assets | Directory path for images | | homePath | content/home | Directory path for MDX home page content | | rounded | false | Should the theme have rounded components |

Additional configuration

In addition to the theme options, there are a handful of items you can customize via the siteMetadata object in your site's gatsby-config.js

// gatsby-config.js
module.exports = {
  siteMetadata: {
    // Name of the gatsby site
    appName: "Demo of gatsby-theme-simple-bio",
    // Used for the site title and SEO
    title: "Demo of gatsby-theme-simple-bio",
    // Used to provide alt text for your avatar
    author: "John Doe",
    // URL for the website
    siteUrl: "https://www.gatsbyjs.org",
    // Used for SEO
    description:
      "This site is a demonstration for using theme " +
      "gatsby-theme-simple-bio",
    // Used for social links in the root footer
    social: {
      // Facebook
      facebook: "john-doe",
      // Twitter
      twitter: "john-doe",
      // Email
      email: "john-doe",
      // LinkedIn
      linkedin: "john-doe",
      // Github
      github: "john-doe",
    },
  },
}

Features

  • Support for theme-ui
  • Responsive mobile friendly UI
  • Dark/Light modes