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

my-eos

v0.1.0

Published

An easy to use library for sending EOS transactions

Downloads

49

Readme

MyEOS

MyEOS is a javascript library that makes it fast and easy to build EOS dApps.

Demo

Jungle Testnet Demo

Jungle Testnet Demo (Source)

Installation

NPM

npm install --save my-eos

Yarn

yarn add my-eos

HTML

Add this to your header:

<link href="https://unpkg.com/[email protected]/dist/my-eos.css" rel="stylesheet" />

Add this to the body of your html before all other scripts

<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/my-eos.umd.js"></script>

Usage (mainnet)

import "my-eos/dist/my-eos.css";
import MyEOS from 'my-eos';

const myEos = new MyEOS({
  network: {
    chainId: 'aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906',
    host: 'api.eosrapid.com',
    port: 443,
    protocol: 'https'
  },
  scatterAppName: "Your app name here",
  appName: "MyApp"
});

const loginResponse = await myEos.login();
const authorization = myEos.getWallet().getAuthorizations()[0];
console.log("Your are logged in as "+authorization.actor+"@"+authorization.permission);

const txObject = {
  actions: [{
    account: 'eosio.token',
    name: 'transfer',
    authorization: [{
      actor: authorization.actor,
      permission: authorization.permission,
    }],
    data: {
      from: authorization.actor,
      to: 'eosrapidprod',
      quantity: '0.0001 EOS',
      memo: 'hello',
    },
  }]
};
const txResult = await myEos.transact(txObject, {
  blocksBehind: 3,
  expireSeconds: 30,
});

console.log("Transaction Result: ", txResult);

Usage (Jungle Test Net)

import "my-eos/dist/my-eos.css";
import MyEOS from 'my-eos';

const myEos = new MyEOS({
  network: {
    chainId: '2a02a0053e5a8cf73a56ba0fda11e4d92e0238a4a2aa74fccf46d5a910746840',
    host: 'api.jungle3.alohaeos.com',
    port: 443,
    protocol: 'https'
  },
  scatterAppName: "Your app name here",
  anchorAppName: "appname",
  appName: "MyApp"
});

const loginResponse = await myEos.login();
const authorization = myEos.getWallet().getAuthorizations()[0];
console.log("Your are logged in as "+authorization.actor+"@"+authorization.permission);

const txObject = {
  actions: [{
    account: 'eosio.token',
    name: 'transfer',
    authorization: [{
      actor: authorization.actor,
      permission: authorization.permission,
    }],
    data: {
      from: authorization.actor,
      to: 'lioninjungle',
      quantity: '0.0001 EOS',
      memo: 'hello',
    },
  }]
};
const txResult = await myEos.transact(txObject, {
  blocksBehind: 3,
  expireSeconds: 30,
});

console.log("Transaction Result: ", txResult);

Usage (Jungle Test Net, full html file)

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>MyEOS Jungle Test Net Example</title>
  <link href="https://unpkg.com/[email protected]/dist/my-eos.css" rel="stylesheet" />
</head>
<body>
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/my-eos.umd.js"></script>
<script type="text/javascript">
const myEos = new MyEOS({
  network: {
    chainId: 'e70aaab8997e1dfce58fbfac80cbbb8fecec7b99cf982a9444273cbc64c41473',
    host: 'api.jungle.alohaeos.com',
    port: 443,
    protocol: 'https'
  },
  scatterAppName: "Your app name here",
  appName: "MyApp"
});

const loginResponse = myEos.login().then(()=>{
  const authorization = myEos.getWallet().getAuthorizations()[0];
  console.log("Your are logged in as "+authorization.actor+"@"+authorization.permission);

  const txObject = {
    actions: [{
      account: 'eosio.token',
      name: 'transfer',
      authorization: [{
        actor: authorization.actor,
        permission: authorization.permission,
      }],
      data: {
        from: authorization.actor,
        to: 'lioninjungle',
        quantity: '0.0001 EOS',
        memo: 'hello',
      },
    }]
  };
  return myEos.transact(txObject, {
    blocksBehind: 3,
    expireSeconds: 30,
  });
})
.then((txResult)=>{
  console.log("Transaction Result: ", txResult);
})
.catch((error)=>{
  console.error("ERROR: ", error);
});
</script>
</body>
</html>

TODO:

  • Finish Documentation!
  • Finish Todo List!