Understanding the npm wire API

Understanding the npm wire API

History, details, and improvements for working with npm wire API. Presented at Chicago Node.js meetup June 2016.

D43e8ea63b61e7669ded5b9d3c2e980f?s=128

Charlie Robbins

June 16, 2016
Tweet

Transcript

  1. TIPS, INSIGHTS, AND HELPING IMPROVE OQN 6OEFSTUBOEJOH

  2. WHY, HELLO THERE

  3. @INDEXZERO GITHUB TWITTER

  4. None
  5. None
  6. LET’S EXPLORE THE NPM WIRE API

  7. None
  8. HISTORY

  9. WIRE API HISTORY

  10. IMPROVEMENTS WIRE API HISTORY

  11. HISTORY

  12. HISTORY IN THE BEGINNING … THERE WAS OPEN SOURCE

  13. NPM-REGISTRY-COUCHAPP

  14. NPM-REGISTRY-COUCHAPP “THIS THING I HACKED TOGETHER IN A WEEKEND” –

    @mikeal
  15. NPM-REGISTRY-COUCHAPP “THIS THING I HACKED TOGETHER IN A WEEKEND” –

    @mikeal
  16. REWRITES

  17. REWRITES

  18. HTTPS://SKIMDB.NPMJS.COM/_UTILS

  19. HTTPS://SKIMDB.NPMJS.COM/_UTILS

  20. HTTPS://SKIMDB.NPMJS.COM/_UTILS THIS IS STILL RUNNING TODAY … BUT IT IS

    NOW ONLY ONE PIECE.
  21. NPM-REGISTRY-CLIENT

  22. NPM-REGISTRY-CLIENT

  23. SINGLE WRITE PUBLISH

  24. None
  25. AND THEN

  26. AND THEN CAME THE MICROSERVICES

  27. CHEATING GALL’S LAW TQFBLFSEFDLDPNDFFKCPUDIFBUJOHHBMMTMBX

  28. None
  29. DESPITE NOT BEING OPEN SOURCE

  30. IT STILL SPEAKS THE SAME WIRE API DESPITE NOT BEING

    OPEN SOURCE
  31. …WOAH. IT STILL SPEAKS THE SAME WIRE API DESPITE NOT

    BEING OPEN SOURCE
  32. NPM WIRE API

  33. NPM WIRE API NPM C SET LOGLEVEL INFO

  34. GET /:PKG npm view <pkg>

  35. GET /:PKG/:VERSION npm view <pkg>@<version>

  36. GET /:PKG/-/:ATT npm pack -g <pkg>

  37. PUT /:PKG npm publish

  38. None
  39. NPM PUBLISH PAYLOAD

  40. IMPROVEMENTS

  41. API DOCUMENTATION HTTPS://GITHUB.COM/NPM/PUBLIC-API

  42. None
  43. NPM-REGISTRY-CLIENT

  44. IS PRETTY GOOD NPM-REGISTRY-CLIENT

  45. IS PRETTY GOOD NPM-REGISTRY-CLIENT SEARCH FOR URL.RESOLVE

  46. WAREHOUSEAI/ABSTRACT-NPM-REGISTRY

  47. WAREHOUSEAI/ABSTRACT-NPM-REGISTRY REUSABLE TEST SUITE FOR THE NPM API INSPIRED BY

    ABSTRACT-BLOB-STORE
  48. WAREHOUSEAI/ABSTRACT-NPM-REGISTRY CONTRIBUTE & LEARN! REUSABLE TEST SUITE FOR THE NPM

    API INSPIRED BY ABSTRACT-BLOB-STORE
  49. .":5)&4063$&#&8*5):06 {github, twitter}.com/indexzero crobbins@godaddy.com THANKS. Q&A TIME.