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

drial

v0.1.0

Published

End-to-end test automation in the browser.

Downloads

5

Readme

Drial

Simple test automation in the browser for people familiar with JavaScript. No third party madness and no additional APIs to learn.

License

AGPLv3 Much of this project's code is ripped straight from Share File Systems which is also licensed AGPLv3.

Installation

  • Requires Node.js and git
  1. get the code
  2. git clone https://github.com/prettydiff/drial.git - get it from github
  3. npm install drial - get it from npm
  4. move into the project directory
  5. if cloned from git - cd drial
  6. if downloaded from npm - cd node_modules/drial
  7. npm install -g typescript - install the compiler
  8. npm install - install local dependencies required by the compiler
  9. tsc - compile the code
  10. node js/application build - build the application

Run it

  • drial websites campaign:demo
  • For more options try the interactive command documentation drial commands websites.
  • See the documentation for things like additional command guidance, browser research, known problems, how to write tests, and how this application works.

Getting started

  1. Execute drial commands to see commands available in the terminal and execute it with a command name for all supported options with examples: drial commands websites.
  2. Skim the documentation.

Configuration

This application stores all configurations in the file /lib/utilities/configuration.ts.

Campaign path

The application requires a campaign file to know which instructions to execute. The default location for campaign files is /campaigns of this application. To specify a different location open the configuration file and modify the value of campaignPath property with an absolute file system path. Once complete rebuild with the command: drial build.

Browser path

The default installation paths for several popular browsers per operating system are listed in the configuration file.

  • If your browser's default installation path for your operating system is absent please open a Github issue with the file system path and I will update the application.
  • If you are using a custom installation path and need to change the configuration file then make your change and run the command drial build to compile the code.

Campaign Files

Please read the documentation files on client side tests: /documentation/website_tests.md.

Timing

Aside from the listed examples and test specified delays all test instructions attempt to execute as fast as the machine will allow.

  • The application starts with a 2 second delay to provide enough time for the browser to open before sending it test instructions. This delay can be customized. See drial commands websites for an example.
  • The application waits for a page to fully load before sending test instructions. This is the factor that slows down this application the most. If testing appears slow examine the performance of the page, such as if its waiting on third party scripts to request additional artifacts.