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

steamauth-extension

v1.0.3

Published

Provides an interface to use the SteamAuth extension service.

Downloads

30

Readme

SteamAuth Extension

Steamauth shares your Steamdata with third party websites securely. It can shares your Inventory and Tradingdata.

This package serves to facilitate the use of triggers for the extension, and is supported by the SteamAuth extension.

Installation

npm install steamauth-extension

Usage

First of all, you or your users need to install the SteamAuth Extension. You can download it from this link. After downloading the extension, you can start using it by following the steps in the documentation.

Note: The Extension pass the data into your Backend. For that, you need to setup an Webhook Url under: www.steamwebapi.com. Please contact us for more information for setting up the Webhook Url under Discord. Feedback from the Extension you can see in the console too.

Inventory Data

This function returns the user's steam inventory.

import { getInventoryData } from "steamauth-extension";

export default function App() {
  return (
    <button
      onClick={() =>
        getInventoryData({
          game: "730",
          webhook: "https://your-webhook-url.com - not required",
          ident: "custom-ident-for-example-username-or-userid - not required",
          host: "your-host.com setting up under steamwebapi.com",
        })
      }
    >
      Get Trade History
    </button>
  );
}

Trade History

This function returns all the finished trades of the user.

import { getTradeHistory } from "steamauth-extension";

export default function App() {
  return (
    <button
      onClick={() =>
        getTradeHistory({
          webhook: "https://your-webhook-url.com - not required",
          ident: "custom-ident-for-example-username-or-userid - not required",
          host: "your-host.com setting up under steamwebapi.com",
        })
      }
    >
      Get Trade History
    </button>
  );
}

Pending Trade Sent

This function returns all the pending sent trades of the user.

import { getSentPendingTrades } from "steamauth-extension";

export default function App() {
  return (
    <button
      onClick={() =>
        getSentPendingTrades({
          webhook: "https://your-webhook-url.com - not required",
          ident: "custom-ident-for-example-username-or-userid - not required",
          host: "your-host.com setting up under steamwebapi.com",
        })
      }
    >
      Get Pending Sent Trades
    </button>
  );
}

Pending Trade Received

This function returns all the pending received trades of the user.

import { getReceivedPendingTrades } from "steamauth-extension";

export default function App() {
  return (
    <button
      onClick={() =>
        getReceivedPendingTrades({
          webhook: "https://your-webhook-url.com - not required",
          ident: "custom-ident-for-example-username-or-userid - not required",
          host: "your-host.com setting up under steamwebapi.com",
        })
      }
    >
      Get Pending Received Trades
    </button>
  );
}

Send Trade Offer

This function send Trade Offer to your users. Send an Item out or get an Item in.

import { sendTradeOffer } from "steamauth-extension";

export default function App() {
  return (
    <button
      onClick={() =>
        sendTradeOffer({
          partneritemassetids: [],
          myitemassetids: ["36019072594"],
          tradeoffermessage: "tradeoffermessage",
          tradelink:
            "https://steamcommunity.com/tradeoffer/new/?partner=111290214&token=k1Ty4tEi",
          partnersteamid: "76561198071555942",
          message: "This is a test message",
          webhook: "https://your-webhook-url.com - not required",
          ident: "custom-ident-for-example-username-or-userid - not required",
          host: "your-host.com setting up under steamwebapi.com",
        })
      }
    >
      Send Trade Offer
    </button>
  );
}

Props

| Name | Type | Description | | :------ | :----: | -------------------------------------------------: | | host | string | Required. The host url used by the extension. | | ident | string | Optional. The identifier that you want to use. | | webhook | string | Optional. The host url used by extension. |

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT