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

@mozilla/web-science

v0.5.3

Published

WebScience is a library for building browser-based research studies.

Downloads

21

Readme

WebScience

WebScience is an open-source library for building browser-based research studies, including on Rally.

Design Goals

  • Reduce the barriers to implementing browser-based research studies, by providing production-quality functionality that is commonly required, difficult to implement correctly, and difficult to maintain.
  • Standardize measurement methods across browser-based research studies.
  • Advance the state of the art in browser-based research methods, such as by providing a sophisticated model for user attention to web content and providing infrastructure for in-browser machine learning classification of webpages.
  • Encourage researchers to practice data minimization when implementing studies.
  • Support integration with existing libraries that are valuable for browser-based studies, such as for indexed data storage (e.g., Dexie.js) or for machine learning (e.g., TensorFlow.js, ONNX.js, WebDNN, or sklearn-porter).
  • Provide an API that is built on and consistent with WebExtensions, reducing the learning curve and offering compatibility with all major web browsers.

Contributors

The primary contributors to WebScience are researchers at the Princeton University Center for Information Technology Policy and the Mozilla Rally team.

Getting Started with WebScience

The easiest way to get started is with the Rally + WebScience study template, which has already been configured to integrate the WebScience library.

If you would prefer to build a browser extension with WebScience from scratch, we recommend the following steps:

Using WebScience in a Study Extension

Using WebScience in your study extension is easy. At the start of the background script where you want to use WebScience, just add:

import * as webScience from "@mozilla/web-science";

You will then be able to use the WebScience API within the background script (e.g., webScience.pageNavigation...).

You can also selectively import components of the WebScience API, if you prefer. Just add, for example:

import { pageNavigation, socialMediaLinkSharing } from "@mozilla/web-science";

You will then be able to use those components of the API (e.g., pageNavigation...).

Exploring the WebScience API

Documentation for the latest release of WebScience is available at https://mozilla-rally.github.io/web-science/jsdocs/. The documentation is automatically generated from JSDoc annotations in the WebScience implementation.

API Implementation Progress

| Module | No Breaking Changes Planned | No Known Bugs | Good Documentation | Good Test Coverage | Browser Support | | ------------------------ | --------------------------- | ------------------ | ------------------ | ------------------ | ------------------ | | debugging | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | Firefox, Chrome | | events | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | Firefox, Chrome | | id | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | Firefox, Chrome | | idle | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | Firefox, Chrome | | inline | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | Firefox, Chrome | | linkExposure | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | Firefox | | linkResolution | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | Firefox | | matching | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | Firefox, Chrome | | messaging | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | Firefox, Chrome | | pageManager | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | Firefox, Chrome | | pageNavigation | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | Firefox, Chrome | | pageText | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | Firefox, Chrome | | pageTransition | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | Firefox | | permissions | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | Firefox, Chrome | | randomization | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | Firefox, Chrome | | scheduling | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | Firefox, Chrome | | socialMediaActivity | :x: #23 | :white_check_mark: | :white_check_mark: | :x: | Firefox | | socialMediaLinkSharing | :x: #17 | :white_check_mark: | :white_check_mark: | :x: | Firefox | | storage | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | Firefox, Chrome | | timing | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | Firefox, Chrome | | userSurvey | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | Firefox | | workers | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | Firefox, Chrome |