All Projects → sliminality → Ply

sliminality / Ply

CSS inspection aided by visual regression pruning

Projects that are alternatives of or similar to Ply

Re Frisk
Take full control of re-frame app
Stars: ✭ 396 (+7.03%)
Mutual labels:  developer-tools, debugger, devtools
Rawkit
🦊 Immediately Open Chrome DevTools when debugging Node.js apps
Stars: ✭ 306 (-17.3%)
Mutual labels:  inspector, debugger, devtools
debug.js
Debugger of JavaScript, by JavaScript, for JavaScript
Stars: ✭ 19 (-94.86%)
Mutual labels:  debugger, dom, devtools
narc
Small utility to watch log files and ship to syslog service.
Stars: ✭ 18 (-95.14%)
Mutual labels:  devtools, developer-tools
InAppDevTools
Android library with a collection of tools for debugging, inspecting and reporting from within your own app
Stars: ✭ 26 (-92.97%)
Mutual labels:  inspector, devtools
theroomjs
A vanilla javascript plugin that allows you to outline dom elements like web inspectors
Stars: ✭ 53 (-85.68%)
Mutual labels:  dom, inspector
devtools-highlighter
DevTools extension that finds and highlights elements in the page
Stars: ✭ 29 (-92.16%)
Mutual labels:  inspector, devtools
slyblime
Interactive Lisp IDE with REPL, Inspector, Debugger and more for Sublime Text 4.
Stars: ✭ 35 (-90.54%)
Mutual labels:  debugger, inspector
myke
make with yaml: development tasks made simple with golang, yaml and many ingredients
Stars: ✭ 67 (-81.89%)
Mutual labels:  devtools, developer-tools
Takeoff
A rapid development environment using docker for convenience.
Stars: ✭ 271 (-26.76%)
Mutual labels:  developer-tools, frontend
Snuggsi
snuggsi ツ - Easy Custom Elements in ~1kB
Stars: ✭ 288 (-22.16%)
Mutual labels:  frontend, dom
Magento2 Developer Quickdevbar
Developer Toolbar for Magento2
Stars: ✭ 306 (-17.3%)
Mutual labels:  developer-tools, devtools
portal
An api-driven, in-kernel layer 2/3 load balancer.
Stars: ✭ 101 (-72.7%)
Mutual labels:  devtools, developer-tools
red
A fast, in-kernel, ad-hoc point-to-point vxlan network.
Stars: ✭ 31 (-91.62%)
Mutual labels:  devtools, developer-tools
nanobox-rails
Quickly set up a Ruby on Rails app on Nanobox, the ideal platform for developers. With Nanobox, Rails app developers can set up instant, isolated development environments that can be shared among team members. Rails apps created using Nanobox can be automatically deployed to AWS, Azure, Google Cloud, and other cloud hosts without the need for de…
Stars: ✭ 19 (-94.86%)
Mutual labels:  devtools, developer-tools
BootstraPHP
A Bootstrap wrapper for PHP
Stars: ✭ 24 (-93.51%)
Mutual labels:  devtools, developer-tools
Fiddler Plus
自定义的Fiddler规则,多环境切换、解决跨域开发、快速调试线上代码必备|高效调试分析利器
Stars: ✭ 325 (-12.16%)
Mutual labels:  developer-tools, devtools
dom-inspector
Dom inspect like chrome dev tools.
Stars: ✭ 124 (-66.49%)
Mutual labels:  dom, inspector
prosemirror-dev-toolkit
Injectable developer tools for ProseMirror rich-text editors implemented in Svelte and TypeScript.
Stars: ✭ 44 (-88.11%)
Mutual labels:  inspector, devtools
Sketch Dev Tools
See your plugin logs, inspect the state of Sketch documents, explore actions, and more!
Stars: ✭ 285 (-22.97%)
Mutual labels:  debugger, devtools

Ply

Ply is a lightweight DOM and CSS inspector. It introduces novel CSS analysis techniques to help less-experienced developers inspect and learn from production websites of interest, when existing inspector interfaces are too overwhelming. Ply is research software, initially under development through Design, Technology, and Research at Northwestern University.

Several of Ply's core features have been released as Inactive CSS in Mozilla Firefox 70. Give it a try! You can also read our award-winning UIST 2018 paper, Ply: A Visual Web Inspector for Learning from Professional Webpage, or watch the talk.

Screenshot of Ply inspecting a pair of buttons on the Indiegogo homepage

Novel features

In order to help less-experienced developers navigate the complex DOM and CSS structures found on production webpages, Ply implements the following novel features:

  • Visual relevance pruning (CHI 2017 SRC paper, talk): While inspecting the styles for an element, users can click a button to dynamically rule out styles with no visual impact on the page. Useful for reverse-engineering how certain visual effects are achieved, without wasting time on irrelevant properties.
  • Implicit dependencies (UIST 2018 paper, talk, slides): Many CSS properties depend upon each other in unintuitive ways (e.g. z-index does not apply if position is static). Ply uses visual relevance pruning to test for implicit dependencies, and provides explanatory tooltips to reinforce the relationships between properties.
  • DOM component isolation: Rather than viewing the entire DOM at all times, users can select a node on the target webpage, and inspect only its subtree. Useful for inspecting a component of interest.

Additional features under development include:

  • Multiple element inspection: Click on multiple elements in the DOM viewer to inspect their styles side-by-side. Useful for exploring parent-child relationships, positioning contexts, or many other interactions between CSS properties on distinct elements.
  • Style organization cues: Using visual regression pruning, Ply can heuristically identify when a CSS rule serves as a "base style" for multiple elements on the page, and when another rule serves as a "refinement" style on top of shared base styles. Useful for understanding how professionals structure their CSS to minimize repetition and capture visual similarities and differences between elements.

Design rationale

In our needfinding studies, less-experienced developers were frequently overwhelmed by the complexity of the Chrome Developer Tools Element interface.

Accordingly, Ply's user interface has been carefully designed to minimize visual clutter and extraneous cognitive load:

  • Truncated content: Long text nodes are truncated by default in the DOM view, with the option to expand their contents.
  • No closing tags: DOM nodes are displayed Python-style, with no closing tags. Indentation dictates the node hierarchy.
    • By not rendering closing tags, we cut vertical screen space by up to 50% for block-level elements.
  • Nodes are collapsed by default: When a user selects a node for inspection, very rarely do they want to see the entire subtree at once. Ply collapses DOM nodes by default, allowing the user to explore the DOM structure step-by-step, at their own pace.
    • Auto-expansion: Container elements, which wrap a single child for styling purposes, frequently confused users in testing. Namely, users would neglect to expand container nodes, missing large portions of the DOM as a result. When a user expands a DOM node with a single child element, Ply will auto-expand its child recursively, until reaching a leaf node or an element with multiple children.

Structure

This repository only includes the Ply frontend and proxy server. The system communicates with the target webpage via the Chrome Remote Debugging Protocol; all browser-facing functionality is located in the chrome-remote-css repository.

The prototype implementation of the visual regression pruning algorithm can be found in chrome-remote-css as well.

Getting started

The following instructions assume familiarity with Git and Node.js tooling. If you're not even sure how to download this project, check out this guide to get up to speed.

Install the chrome-remote-css extension. Ply depends on this extension to debug pages remotely.

Once you've cloned this repository:

yarn install     # install dependencies
yarn run server  # start the proxy server
yarn start       # start the inspector

Then navigate to http://localhost:3000 in Chrome, and you should have a blank inspector.

To start inspecting a webpage, open a new window or tab, and navigate to the site you want to inspect.

Click the browser extension icon to activate chrome-remote-css, and select an element on the page using the cursor. The element and its subtree should appear in Ply.

Note that you'll need to keep the inspection target tab open, so that Ply can update and request CSS styles as you inspect.

Please file an issue if you encounter any difficulties running the project.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].