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

etherface

v0.1.2

Published

Ethereum dApp UI builder

Downloads

5

Readme

etherface

Ethereum dApp UI Builder.

Project is a work in progress, for testing use only. Feedback / suggestions / contributions appreciated.

Try out the demo at https://johnkozan.github.io/etherface

Run on your own computer:

$ npx etherface

Development:

  • Clone this repo
  • Run dev server: npm run start
  • Build for deployment: npm run build

Can also be included as a module in an existing React project.

Template file

User interfaces for dApps are defined in a JSON file. By default, the template file is saved to the browser's localstorage. When running the app for the first time, a default introduction template is loaded.

An existing template file can be loaded from the command line with the command bin/etherface template.json. This command will start a simple webserver to serve the app and provide the template file to the app.

The template file is made up of the following elements:

Tabs

Tabs are listed in the side navigation bar. Each tab can have many pages (TODO).

Pages

Pages are groups of components. Pages are arranged in columns, either 1, 2 or 3. The widths of each column may be adjusted. Click the Edit button in the lower right hand corner of the button to edit a page's layout and components.

Components

The UI elements that appear on a page. The following types of components are available:

Markdown

A basic text component. Renders Markdown text. Values from web3 call transactions can be included in the Markdown text as variables (TODO).

Web3 Transaction

Provides the user the inputs required to make a transaction to a specified contract. This may be a call function to retrive a value, or a blockchain transaction.

Web3 Call

Displays a values from a web3 call.

GraphQL Data Table

Displays data from a GraphQL endpoint, such as TheGraph. Introspection is used to determine the schema of the endpoint, and queries are automatically generated.

The data displayed in the table can be customized, and you can drill down to see the details of individual items, as well as click through relationships to other graph nodes.

Integrations

Integrations are connections to other decentralized services. Currently the following are implemented:

TheGraph

Connects to TheGraph graphql endpoints.

Infura / Web3 RPC

Specify an Infura or other Web3 RPC API endpoint to make web3 queries against if the user does not have a web3 enabled browser. (TODO)

Address book

An address book of Ethereum addresses including their ABIs. When adding an address, ABIs can be automatically fetched from Etherscan or specified manually.

A truffle build .json file can also be uploaded, which contains the ABI and deployed addresses. (TODO: Automatically build a user interface from truffle build .json files)

Support this project

If you find this project to be useful, please consider a donation of Ethereum or BAT tokens to 0x4DA681E4713cC8C4fDbE8a1B027AeBE59c4B332E