Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Gatsby: Under the Hood

Gatsby: Under the Hood

Gatsby has built on the ideas from the existing generation of static generators to provide a truly flexible system for baking out sites.

In this talk, I will take you under the hood to see how Gatsby’s architecture lets you break free of the constraints you’re used to.

Darian Moody

March 19, 2018
Tweet

More Decks by Darian Moody

Other Decks in Programming

Transcript

  1. @djm_ @djm_ 3 < 2 WEEKS 1 CMS PAGE 1

    BACKENDER 1 FRONTENDER 0 OPS
  2. @djm_ @djm_ 9 Same page for all? ✓ Content known

    up front? ✓ Needs to be cheap? ✓
  3. @djm_ @djm_ 15 MULTIPLE DATA
 SOURCES json yaml ini toml

    csv flat files databases APIs XML custom formats CMSs Pain One
  4. @djm_ @djm_ 16 DATA FORMAT LIMITATIONS Limiting the possibilities without

    extra effort spent marshalling data Some come with..
  5. @djm_ @djm_ 17 STRUGGLE HANDLING MULTIPLE SOURCES ..and others.. 1.

    On disk & remote data handled differently 2. No standard representation of data 3. No common way to query/filter/sort data 4. Lotsa plumbing and I’m not Mario
  6. @djm_ @djm_ 24 NODES HAVE HIERARCHY FILE NODE MD NODE

    Parent: sourced Child: transformed
  7. @djm_ @djm_ 29 PUBLIC APIS ..let us interact with nodes

    CREATION sourceNodes createPages ..etc MUTATION onCreateNode onCreatePage ..etc