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

b2x-insight-ui

v0.2.3

Published

An open-source frontend for the Segwit2x Insight API. The Insight API provides you with a convenient, powerful and simple way to query and broadcast data on the bitcoin network and build your own services with it.

Downloads

126

Readme

Segwit2x Insight UI

A Segwit2x blockchain explorer web application service for Segwit2x Node using the Insight API.

Getting Started

To manually install all of the necessary components, you can run these commands:

npm install -g b2x-node
b2x-node create mynode
cd mynode
b2x-node install b2x-insight-api
b2x-node install b2x-insight-ui
b2x-node start

Open a web browser to http://localhost:3001/b2x-insight/

Development

To build Insight UI locally:

$ npm run build

A watch task is also available:

$ npm run watch

Changing routePrefix and apiPrefix

By default, the insightConfig in package.json is:

  "insightConfig": {
    "apiPrefix": "b2x-insight-api",
    "routePrefix": "b2x-insight-ui"
  }

To change these routes, first make your changes to package.json, for example:

  "insightConfig": {
    "apiPrefix": "api",
    "routePrefix": ""
  }

Then rebuild the insight-ui service:

$ npm run build

Multilanguage support

Insight UI uses angular-gettext for multilanguage support.

To enable a text to be translated, add the translate directive to html tags. See more details here. Then, run:

grunt compile

This action will create a template.pot file in po/ folder. You can open it with some PO editor (Poedit). Read this guide to learn how to edit/update/import PO files from a generated POT file. PO file will be generated inside po/ folder.

If you make new changes, simply run grunt compile again to generate a new .pot template and the angular javascript js/translations.js. Then (if use Poedit), open .po file and choose update from POT File from Catalog menu.

Finally changes your default language from public/src/js/config

gettextCatalog.currentLanguage = 'es';

This line will take a look at any *.po files inside po/ folder, e.g. po/es.po, po/nl.po. After any change do not forget to run grunt compile.

Note

For more details about the Segwit2X Insight API configuration and end-points, go to Segwit2X Insight API GitHub repository.

Contribute

Contributions and suggestions are welcomed at the Segwit2X Insight UI GitHub repository.