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

backpackjs

v1.2.4

Published

<h1 align="center">Backpackjs</h1> <br> <p align="center"> <img src="https://i.imgur.com/yGFIcpZ.jpg" width="200"> </p>

Downloads

12

Readme

Table of Contents

  1. Introduction
  2. Getting Started
  3. Netlify Deployments
  4. Features
  5. Authors
  6. License

Introduction

Netlify npm dependency status issues pull requests repo size license

One sentence description of what this is. Forage shabby chic bicycle rights flannel tumeric. Polaroid master cleanse squid sartorial, godard letterpress migas intelligentsia seitan keytar gastropub.

Getting Started

Pabst cred cloud bread cardigan, quinoa semiotics drinking vinegar slow-carb. Post-ironic selfies echo park glossier pour-over mustache ramps four dollar toast pok pok next level. Kickstarter man braid jianbing offal biodiesel hammock venmo sartorial.

Food truck ethical poke, listicle photo booth shaman master cleanse vape whatever palo santo single-origin coffee tofu jean shorts hella truffaut. Leggings kinfolk pop-up normcore migas mlkshk hoodie blog readymade.

Requirements

  • node >= 12.18.0
  • yarn >= 1.22.5

Installation

# Clone this repository
$ git clone https://github.com/packdigital/backpackjs-theme

# Go into the repository root
$ cd backpackjs-theme

# Install dependencies (must use yarn)
$ yarn install

Environment Variables

# Create .env file
$ touch .env

Add values for the following env vars:

  • BACKPACK_API_TOKEN
  • BACKPACK_SITE_ID
  • SHOPIFY_DOMAIN
  • SHOPIFY_STOREFRONT_API_TOKEN
  • SHOPIFY_STOREFRONT_API_VERSION

Usage

Build your project at least once:

$ yarn build

Then try running one of these commands:

$ yarn dev

$ yarn start

Netlify Deployments

Configuration

  • Set up project to deploy from github repo
  • Set build command to yarn build
  • Set publish directory to storefront/out

Add Environment Variables

  • Navigate to Build & deploy > Environment
  • Click Edit Variables
  • Add values for the following:
    • BACKPACK_API_TOKEN
    • BACKPACK_SITE_ID
    • SHOPIFY_DOMAIN
    • SHOPIFY_STOREFRONT_API_TOKEN
    • SHOPIFY_STOREFRONT_API_VERSION

Note: make sure your project has a yarn.lock file in the root or has the NETLIFY_USE_YARN env variable set to true

Features

  • 🛒  Shopping Cart powered by Shopify Buy SDK
  • 📡  Real-time content preview via. [Fast Refresh]
  • 💆‍♀️  Headless Account Managements via. /accounts/*
  • 📹  Headless Preview via. Next.js preview

Roadmap

  • [x] Steal README.md
  • [ ] Abstract away Next.js pages (e.g. pages/products, etc.)
  • [ ] Abstract away account endpoints (e.g. api/customerGet.js, etc.)
  • [ ] Ensure current hooks provide all data required (e.g. recharge, etc.)
  • [ ] Ensure current hooks expose all actions required (e.g. useGiftNote, etc.)
  • [ ] Publish document.ready, window.load events
  • [ ] Publish route change event
  • [ ] Publish page specific events (e.g. view collection, etc.)
  • [ ] Publish action specific events (e.g. remove from cart, etc.)

Bonus Features

  • [ ] Better prop validation & error messages (see: @backpackjs/cart)
  • [ ] Abstract away platform specific code (e.g. buy-sdk, etc.)
  • [ ] Create generic interfaces to connect platform specific code
  • [ ] Make raise function in CartContext.jsx a utility
  • [ ] Replace usePrevious.js with an npm package
  • [ ] Identifying state vs persisted state changes in @backpackjs/account
  • [ ] Identifying state vs persisted state changes in @backpackjs/cart
  • [ ] Move common functions in actionsAsync.js to utils

Authors

License

MIT