/webfeet

Add webfeet to your APIs to help make them ~~swim like a duck~~ behave like native

Primary LanguageJavaScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Webfeet

Published on npm

This repository contains libraries to help create objects (including custom elements) that behave closer to the web platform as currently spec'd; namely:

  • attribute reflection in custom elements
  • event handlers in objects and custom elements
  • type coercion for property values and method arguments, following the rules of WebIDL (with small exceptions for edge-cases, to keep the library lightweight)

Internal/subsidiary packages:

What about this name?

Add webfeet to your APIs to help make them swim like a duck behave like native.

If it looks like a duck, swims like a duck, and quacks like a duck, then it probably is a duck.

And of course, it has web in the name.

Some other names I considered (most of them were already taken):

  • platformer: like the platformer video games, where you need to stay close to the platforms
  • jarod: the main character of The Pretender TV series
  • mimetic or mimetism: in reference to biomimetism where we use nature as an inspiration to solve technical problems, here taking the platform as inspiration
  • ducklike or anatine: pertaining to or ressembling a duck
  • syrinx: the vocal organ of birds, that allows ducks to quack
  • webfooted or palmiped (or palmipede as in French)