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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@bigfootds/bigfoot-fetcher

v0.2.2

Published

JavaScript fetch override for cohesive, consistent usage across various BigfootDS projects.

Downloads

10

Readme

@bigfootds/Bigfoot-Fetcher

JavaScript fetch override for cohesive, consistent usage across various BigfootDS projects.

Note that this package, while publicly available and MIT-licensed, is not intended for public contribution/collaboration. We just need an easy way to consolidate some functionality that will be reused across multiple projects, and an NPM package is a nice, easy way to do that.

Installation

npm install @bigfootds/bigfoot-fetcher

Usage

Import the package as:

const {fetcher} = require("@bigfootds/bigfoot-fetcher");

Or:

import {fetcher} from "@bigfootds/bigfoot-fetcher";

Then, use fetcher in place of any fetch function calls. It's a wrapper around fetch!

NodeJS Usage

app.get("/headers", (request, response) => {
    response.json({result: JSON.stringify(request.headers)});
})

fetcher("http://localhost:3030/headers")
    .then(async (response) => {return await response.json()})
    .then((data) => {
        console.log("Returned headers:");
        console.log(data);
    });
Returned headers:
{
  result: '{"host":"localhost:3030","connection":"keep-alive","osname":"Linux","osversion":"5.15.0-125-generic","platformname":"API","platformtype":"api","productname":"@bigfootds/ms-auth","accept":"*/*","accept-language":"*","sec-fetch-mode":"cors","user-agent":"node","accept-encoding":"gzip, deflate"}'
}

ReactJS Usage

Vite has special config steps that must be done because of the strange way that they handle environment variables.

// vite.config.js

import { defineConfig, loadEnv } from 'vite'
import react from '@vitejs/plugin-react'
import packageJson from "./package.json";

// https://vitejs.dev/config/
export default defineConfig(({mode}) => {

  const env = loadEnv(mode, process.cwd(), "");
  let combined = {...env, ...packageJson.bigfootds};
  console.log(combined);

  return {
    plugins: [react()],
    define: {
      'process.env':combined
    }
  }
})
import './App.css'
import {fetcher} from "@bigfootds/bigfoot-fetcher";

function App() {
  const makeBigfootDSFetch = async () => {
    let result = await fetcher("http://localhost:3030/headers");
    let data = await result.json();
    console.log(data);
  }

  return (
    <>
      <div>
        <button onClick={makeBigfootDSFetch}>
          Make a BigfootDS Fetch Request
        </button>
      </div>
    </>
  )
}

export default App

The above returns this to the console:

{
    "result": {
        "host": "localhost:3030",
        "connection": "keep-alive",
        "browserengineversion": "131.0.0.0",
        "browserversion": "131.0.0.0",
        "osname": "Windows",
        "browsername": "Chrome",
        "osversion": "10",
        "sec-ch-ua": "\"Google Chrome\";v=\"131\", \"Chromium\";v=\"131\", \"Not_A Brand\";v=\"24\"",
        "sec-ch-ua-mobile": "?0",
        "browserenginename": "Blink",
        "platformname": "web client",
        "osversionname": "10",
        "platformtype": "desktop",
        "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
        "dnt": "1",
        "productname": "Super Cool Frontend Website",
        "sec-ch-ua-platform": "\"Windows\"",
        "accept": "*/*",
        "origin": "http://localhost:5173",
        "sec-fetch-site": "same-site",
        "sec-fetch-mode": "cors",
        "sec-fetch-dest": "empty",
        "referer": "http://localhost:5173/",
        "accept-encoding": "gzip, deflate, br, zstd",
        "accept-language": "en-AU,en-GB;q=0.9,en-US;q=0.8,en;q=0.7",
        "if-none-match": "W/\"363-kym2xWPe6ASfGk36ZZ0u32/cuvA\""
    }
}

Yes, Windows 11 shows up as Windows 10 - more work can maybe be done in this area but it requires some more-secure browser context configuration.

Note that the headers above are populated by some default request headers as well as the "Bigfoot Fetcher" headers, which come from a package.json contents like this:

{
    "name": "@bigfootds/ms-auth",
     "version": "1.0.1",
    "description": "Core authentication & IAM services for BigfootDS & its various games and products.",
    "config":{
        "bigfootds":{
            "platformType":"api",
            "platformName":"API",
            "productName":"@bigfootds/ms-auth"
        }
    },
    // ...rest of package.json for a NodeJS back-end project
}
{
  "name": "vite-testo",
  "private": true,
  "version": "0.0.0",
  "bigfootds": {
    "productName": "Super Cool Frontend Website",
    "platformName":"web client"
  },
  // ...rest of package.json for a front-end project
}

These headers are added to all fetch requests that use this package's fetcher function:

interface BigfootDSConfig {
    productName?: string, 
    productVersion?: string,
    browserName?: string,
    browserVersion?: string,
    browserEngineName?: string,
    browserEngineVersion?: string,
    osName?: string,
    osVersion?: string,
    osVersionName?: string,
    platformType?: string, 
    platformName?: string 
}

Whether or not they are actually added depends on if they have value, and they don't all have value on all platforms. e.g. no browser properties in the NodeJS environment!