GithubHelp home page GithubHelp logo

mrakibmiah / web-apis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mdittmer/web-apis

0.0 1.0 0.0 1.9 MB

Playground for better understanding Web APIs

License: Apache License 2.0

JavaScript 95.29% Shell 1.27% HTML 3.44%

web-apis's Introduction

web-apis

Playground for better understanding Web APIs.

Javascript Object Graphs

Explore the object graph exposed by a browser's Javascript environment.

Serving Locally

$ npm install
$ node serve.js

Exploring Data

While serving locally localhost:8000/analyze.html. This tool allows you to select browser environments to include and exclude, and then look at the APIs and structures in the resulting environment.

E.g., What APIs and structures exist...

  • in Safari 602.1.38 OSX 10.12 AND

  • in Edge 14.14300 Windows 10.0 AND

  • NOT in Firefox 48.0 Windows 10.0 AND

  • NOT in Chrome 52.0.2743.116 OSX 10.11.6

Collecting Data

While serving locally visit localhost:8000/index.html. Use the buttons to collect and then save data about your environment.

NOTE: If the server already knows about your environment it will not overwrite the data.

Web IDL

Explore WebIDL fragments.

Bulk load

Currently, bulk loading from Blink is all that has been scripted. Take a look at blink_idl_import.js for a hint at how to use the parser more generally.

Importing Blink's WebIDL

First, make sure you have a checkout of Chromium, including Blink (third_party/WebKit in Chromium). At a minimum, set the following environment variable(s):

# <chromium-root-directory>/src
CHROMIUM_SRC_DIR=path/to/chromium/src

# OR

# <blink-root-directory>
# This is usually <chromium-root-directory>/src/third_party/WebKit
BLINK_SRC_DIR=path/to/blink

Next, run blink_idl_import.sh using something like zsh ./blink_idl_import.sh or bash blink_idl_import.sh. NOTE: This will overwrite data/idl/blink/all.json. Exactly one parse failure is expected.

web-apis's People

Contributors

mdittmer avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.