write requirements and event spec
add npm declaration and client dependencies