code-spike-library

Code

Evaluates a library before adopting it, with a throwaway test of each thing it must be able to do.

How to call it

/code-spike-library <library> [capabilities]The library, and what it must be able to do.
usa a lib X ou algo parecidoBefore replacing hand-written code with a dependency.

What it does, in order

  1. Check that it fits: versions and peer dependencies.

  2. Look for alternatives when it does not.

  3. Read the installed source for the internals it relies on.

  4. Write one pass or fail check per capability, in a throwaway folder.

  5. Note each workaround with the check that proved it.

  6. Migrate once the owner agrees: adopt it, delete what it replaces, delete the spike.

The rules it keeps

  • One pass or fail check per capability.
  • The spike lives in a folder left out of builds.
  • Every workaround has the check that proved it.
  • Migration waits for the owner’s yes.

What comes out

The library picked, why the obvious one did not fit, pass or fail per capability, and the workarounds.

Files