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

apg-html

v1.0.2

Published

(Discontinued: not working and no longer maintained.) Web Page GUI for generating & testing APG parsers. New feature for viewing the trace as a d3.js-generated parse tree.

Downloads

9

Readme

apg.html

Discontinued: not working and no longer maintained.

apg.html is a web page GUI for developing and testing SABNF syntax and the JavaScript APG parsers it generates. It has been removed from the apg repository because of several updates that make it more of an independent project apart from apg.

First, it has been updated to use jQuery for better cross-browser behavior. Second, and more importantly, is the major enhancement of a visual, trace tree using the d3 library.

Installation

The installation uses less and webpack to bundle the node.js code for the web pages and docco to generate the documentation.

npm install -g [email protected]
npm install -g [email protected]
npm install -g [email protected]

Other versions may work fine. These are the versions that the applications have been tested with.

From GitHub:

git clone https://github.com/ldthomas/apg-html.git apg-html
cd apg-html
npm install

From npm:

npm install apg-html
cd node_modules/apg-html

To bundle the applications for web page use and generate the documentation

npm run build
./docco-gen

To view the documentation, open docs/setup.html in any web browser to get started. Use the "JUMP TO" links in the upper right corner to navigate the documentation for the different pages.

If you want to rebuild the apg or tree bundles separately,

npm run build-apg
npm run build-tree

Usage

apg.html is a single web page, driven by (Webpack) bundled JavaScript. In essence, it provides a panel to input an SABNF grammar, generate a parser from it and test it with an input string. For details, click on

apg.html

and read the Help panel.

New with this version is a feature for viewing a d3.js graphic display of the parse tree. The file

tree.html

can be popped up from apg.html (see the Trace Help) or can be run stand-alone with the tree data in a <script> file. Including the helper function

js/tree-save.js

can assist in getting the data in the right format. See the examples

Copyright

Copyright © 2017 Lowell D. Thomas, all rights reserved

License

Released with the BSD-3-Clause license.