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

primitiveone

v1.0.9

Published

Primitive One - Built with Frontity

Downloads

6

Readme

Primitive One Frontity Theme

A Headless WordPress (REST API) Theme for Frontity

screenshot

Created with a little Node.js and React magic.

Built on the awesome new, itty bitty, Frontity framework: https://frontity.org/

With little help from our friends: Bootstrap 4, GSAP and ScrollMagic.

Live demo site: https://primitivedigital.co.uk

GitHub: https://github.com/primitiveshaun/primitiveone

NPM: https://www.npmjs.com/package/primitiveone

Domain and WordPress hosting from: https://primitivehosting.uk/headlesswp

N.B. This is only my second attempt at React based website so do be kind.
It may be messy and it may be downright wrong in places.

See changelog for release notes.

Issues, Fix and Refine

  1. Query strings break routing / 404s
  2. Having issues importing the bootstrap CSS correctly

WIP: SEO bits and bobs

  1. Zeit Now deployment

Now recommends setting domains to point at their nameservers. Or, alternatively setting CNAME/ANAME DNS records

  • CNAME works for subdomains (www.) but you can not set CNAME records on the root i.e. example.com
  • Not all domain registrars support ANAME records.
  • My current deployment is set to use Zeit Nameservers
  • You can set DNS records via the Now cli
  • https://zeit.co/blog/now-dns / https://zeit.co/docs/v2/advanced/domains/dns/

Duplicated Content

  • Do add canonical links to your index
  • Self referncing canonical links are OK

robots.txt

  • You can create a robots text via now.json (routes)
  • You DO NOT need to do this manually for Frontity

www/non-www redirects

  • Also possible via now.json (routes)
  • To Do: https://zeit.co/guides/redirect-from-www/

Sitemaps

  • TBC

To Test/Implement: title/meta / Frontity Yoast module

  • TBC

To Do: Features >>>>>>

  • Content: load WP pages and create cpt/acf
  • Feat: custom post/cpt blocks ( ??? test with filters vs WP_Query)
  • Feat: Better webfont loading
  • Refine: Google analytics implementation / package
  • Widget blocks (CPT, facebook, twitter, instagram, pinterest)
  • Best practice: choosing the right component (Image can be imported from various modules)
  • Best practice: applying 'styled' to components imported from other modules
  • How to set the location of page content when a static is set as the homepage / Content positioning / Roots and Fills

To Do: Later >>>>>>

  1. Merge with Boostrap branding kit.
  2. Add: WP theme support and user configurables
  3. Refine: Animation, use scale and overlap tweens
  4. Add: Create/Extend animations to pass user configuration
  5. AMP

Performance Comparrison Testing (WIP)

Check back for links to compare the performance of various deployments.

Now: https://now.primitivedigital.uk
Google: TBC
AWS: TBC
Static: TBC

Created by Primitive Digital

https://primitivedigital.uk

screenshot

Setup

The following pre-requisites should be in place for the theme to work:

  1. WordPress install of version 5.0 or later
  2. Optional but highly recommended: register a domain
  3. If deploying to Now install WordPress to a sub directory e.g. - wp.example.com
  4. Posts permalink set set to: Custom Structure e.g. - /posts/%postname%/
  5. Set homepage to a static page

To be added in next release(s) (WIP) 6. ACF Plugin vs Register custom fields 7. CPT UI Plugin vs Register custom post types 8. ACF Category permalink to be set as: Custom base - /products/

Installing and beginning development

*** Follow the Frontity setup outlined in their Docs ***

https://docs.frontity.org/getting-started/quick-start-guide

  1. git clone https://github.com/primitiveshaun/primitiveone
  2. cd primitiveone
  3. npm install && npx frontity dev (from the project's root directory)

** Quick Ref: Commands **

npx frontity dev

npx frontity build

Deployment

*** Follow the Frontity deployment outlined in their Docs ***

https://docs.frontity.org/installation-and-deploy

npx now
npx now --prod


The code is opensource so play like you mean business.

Enjoy!

Need Support


If you find any problems with this theme, please report an issue at:
https://github.com/primitiveshaun/primitiveone/issues

Primitive One created by Primitive Digital

https://primitivedigital.uk

screenshot