Fireship · @fireship

I built a JavaScript framework

Uploaded August 16, 2022 · Length 10:11

I built a JavaScript framework

Summary

Creating a JavaScript framework for building websites, comparing popular frameworks, and building a custom solution for a content-driven site.

  • javascript framework
  • web development
  • static site generators
  • spa router
  • jam stack
  • next.js
  • astro
  • content management

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    JavaScript is a nearly perfect

  2. 0:01

    programming language the only thing it's

  3. 0:03

    missing is a good framework for building

  4. 0:05

    websites now I've got a body count like

  5. 0:07

    Will Chamberlain when it comes to

  6. 0:09

    JavaScript Frameworks I've tried nearly

  7. 0:10

    all of them and each one does some nice

  8. 0:12

    tricks but none of them are marriage

  9. 0:13

    material they all have their trade-offs

  10. 0:15

    which I'll explain throughout this video

  11. 0:16

    so you can understand what drives a

  12. 0:18

    developer to the point of Madness where

  13. 0:20

    they're left with no choice but to

  14. 0:21

    create their own JavaScript framework

  15. 0:25

    in my case God told me to do it allow me

  16. 0:28

    to introduce you to Holy JS actually

  17. 0:30

    never mind somebody already took that

  18. 0:32

    name on npm let's go ahead and pivot to

  19. 0:34

    the devil and call it flamethrower I

  20. 0:36

    think that really captures the essence

  21. 0:37

    of JavaScript programming now at this

  22. 0:39

    point you may be wondering if I'm joking

  23. 0:41

    the sad reality is no I did actually

  24. 0:44

    create a game-changing platform for

  25. 0:45

    building blazingly fast highly

  26. 0:47

    interactive experiences on the jam stack

  27. 0:49

    I also raised millions of dollars for my

  28. 0:51

    company flamethrower Inc to Hype it up I

  29. 0:53

    stole 99 of my ideas from other tools

  30. 0:55

    but I'm going to tell you that

  31. 0:56

    everything else sucks give it an MIT

  32. 0:58

    license and then call you out if you try

  33. 1:00

    to steal it so one day I might be as

  34. 1:01

    successful as remix alright that part

  35. 1:03

    was a joke about some Twitter drama but

  36. 1:05

    what I really want to teach you in this

  37. 1:06

    video is the trade-offs between all the

  38. 1:08

    different major JavaScript Frameworks

  39. 1:09

    out there here's the normal flowchart I

  40. 1:11

    would go through when choosing a

  41. 1:12

    framework for a new project the first

  42. 1:14

    question to ask is is the project highly

  43. 1:16

    interactive like are you building an app

  44. 1:18

    with user authentication with all kinds

  45. 1:20

    of data that can be manipulated by the

  46. 1:22

    current user if the answer is no it

  47. 1:24

    sounds like you're building a regular

  48. 1:25

    website AI in which case you don't need

  49. 1:27

    a JavaScript framework life will be much

  50. 1:29

    easier with a static site generator like

  51. 1:31

    Hugo or 11t and if you do end up needing

  52. 1:33

    JavaScript you can always drop in

  53. 1:34

    something like Alpine or petite view as

  54. 1:36

    opposed to a heavyweight framework or an

  55. 1:38

    even better option could be Astro which

  56. 1:40

    generates static HTML but allows you to

  57. 1:42

    bring in interactivity from any

  58. 1:44

    framework as needed now if you are

  59. 1:46

    building a highly interactive app the

  60. 1:47

    next question you might ask is does it

  61. 1:49

    need to be search engine friendly or

  62. 1:51

    does it need to render HTML and data on

  63. 1:53

    a server if the answer is no then just

  64. 1:55

    use your favorite framework to build a

  65. 1:57

    single page application if you don't

  66. 1:59

    need to render content in advance for