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

@evan.network/ui-dapp-browser

v3.0.2

Published

evan dapp root project for loading sub dapps, that can also be compiled as a mobile application

Downloads

116

Readme

dapp-browser

The dapp-browser is the wrapper application for the evan.network DApp framework. Using the project you will be able to create featured DApps.

By using the evan.network framework to create featured DApps, the initialization of DBCP or the blockchain core is altered and existing, initialized and configured instances can be loaded. This has the advantage that accounts, encryptions and similar complex configurations are executed dynamically by the user when the application is started.

To do this, however, all DApps must be started via the evan.network dapp-browser application, since this provides the complete function stack and the various UIs. As long as the provided functions are used, the application can only be started in environments that have the corresponding structures. Alternatively, the blockchain-core can be initialized, configured and used, as in the standalone example.

API Documentation and Tutorials

Functionallity

The src folder includes a dev.html and a index.html file. By opening the dev.html file, the code will bypass several code loading checks, to try to load dapps from the local file server. The compiled files from the "src/app" folder will be placed within the runtime folder. Chosen files will be copied to the www folder for deployment and native app building. During the dev mode the application will try to load dapps not from ens and ipfs, but from the local file server (runtime/external). This folder will be filled using the lerna DApp projects (e.g. ui-dapps). During production mode, each DApp or contract will be loaded using its ens or contract address and dbcp description. How to develop DApps, that can be loaded via the dapp-browser, have a look here DApp Basics.

The DApp browser provides several functionallities to access

  • DApp routing
  • global utillity functions like log
  • DApp time tracing options
  • IPFS cache
  • ipfs handlers
  • load and start sub DApps
  • loading mechanisms
  • SystemJS plugins for ENS loading, ENS and file loading, IPFS loading, JSON loading, CSS loading

Installation

npm i @evan.network/ui-dapp-browser

Building

  • build the runtime folder
yarn build
  • start a deployment
    • all folders within the runtime/external folder can be deployed
    • they should include a valid dbcp.json file and a dbcpPath.json file, that includes the origin -the content of this folder will be dynamcally created by the development build jobs of angular-gulp
yarn deploy --config pathToConfig
  • starts a local file serve within the runtime folder (http://localhost:3000/dev.html)
yarn serve
  • runs the build command, watch for file changes and starts a local file serve with the runtime folder
yarn build
  • expose local development server to others for testing
ssh -R evan:80:localhost:3000 serveo.net

Usage

  • typescript

tsconfig.json

{
  "compilerOptions": {
    ...,
    "paths": {
      "dapp-browser": [
        "../node_modules/@evan.network/ui-dapp-browser/dist/dapp-browser.js"
      ]
    }
    ...
  }
}

ENS Deployment

Have a look at the deployment description.

REPL Deployment

You can also start a repl for handling manual deployment steps. Just start the following script, with the same configuration that was passed below within the ENS deployment description.

yarn deploy-repl --config ...

Available params:

  • advancedDeployment
  • configPath
  • dappDeploymentFolder
  • dappFolder
  • licensesFolder
  • originFolder
  • platformFolder
  • runtimeFolder
  • bcc
  • config
  • deploymentAccount
  • deploymentDomain
  • initialized
  • ipfsConfig
  • ipfsInstance
  • ipfsUrl
  • runtime
  • web3