Webpack in 5 Years?

What can we learn from the last 10 years for the next 5 years? Is there a future for Webpack? What do we need to do now?

Rate this content
Bookmark
Video Summary and Transcription
The video discusses Webpack's impact on web development over the past decade, highlighting its role in introducing code splitting, on-demand loading, and bundling for server-side applications. Despite new bundlers emerging, Webpack remains a stable choice for many developers due to its large plugin system and proven reliability. The talk mentions that while Webpack is still used in 2024, its initial configuration can be overwhelming due to the complexity of modern web applications. However, learning Webpack can be beneficial as it provides stability and flexibility for existing projects. The speaker acknowledges the performance issues Webpack faces, such as garbage collection and CPU usage, and suggests potential improvements like a simplified plugin system and analytics for user feedback. Looking at the webpack roadmap, the team aims to address these challenges incrementally, despite funding and resource constraints. The possibility of a new architecture for incremental builds is also considered, which could enhance performance and maintainability.
Available in Español: ¿Webpack en 5 años?

FAQ

Webpack is funded and maintained through Open Collective, sponsors, and donations. Tobias Koppers, the creator, works full-time on Webpack as part of his job.

Webpack is considered a stable choice because it has a large ecosystem of plugins, proven reliability over the past decade, and continuous growth in NPM downloads. It is particularly suitable for existing projects that require stability and flexibility.

Webpack is a module bundler for JavaScript applications, created by Tobias Koppers in 2012.

Webpack has significantly influenced web development by introducing code splitting, on-demand loading, and the concept of co-locating style sheets and assets with JavaScript modules. It has also promoted the use of bundlers for server-side processing.

Some key features of Webpack include code splitting, on-demand loading, a flexible plugin system, and the ability to bundle server-side applications.

Critics argue that Webpack's initial configuration can be overwhelming and complex, especially compared to its early days when a simple CLI command was sufficient. The complexity has increased due to the need to integrate various tools and preprocessors for modern web applications.

Webpack faces performance challenges due to its architecture, which is built for flexibility but not optimal for large-scale applications. Issues include garbage collection problems and difficulty leveraging multiple CPUs for computations.

Yes, Webpack is still relevant for new projects, especially if stability and a large ecosystem of plugins are important. However, new bundlers and tools are emerging, offering different features and potentially better performance.

In the next five years, Webpack is expected to remain relevant for existing projects. However, new tools and bundlers may emerge, offering alternatives for new projects. The focus will be on learning from the past decade and addressing current challenges.

Future improvements for Webpack include optimizing default configurations, enhancing customization options, improving performance, and potentially adopting a new architecture for incremental builds.

1. Webpack's Impact and Future#

Short description:

In the last 10 years, Webpack has shaped the way we develop web applications by introducing code splitting, co-locating style sheets and assets with JavaScript modules, and enabling bundling for server-side processing. Webpack's flexibility and large plugin system have also contributed to innovation in the ecosystem. While Webpack may not be the most hyped bundler, it remains a solid choice for stability, flexibility, and a wide range of use cases. Looking to the future, Webpack is likely to continue being used for existing projects, but new projects may have other choices. The lessons learned from 10 years of Webpack can guide future tools and improvements. However, due to time constraints, not all lessons can be covered in this talk, but they are available in the presentation slides.

So, my title is actually Webpack in Five Years, but actually that's only a click bait, so I looked you in. will talk about the last 10 years of Webpack and what we can learn for Webpack and for the community as a whole and for the ecosystem about these last 10 years. What mistakes we made, what problems we have, and what we can do better.

Oh, come on. So, my name is Tobias Koppers and I created Webpack in 2012, like 10 years from now, so maintenance, maintaining it for 10 years and I started with maintaining it for five years in part time, like 10 hours per week, and then I migrated to full time working on Webpack funded from Open Collective, from sponsors, donations and stuff like that, and now I work more than one year for And maintain it as part of my job. I also have two children, five and three years, and live in Germany in Bavaria, so nearby a little bit.

So 10 years of Webpack, I think we should celebrate that and it's actually a pretty long time for the web ecosystem, like 10 years, in web years it's like hundreds of years or so, and I think we can say that we at least shape the ecosystem a little bit and I try to find four things that we, I think Webpack shaped the way we develop web applications. So one thing, why I started Webpack was to add code splitting to bundlers and on-demand loading and I think that's something that has been established in the community since then and I think that it's there to stay here and nowadays, every bundler is coming with code splitting on-demand loading and nearly everyone is using something like that. Another thing we did promote or embrace is having this idea of combining, co-locating your style sheets, your assets and your other non-JavaScript stuff with your JavaScript modules. So it's like having one graph of your application where everything is imported by each other and I think that's also something that will stay in the community and even specs involved like CSS modules spec and other things that embrace it and keep that in the ecosystem forever. And another little bit smaller thing is that we also learn to use like bundlers or pre-processing tools for server-side processing or Node.js. So often in an application that using Webpack and server-side rendering and stuff like that, then we also bundle our application on server-side, so that something that wasn't there before Webpack, probably because we didn't need that, but I think that's also something that will probably stay in the community at least for a while and another larger thing that I think Webpack embraced is flexibility. Webpack started with really a flexible way, a large plugin system with huge abilities to extend and configure and customize your build and I think that's something that really embraced the innovation in the ecosystem and new solution, new ideas can be developed combined with Webpack and also shapes new ideas in the ecosystem. So I think that's pretty good. But nowadays Webpack isn't the most hyped Bundler anymore, it's like more boring tools, maybe the stable choice or the choice if you already have something with Webpack, but in the Twitter ecosystem also, it's a hype-based development team, there are new Bundlers that come up, or new non-bundling tools that are pretty hyped and make good things, and probably everyone has a feature that's better than something in Webpack, and maybe performance or optimizing or something, so that's pretty much the hyped kind of things coming up. And I still think Webpack is still the solid choice when you want to have something that is really stable or really flexible, and maybe covers a lot of use cases, or you have a lot of ecosystem plugins you want to use. And actually, I looked at the NPM downloads, and Webpack is still growing, so it's not that it's declining or something that's happening here, but yes, we see that there is a lot of new stuff coming up in the ecosystem.

So, what does the future look like for Webpack and for the ecosystem in general? Will Webpack still be used in five years? I think yes, at least for existing projects, because, like, companies, teams, don't change the stack so often, it's more like they use stuff for more years than we can think of. Actually, people are still using Webpack 2, which is five years old, and they don't mind not upgrading stuff for a long time, if it's working, and I think it's deemed to work, at least. For new projects, there's another choice. I don't know what is happening in five years. It could be that something new is developed that might be better, or there are obvious other choices you can use and start with new projects. What happens in five years, I don't know. It's a really long time in the ecosystem. I decided to recap about the last ten years of Webpack and check what lessons we can learn from these ten years, and what we can, I can think what we can keep from Webpack, ten years of Webpack for the ecosystem and for Webpack in general. So, yeah. I also want to say what we can do now or we can do in future tools on Webpack to fix these problems or to keep these lessons learned. The problem is there are so many lessons I collected preparing this talk that they actually don't fit in this talk. It's a hybrid conference, but what I did was prepared hundreds of slides for all this stuff and I showed them a split second and the remote audience can pause the stream and read all this stuff and see you in one hour after I discuss the important ones with the live audience. So the first one, initial configurations.

2. Webpack Configuration and Customization#

Short description:

The initial configuration for Webpack can be overwhelming, but it is necessary due to the complexity of modern web applications. Adapting to the ecosystem and having customizable defaults can help improve the development experience. Customization is important for both individual projects and the overall ecosystem, allowing for innovation and unblocking users. However, the current customization options in Webpack can be confusing, and the extensive API surface makes it difficult to iterate and maintain. To address these challenges, a simplified plugin concept and the inclusion of analytics for user feedback could be beneficial. Additionally, performance is an area where Webpack lags behind its competitors due to its use of Node.js.

So currently people often think that the initial configuration you need to get started with the project is too overwhelming, too large, too much stuff needed, and actually it didn't used to be that way in Webpack. When Webpack started you didn't need any configuration, it's just working with like a simple CLI command, but it actually was that we five years ago, we didn't develop that complex Web applications. Like nowadays everyone needs to use CSS, JavaScript, assets, they want to process image optimizing, they want JavaScript dialect like TypeScript or want to use stage three features that need to be transpiled for older bosses. They want to integrate extra compilers for their framework like React comes with JSX syntax, Svelte comes with a different compiler to compile the templates, Angular has like a preprocessing step for the production bits. Vue also has this cool single components, single file components which need to be processed. So there was a lot of tools added to like the web applications and Webpack didn't adapt to that a little bit, so it's kept having not really low defaults that are used that way.

So what can we do to fix that? Clickers not good. So I think we should be more optimized, in having defaults so we should adapt with the ecosystem. I also think we should acknowledge the fact that these defaults change over time, like ten years from now, maybe five years from now, we have probably very different defaults than we now have. What I think we can do is like having something, what some people already do, is having presets that are versionised with dependencies, so we can slowly adapt with the ecosystem, but also keep your project locked in a certain version of defaults without having a lot of breaking changes.

Another topic is customising. So I think customising is really important, and also really important for the ecosystem, even if you're not directly using it for your project, because it embraces this innovation concept of the ecosystem where you can look, like you have a cool idea and can write a plugin for your bundler and for your tooling, and, like, try it out, maybe publish it to npm, and let people use it, maybe it becomes the new standard we develop applications in the future. But it also helps to unblock users. If you're struggling with something that Bundler doesn't support, or your tool doesn't support, then you can actually go into modify, write a plugin, or customise the configuration to, like, have your use case, like, doing what you do, and actually get stuck with Bundler, and maybe have to switch because it doesn't support something. I also think that was one success factor of Webpack in the early days, and maybe also nowadays that it really has this idea of flexibility and customising and stuff like that. And, but it also is confusing in some kind of things, like, there are three levels of customising. You have configuration, you have plugins, you have loaders. It is really complicated when you have to use the plugin loader combination with some configuration to do something, so it can be confusing. Another thing is that the API is, you can extend everything in Webpack. You have access to all the internals in Webpack. That's a problem because we don't know what is actually used. We can't change anything in our internal API, and that is really hard for us and also like makes easy to break stuff because it could change internals and that's weird. Yes. So, what can we do? So, what can we do? I think the idea is we shouldn't have this kind of plug in concept. I think it should only be like one plug in type which maybe has multiple levels of APIs. Like you have like a low level API and a higher level API where you can access both of these APIs from one single plug in and that would make it easier for people to use. Also makes the API surface more constrained to like only expose what we actually know is use by plug ins and don't expose all the internals which makes it hard for us to iterate on internals. What would also help, but it's really difficult to embrace in the communities like having some analytics where we actually get feedback from the user, maybe automated or maybe by opt in or something like that, where you can report what are the actually APIs used by plug ins so we can know what we should improve or what we can drop or duplicate in the future.

Another really large topic is performance. So like most competitors excel in performance because they are written in native languages and compared to Webpack, which is Node.js, Webpack is really bad at performance.

3. Performance and Architecture Challenges#

Short description:

In larger scale applications, there are performance problems in Webpack due to issues with garbage collection, leveraging multiple CPUs, and architectural limitations. To address these challenges, it would be beneficial to have an incremental processing and optimized architecture that scales with application size. Embracing a lazy-computated approach and ensuring incremental builds across different environments can also improve performance. However, it is difficult to fix these issues in Webpack without breaking the ecosystem and losing adoption. Consideration can be given to creating a new bundler with a redesigned architecture, but this approach has trade-offs and would require a significant migration effort.

It doesn't used to be the way. So if ten years ago nobody or less people complained about performance and it was fine. But at least in larger scale there are problems with performance because of reasons. Probably the most problematic stuff is that we are struggling with garbage collect a lot because of large model graphs which create a lot of objects and that is bad and using Javascript makes it difficult to leverage multiple CPUs to do computations. But there are also architectural problems. Our architecture is really built for flexibility. On each compilation we built up everything from the start. We have the best ability for plugins, the easiest way for plugins to make their changes but that is not the best architecture for performance. It would be really better to have some kind of incremental processing, optimised architecture.

So what we need to do, what we should do, but it is really difficult to fix that in Webpack is better it would be to use a native language, so that we can leverage multiple CPUs and also start with architecture that have this incremental build by design, like having it not depend on application size. It also brings me to the next point that is large-scale applications. Like, actually applications get bigger and bigger and that is a problem because the performance problems in Webpack are really exposed, because in Webpack, it is kind of fast for incremental build, but a little bit, it scales by application size and that gets more serious when the application grows, and there are workarounds where you can split your applications in multiple small applications, or even something like lazy compilation where you only compile on development what you're actually using. That helps, but there are workarounds, and if we have an architecture that would scale with applications in a better way.

What I think we should do is, like, lazy must be default for the future, like everything should be lazy-computated and lazy just scales better with large applications, because then you probably don't work on the whole application at once, like we work on parts of that, and if you only need to compile that part, then the large scale of the application doesn't become so serious. And, yeah, what I always say, we should embrace an architecture where the incremental performance doesn't scale with the application size, it should be constant at all this, and it should be fast always. That would be great. I also think, like, if you embrace incremental stuff, you should also embrace it on everywhere, like production build should be incremental on CI, it should be incremental, dev build should be incremental, which they are, but we should be incremental everywhere, and we should also have less ways to opt out of incrementally, like, if you change the parentheses, why does it have to reset the cache? It should keep being incremental. That would be cool.

So, back to the slides. Okay, so, these problems with performance and architecture, we can't really change that in Webpack. We can't refactor the whole architecture and rewrite in the native language that would break every plugin, every loader, every user, and maybe every in-style processor and stuff like that. So, it actually would make more sense to create a new stuff which would maybe WhoopPack or something, and that would have this new architecture. But there are trade-offs with that, and I try to summarise it a little bit. So, what fixing problems, we have a rewrite, does it make sense? So, when we fix the problems, we actually would keep the ecosystem, the trust, and the adoption of Webpack, while a rewrite would lose all the ecosystem, the plugins and loaders would be lost on this rewrite, and we need to regain adoption for Webpack, and, yes, that is hard, and it would take more than five years, probably, and it is also hard to make a migration for users to migrate to something like Webpack. Yes. But on the other side, we can't fix everything in Webpack, what we learnt, we can't change the architecture, we can't constrain the API surface, because it would also break all the So, it is impossible to fix some problems in existing Webpack.

QnA

Trade-offs and Recommendations#

Short description:

Fixing problems in Webpack has trade-offs. A rewrite would lose the ecosystem and require regaining adoption, while fixing problems has the risk of breaking users. However, a rewrite could optimize architecture and fix performance issues. It is hard to do a rewrite and would take years, while fixing problems can be done incrementally with direct benefits for users. Trade-offs exist. As for questions, starting new React projects with Webpack is recommended for stability, but it depends on personal preference. Webpack brings a large ecosystem and prebuilt solutions for React development.

But there are trade-offs with that, and I try to summarise it a little bit. So, what fixing problems, we have a rewrite, does it make sense? So, when we fix the problems, we actually would keep the ecosystem, the trust, and the adoption of Webpack, while a rewrite would lose all the ecosystem, the plugins and loaders would be lost on this rewrite, and we need to regain adoption for Webpack, and, yes, that is hard, and it would take more than five years, probably, and it is also hard to make a migration for users to migrate to something like Webpack. Yes. But on the other side, we can't fix everything in Webpack, what we learnt, we can't change the architecture, we can't constrain the API surface, because it would also break all the So, it is impossible to fix some problems in existing Webpack. While in rewrite, we could optimise our architecture for incremental builds, we could fix these deeper problems on the performance side, but is it worth it? I don't know. That's a good question. Yes, on the other side, like, fixing problems could also, like, fixing the larger problems also has also a little bit of risk of breaking users while rewriting would break, like, every user, obviously. Actually, it wouldn't break users. You could keep using Webpack and migrate to Webpack later, so it makes sense. It is also hard to do a rewrite because it would like take maybe years to rewrite everything. You have like the same abilities of Webpack while in fixing problems in Webpack, it would make smaller steps towards the process and like make direct benefits for the users and that can also be done with a smaller team and rewriting would be complicated. So trade-offs, as always. So thank you. I guess we have some questions? Thank you. So for those of you who have questions, don't forget you can go to slide.do and enter the code 1620 to ask your questions and then I can ask them to Tobias right here. So first question is from Ro. Would you recommend starting new React projects with Webpack and if yes, why? Yeah, I would recommend that because I created Webpack. I think it's like a matter of flavor, I guess. So Webpack is probably the solid choice, a good choice if you want to have a stable choice. You can start with other bundles. I actually don't know what are the limitations of them. So you could run into something and they are younger, so you can start with them. And I guess you can also always start with something else and then change the stack later. So it's like fee-fee. So the answer is, as a proper developer says, it depends. So for the people that want to go to the other track for the next talk. You can switch now because we're going to start that in a few minutes. And you can of course stay here also. And next question is from Rob also, why should you use React? Why? Why should you use Webpack as a React developer? So what benefit does Webpack bring you as a React developer? Yeah, it has a lot of ecosystem, and you have had large prebuilt solutions for React. So you can just start with a boilerplate or with tools that exist in the ecosystem.

Getting Started and Future Improvements#

Short description:

Webpack is easy to get started with and has been a proven technology for many years. While there is no official roadmap, the team is continuously working to improve the ecosystem and address challenges incrementally. Funding and limited resources can be a challenge, but the open-source community plays a crucial role in the project's success. Webpack is open to learning from and collaborating with other building tools in the web ecosystem. The Q&A session has ended, but further discussions can be continued in the monetization of open-source discussion room and the speaker lounge.

It's easy to get started with Webpack. And it also works well, I think. And it used to work well for like five years or so. So I guess it's a good choice and makes sense. It's a proven technology. Yeah, proven technology. All right.

An anonymous question. The ideas of solving Webpack issues sound great. Does a roadmap exist for currently implementing those, and should we expect more improvements in future versions? Yeah, we don't have a roadmap, an official roadmap, so it's like we never had one. It's more like we do what we think is currently best for the ecosystem. So it's like we're trying to improve those problems incrementally, and that's basically a roadmap. And yeah, I summarized these challenges and problems in the talk, and I guess we can fix some of these problems right now. And many of them are kind of not that complicated to fix, like making defaults is something we could do. So I think that's going to be happen probably. Someday soon. Someday soon, yeah. But we don't have timelines, or we never had timelines for everything because it's like great pressure, and we don't want to have this pack-out. It's an open source project, and many, most of the contributors are working on free time on that. So it's not something that we want to create deadlines and it's no need to have deadlines for us. It's like-

So beside you, how many people work on Webpack full-time? Yeah, not that many. It's like two people working full time on Webpack. So me and somebody else. But it's a little bit problematic because like we also have less funding last time. So it's like, it's the winter for JavaScript ecosystem mostly, and yeah it might be a problem in the future that we have two small teams to make larger improvements. Yeah, it's weird that basically 9 out of 10 companies run on Webpack and you have to run from open source contribution space. Yeah, that's the problem. So I think open source has a really hard time to get funded and I guess there's also a discussion about that today, so feel free to join me there. Alright.

I think we're gonna do one last question. Question is from Thomas. Where do you see yourselves standing against new building tools leveraging new browser features like feats? I think we will do something to make similar choices. So actually, probably we copy or steal stuff from new bundles, so it's not criminal. I think that's the benefit of the open-source ecosystem, you're actually allowed to steal or copy stuff. I also think these tools copied a lot from Webpack so it's not that there's only one way. I think more like an ecosystem, the Web ecosystem, and we all benefit from these competitors and we benefit as ecosystem as a whole from these developments and new ideas and new technologies emerge, that all will benefit from them. Yeah I guess that's a good way to go about it, you have to share from each other. That was all the time we have for Q&A, if you want to continue the conversation you can go to the monetization of open-source discussion room and right now you're going to go to the speaker lounge where people can also continue. See you there.

Tobias Koppers
Tobias Koppers
26 min
16 Jun, 2022

Comments

Sign in or register to post your comment.

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

Scaling Up with Remix and Micro Frontends
Remix Conf Europe 2022Remix Conf Europe 2022
23 min
Scaling Up with Remix and Micro Frontends
Top Content
This talk discusses the usage of Microfrontends in Remix and introduces the Tiny Frontend library. Kazoo, a used car buying platform, follows a domain-driven design approach and encountered issues with granular slicing. Tiny Frontend aims to solve the slicing problem and promotes type safety and compatibility of shared dependencies. The speaker demonstrates how Tiny Frontend works with server-side rendering and how Remix can consume and update components without redeploying the app. The talk also explores the usage of micro frontends and the future support for Webpack Module Federation in Remix.
React Compiler - Understanding Idiomatic React (React Forget)
React Advanced 2023React Advanced 2023
33 min
React Compiler - Understanding Idiomatic React (React Forget)
Top Content
Watch video: React Compiler - Understanding Idiomatic React (React Forget)
Joe Savona
Mofei Zhang
2 authors
The Talk discusses React Forget, a compiler built at Meta that aims to optimize client-side React development. It explores the use of memoization to improve performance and the vision of Forget to automatically determine dependencies at build time. Forget is named with an F-word pun and has the potential to optimize server builds and enable dead code elimination. The team plans to make Forget open-source and is focused on ensuring its quality before release.
Speeding Up Your React App With Less JavaScript
React Summit 2023React Summit 2023
32 min
Speeding Up Your React App With Less JavaScript
Top Content
Watch video: Speeding Up Your React App With Less JavaScript
Mishko, the creator of Angular and AngularJS, discusses the challenges of website performance and JavaScript hydration. He explains the differences between client-side and server-side rendering and introduces Quik as a solution for efficient component hydration. Mishko demonstrates examples of state management and intercommunication using Quik. He highlights the performance benefits of using Quik with React and emphasizes the importance of reducing JavaScript size for better performance. Finally, he mentions the use of QUIC in both MPA and SPA applications for improved startup performance.
SolidJS: Why All the Suspense?
JSNation 2023JSNation 2023
28 min
SolidJS: Why All the Suspense?
Top Content
Suspense is a mechanism for orchestrating asynchronous state changes in JavaScript frameworks. It ensures async consistency in UIs and helps avoid trust erosion and inconsistencies. Suspense boundaries are used to hoist data fetching and create consistency zones based on the user interface. They can handle loading states of multiple resources and control state loading in applications. Suspense can be used for transitions, providing a smoother user experience and allowing prioritization of important content.
From GraphQL Zero to GraphQL Hero with RedwoodJS
GraphQL Galaxy 2021GraphQL Galaxy 2021
32 min
From GraphQL Zero to GraphQL Hero with RedwoodJS
Top Content
Tom Pressenwurter introduces Redwood.js, a full stack app framework for building GraphQL APIs easily and maintainably. He demonstrates a Redwood.js application with a React-based front end and a Node.js API. Redwood.js offers a simplified folder structure and schema for organizing the application. It provides easy data manipulation and CRUD operations through GraphQL functions. Redwood.js allows for easy implementation of new queries and directives, including authentication and limiting access to data. It is a stable and production-ready framework that integrates well with other front-end technologies.
Jotai Atoms Are Just Functions
React Day Berlin 2022React Day Berlin 2022
22 min
Jotai Atoms Are Just Functions
Top Content
State management in React is a highly discussed topic with many libraries and solutions. Jotai is a new library based on atoms, which represent pieces of state. Atoms in Jotai are used to define state without holding values and can be used for global, semi-global, or local states. Jotai atoms are reusable definitions that are independent from React and can be used without React in an experimental library called Jotajsx.

Workshops on related topic

Master JavaScript Patterns
JSNation 2024JSNation 2024
145 min
Master JavaScript Patterns
Top Content
Featured Workshop
Adrian Hajdin
Adrian Hajdin
During this workshop, participants will review the essential JavaScript patterns that every developer should know. Through hands-on exercises, real-world examples, and interactive discussions, attendees will deepen their understanding of best practices for organizing code, solving common challenges, and designing scalable architectures. By the end of the workshop, participants will gain newfound confidence in their ability to write high-quality JavaScript code that stands the test of time.
Points Covered:
1. Introduction to JavaScript Patterns2. Foundational Patterns3. Object Creation Patterns4. Behavioral Patterns5. Architectural Patterns6. Hands-On Exercises and Case Studies
How It Will Help Developers:
- Gain a deep understanding of JavaScript patterns and their applications in real-world scenarios- Learn best practices for organizing code, solving common challenges, and designing scalable architectures- Enhance problem-solving skills and code readability- Improve collaboration and communication within development teams- Accelerate career growth and opportunities for advancement in the software industry
Integrating LangChain with JavaScript for Web Developers
React Summit 2024React Summit 2024
92 min
Integrating LangChain with JavaScript for Web Developers
Featured Workshop
Vivek Nayyar
Vivek Nayyar
Dive into the world of AI with our interactive workshop designed specifically for web developers. "Hands-On AI: Integrating LangChain with JavaScript for Web Developers" offers a unique opportunity to bridge the gap between AI and web development. Despite the prominence of Python in AI development, the vast potential of JavaScript remains largely untapped. This workshop aims to change that.Throughout this hands-on session, participants will learn how to leverage LangChain—a tool designed to make large language models more accessible and useful—to build dynamic AI agents directly within JavaScript environments. This approach opens up new possibilities for enhancing web applications with intelligent features, from automated customer support to content generation and beyond.We'll start with the basics of LangChain and AI models, ensuring a solid foundation even for those new to AI. From there, we'll dive into practical exercises that demonstrate how to integrate these technologies into real-world JavaScript projects. Participants will work through examples, facing and overcoming the challenges of making AI work seamlessly on the web.This workshop is more than just a learning experience; it's a chance to be at the forefront of an emerging field. By the end, attendees will not only have gained valuable skills but also created AI-enhanced features they can take back to their projects or workplaces.Whether you're a seasoned web developer curious about AI or looking to expand your skillset into new and exciting areas, "Hands-On AI: Integrating LangChain with JavaScript for Web Developers" is your gateway to the future of web development. Join us to unlock the potential of AI in your web projects, making them smarter, more interactive, and more engaging for users.
Using CodeMirror to Build a JavaScript Editor with Linting and AutoComplete
React Day Berlin 2022React Day Berlin 2022
86 min
Using CodeMirror to Build a JavaScript Editor with Linting and AutoComplete
Top Content
WorkshopFree
Hussien Khayoon
Kahvi Patel
2 authors
Using a library might seem easy at first glance, but how do you choose the right library? How do you upgrade an existing one? And how do you wade through the documentation to find what you want?
In this workshop, we’ll discuss all these finer points while going through a general example of building a code editor using CodeMirror in React. All while sharing some of the nuances our team learned about using this library and some problems we encountered.
Testing Web Applications Using Cypress
TestJS Summit - January, 2021TestJS Summit - January, 2021
173 min
Testing Web Applications Using Cypress
Top Content
WorkshopFree
Gleb Bahmutov
Gleb Bahmutov
This workshop will teach you the basics of writing useful end-to-end tests using Cypress Test Runner.
We will cover writing tests, covering every application feature, structuring tests, intercepting network requests, and setting up the backend data.
Anyone who knows JavaScript programming language and has NPM installed would be able to follow along.
React Server Components Unleashed: A Deep Dive into Next-Gen Web Development
React Day Berlin 2023React Day Berlin 2023
149 min
React Server Components Unleashed: A Deep Dive into Next-Gen Web Development
Workshop
Maurice de Beijer
Maurice de Beijer
Get ready to supercharge your web development skills with React Server Components! In this immersive, 3-hour workshop, we'll unlock the full potential of this revolutionary technology and explore how it's transforming the way developers build lightning-fast, efficient web applications.
Join us as we delve into the exciting world of React Server Components, which seamlessly blend server-side rendering with client-side interactivity for unparalleled performance and user experience. You'll gain hands-on experience through practical exercises, real-world examples, and expert guidance on how to harness the power of Server Components in your own projects.
Throughout the workshop, we'll cover essential topics, including:- Understanding the differences between Server and Client Components- Implementing Server Components to optimize data fetching and reduce JavaScript bundle size- Integrating Server and Client Components for a seamless user experience- Strategies for effectively passing data between components and managing state- Tips and best practices for maximizing the performance benefits of React Server Components
0 to Auth in an Hour Using NodeJS SDK
Node Congress 2023Node Congress 2023
63 min
0 to Auth in an Hour Using NodeJS SDK
WorkshopFree
Asaf Shen
Asaf Shen
Passwordless authentication may seem complex, but it is simple to add it to any app using the right tool.
We will enhance a full-stack JS application (Node.JS backend + React frontend) to authenticate users with OAuth (social login) and One Time Passwords (email), including:- User authentication - Managing user interactions, returning session / refresh JWTs- Session management and validation - Storing the session for subsequent client requests, validating / refreshing sessions
At the end of the workshop, we will also touch on another approach to code authentication using frontend Descope Flows (drag-and-drop workflows), while keeping only session validation in the backend. With this, we will also show how easy it is to enable biometrics and other passwordless authentication methods.
Table of contents- A quick intro to core authentication concepts- Coding- Why passwordless matters
Prerequisites- IDE for your choice- Node 18 or higher