Temporal: The Curious Incident of the Wrong Nighttime

This ad is not shown to multipass and full ticket holders
React Summit US
React Summit US 2025
November 18 - 21, 2025
New York, US & Online
The biggest React conference in the US
Learn More
In partnership with Focus Reactive
Upcoming event
React Summit US 2025
React Summit US 2025
November 18 - 21, 2025. New York, US & Online
Learn more
Bookmark
Rate this content

This is the story of how I almost spent a night on the street — because of JavaScript's Date object! We'll dive in and try to understand why that happened, and how to prevent it. Luckily coming soon to a browser near you is Temporal, the JavaScript built-in API that makes this kind of mess-up a thing of the past.

This talk has been presented at JSNation 2025, check out the latest edition of this JavaScript Conference.

FAQ

Temporal is a proposal to add modern date and time handling capabilities directly into JavaScript, rather than relying on external libraries or packages. It aims to improve the standardization and functionality of date and time operations in the language.

Temporal was created to address the pitfalls and limitations of the old JavaScript date object, such as issues with time zones and zero-based months, and to provide a more reliable and intuitive way to handle date and time in JavaScript.

Temporal provides a more robust handling of time zones by allowing developers to work with exact moments in time and wall time independently of time zones. This prevents common errors associated with time zone conversions in the old Date object.

Temporal includes types such as Instant, PlainDate, PlainTime, PlainYearMonth, PlainMonthDay, ZonedDateTime, and Duration, each designed to handle different aspects of date and time with specific purposes and limitations.

As of now, Temporal is available in Firefox. Safari has partial support behind a flag in tech preview, and there are ongoing efforts to implement it in Chrome and Node.js.

Yes, while Temporal aims to replace the old Date object and reduce the need for external libraries, existing libraries like Moment.js and Date.fns can still coexist and may offer additional functionalities over Temporal.

The immutability of Temporal objects ensures that they cannot be accidentally modified by functions or libraries, providing more certainty and preventing unintended side effects in date and time manipulations.

Igalia is involved in the standardization process of Temporal as part of its collaboration with other companies, helping to improve the state of the web platform through open standards.

Yes, there are polyfills available for Temporal, such as those from Full Calendar and js-Temporal, which allow developers to use Temporal features in environments where it is not natively supported yet.

Temporal has strong support for internationalization, allowing developers to handle date and time operations in a way that respects different locales and time zone requirements, reducing errors and improving user experience globally.

 Philip Chimento
Philip Chimento
25 min
12 Jun, 2025

Comments

Sign in or register to post your comment.
Video Summary and Transcription
Speaker's involvement in Temporal proposal and TC39 meetings for JavaScript standardization. Date conversion challenges faced in development. Addressing time zone discrepancies with Temporal to prevent bugs. Exploration of Temporal types and design philosophy. Usage of Java's time zone serialization in JavaScript Temporal. Challenges in implementing Temporal proposal and its transformative potential in ECMAScript.

1. Speaker's Introduction and Work Background

Short description:

Speaker's introduction and work background, involvement in Temporal proposal, and TC39 meetings for standardization of features in JavaScript.

All right. Thank you, everybody. Yeah. I want to mention I almost spent the night on the street. Not really. But you'll hear about that. Thanks for the introduction, Phil. That was very nice. I'm really happy to be here. I'm visiting from Vancouver, Canada. And, yeah, my work is as a JavaScript engine developer at Igalio.

I'm going to talk about Temporal. As you know, Temporal is a proposal to add modern data and time handling to JavaScript. So not as a package or a library, but built into JavaScript everywhere in the language. I'm part of a group working on this proposal. My participation is part of a partnership between Igalio and Bloomberg. We'll be more about that later.

Here's where you can find me right now, I guess. So where do you go if you want to get something built into JavaScript? You participate in standardizing it in TC39. That's what we're doing with Temporal. We meet every two months. Some of the meetings are fully remote. Some of them are in person, remote hybrid. So I want to tell you a story specifically about one TC39 meeting a couple of years ago. We were meeting in Bergen, Norway. I was lucky enough to be able to travel there in person. Funny thing. When I booked my trip there. So I promise this is going somewhere. Of course I needed a place to stay.

2. Speaker's Booking Dilemma and Temporal Experience

Short description:

Speaker's booking issue at a hotel in Bergen due to date conversion challenges and experience with Temporal in JavaScript development.

So I'm at home in Vancouver. I want to book a place. I go to the website of one of Bergen's fine hotel establishments to book a stay. I put in my dates. I want to check in July 10th, check out July 14th. And then I clicked okay. And I got to the confirmation page. And I saw this.

That was not what I asked for. Yeah. I wanted to check in July 9th. I don't want to check in July 9th. I want to check in July 10th. And I want to stay until the 14th. So this cat wants to know what happened and so do I. We can't know for sure because, of course, I didn't go and do a debugging deep dive on this hotel's website.

But I've been working on Temporal for five years. I've seen a lot of the pitfalls that you can make with the old JavaScript date object. I would be willing to bet a small amount of money that I know what happened. So let's pretend we're in the front end of this website. We'll pretend it by starting a REPL in the time zone of my home city, Vancouver. I pick my check-in date from the date picker. We're kind of simulating that here.

3. Handling Date Conversions in Front and Back End

Short description:

Front end converts date to milliseconds, back end processing, and handling date conversion challenges for bookings.

Then the front end converts it to a timestamp in milliseconds for sending to the back end. They probably figured, ah, number of milliseconds. Easy to serialize in JSON. Let's send it. Note the minus one. Yes, months are zero based in the old JavaScript date. Everybody hates that. It's one of the things we fixed in Temporal.

Okay. We send it. All right. So now we are on the back end. We put it in another REPL and put it in Norway's time zone. We receive that number of milliseconds. Turn it into a date object. Get the year, the month, the day. Okay. Looks good so far. And then we book it. Of course, the real hotel back ends don't have a time of check, time of use bug like this, but I'm simplifying.

We serialize that date into a timestamp and send it back to the front end. And, of course, we are very conscientious about our inputs. So we make sure that there's no extraneous time of day. We set the hours, minutes, seconds, et cetera to zero. Maybe you can start to see where this is going. We're in the front end again, back in Vancouver. My time zone, West Coast of Canada, UTC minus eight, receives the number of milliseconds.

4. Addressing Time Zone Discrepancies with Temporal

Short description:

Creating date objects and addressing time zone discrepancies with Temporal to prevent bugs.

Creates a date from it. And wrong day. The problem with the old date, it assumes that you mean in the current time zone. Unless you specifically say UTC. So this midnight timestamp in Norway is three in the afternoon on the previous day in Vancouver. So that's what my browser displayed to me in the confirmation page. So the big question, did I have a place to sleep on July 13th? I emailed the hotel, and I confirmed, yes, I do not actually have to spend my last night in Norway sleeping in the airport lounge or on the street or whatever. They had the right dates on their end. So I think their booking system got it right, which is what would happen in this little back and forth that I showed you. And it was just the confirmation page in my browser that got it wrong. But if I had lived east of Norway instead of west, maybe it would have been the other way around. They would have booked the wrong date but shown me the right date in the confirmation page. So it could have been worse.

Anyway, why am I talking about the old date if I'm building Temporal? So we're building Temporal. It's available in some browsers already, more about that later. It's coming to others soon. It's a built-in library. One of our design goals was to make it difficult to write bugs like this. You should have a type that does what you want to be able to do with that type but no more. Like, if you have a date and you don't care what time it is, you shouldn't run into bugs where it's accidentally 3 o'clock on the previous afternoon. So we had to design things around the understanding like a calendar date with no time is conceptually a different object than a timestamp in milliseconds. So if I were writing this hotel's website with Temporal, I'd use a plain date object. You get this data from your date picker, you create a plain date object, you can serialize it to send it to the backend with two JSON or maybe two string depending on your serialization needs, get it back from the backend, deserialize it, and you get another object that is equal to the first object. And there's no nonsense about this. It's true anywhere in the world. What else is good about it? I said it's built in. So many of you probably include in your various bundles or have included at some point Moment or Luxon or some library like that to achieve the same things that Temporal does. And you can do that, but depending on whether you include the locale data, it could be anywhere from a dozen extra kilobytes to hundreds of extra kilobytes. That's why we want this built into the language. It's immutable and there's strong support for internationalization.

5. Exploring Temporal Types and Design Philosophy

Short description:

Exploring Temporal types: Instant for exact time, Plain Types for date and time representation independently of time zones.

I'm not going to zero in on those right now because we have a short amount of time. Those are other good things about it. I'll give you a little tour of the different types that we have available in Temporal. So I talked a bit about our design philosophy is only be able to do the stuff that you need to be able to do with that type. So you should be able to do more with Temporal than you could with the old date, but with each individual object that you have as part of Temporal, you should be able to do less. You shouldn't be able to do weird things like turning a date without a time into a number of milliseconds. And we're hoping that that makes some of these common mistakes difficult to do by accident.

If you really need to do it, you can figure out how to do it, but it's not right there at your fingertips. So the first type you should know about is Instant. It's an exact moment in time. We sometimes call it an exact time. It's an instantaneous point on the timeline, nanosecond resolution. There's no calendar, no months, weeks, years, or days. No time zone, no daylight saving summer or winter time adjustments, just a mostly increasing number.

Then we have a family of types called the Plain Types. So these represent a date on your wall calendar and a time on the clock on your wall. So sometimes we call them wall time, plain time, wall time. So they represent the date and time where you are independent of the time zone. So there are no winter and summer time adjustments, but unlike Instant, they're not exact moments in time. So a wall time, like you can say November 18th, 2024 at half past 2, that could occur at several different instants, depending on where you are in the world. And then we have a whole family of Plain Types with progressively less information. And so that's so that you can correctly represent the information that you have. So we have Plain Date, you saw that already in my example. This is a very common use case used for not booking the wrong dates in hotels. You have Plain Time, that's a clock time without any specific day.

6. Temporal Types and Code Examples

Short description:

Explanation of Temporal types: Plain Year Months, Plain Months Day, Zone Date Time, and duration type for functionality and code examples.

So you can say, you know, Philips Q&A for temporal starts at 525 p.m. or 1725 if you use a 24-hour clock. We have Plain Year Months, that represents something that, it's a month without a specific day and you could refer to an event that happens occasionally like the June 2025 board meeting. We also specifically have that because it corresponds to an HTML input type, months. That's mainly what people use it for.

Oh yeah, Plain Months Day, it's a calendar date without a year. You can say my birthday is December 15th, which it is, but, you know, I won't tell you how old I am. So you can just celebrate my birthday on December 15th. You don't need to know the year I was born. We have one more exact time type, Zone Date Time. This is just like Instant, it represents an exact moment in time, but it does have a location and a time zone and it does have a calendar. So there are weeks, months, years. It automatically accounts for summer and winter time adjustments. So it has, basically, it's an exact time that has all the information needed to also give you a wall time.

Then there's a duration type. I won't go into that, but, you know, it's used with the other types, arithmetic methods like add and subtract. So you're all here, probably most of you are practicing developers, you want to see the code. I want to write some code. Don't know if I had enough time to do it live, so I prepared it in the slides, but, you know, since it is available in Firefox, maybe if I don't run out of time, we'll go and do it there. I've got a little worked example. I got this from a conference website. It's not the JS Nation website because actually the JS Nation website is really good about time zones and shows you, you know, the local time zone in Amsterdam. And also if you're on the remote track, it shows you your local time zone in your browser. So two thumbs up for whoever did that website. But you know, this was just a static image on this conference's website. So I want to answer the question, you know, okay, there's all these sessions where that I want to attend. Which ones can I attend, you know? Which ones are not while I'm asleep? You know, I live in one of these. I live in the Americas. Do I know when the Australian Eastern Standard Time, 10 o'clock is? I have no idea. You know, I could find it out.

7. Session Timing and Temporal Conversion

Short description:

Planning and executing session schedules based on temporal and time zone considerations for conference attendance.

Most people, if you're like me, you probably plugged that into a search engine and hope that they guess correctly what you want, but, you know, temporal strongly typed approach is perfect for solving this. All right. So here's what we know. We know the two calendar dates that the sessions occur on. We know the start times of the sessions. We know their time zones. We know my time zone. And we know the hours in my local time at which I'm willing to be at my computer. I'm obviously not getting up at, you know, 3 in the morning to go to a conference.

And so here's a bit of pseudocode for each session date for each session. Calculate the exact time of the session start and end on that date. Turn it into my local time in my time zone, and if it's within the hours that I want to be online, then I'll print it out and add it to my calendar. So I think maybe I can, like, unfullscreen this and switch to the browser console. Can you see this? I think it's really small. All right. Here we go. Yeah. Like I said, I wasn't sure how much time I have, so I input it beforehand.

But, you know, we've got our dates of the conference. We create temporal plane dates. We got our sessions. You might ask, like, how on earth do I get from an abbreviation like AEST to this identifier Australia slash Brisbane? You know, AEST is ambiguous. It could mean any number of time zones. These are unambiguous, and you can usually get them from Wikipedia. But yeah. Oh. What'd I do? Oh, no. All right. I'll stick to the code that I put in the presentation so that that doesn't happen again. Cool.

8. Session Availability and Browser Integration

Short description:

Creating session identifiers, handling durations, and time zones for conference attendance. Utilizing APIs for time zone retrieval and comparison methods for session availability. Integration with browsers and upcoming availability in different platforms and engines.

Sorry, everyone. Okay. All right. So this is what you saw in my browser console, basically. You know, we create those identifiers. We create a duration for the session length, and we get my time zone. There's an API to get it from the browser. You know, here's a little function I wrote. You know, I'll get up and be at my computer at maybe 8 o'clock, and I want to turn off my computer by 11 o'clock at night. And so I wrote a little function here to say, oh, I can be online between those times, and we use a compare method.

I won't go into all of the details of the API. I'll show you how it works. Put it all together. I had two loops of that pseudocode. You can see the two loops here with foreach. Calculate the session start in the conference time zone, calculate it in my time zone, check if I can be online at my session start and my session end. And if I can, then print it out. And we get something neat. Put the conference in your calendar at these times.

I wish I could have shown you in Firefox, but such are the vagaries of live demoing. Thanks. All right. So when everybody, of course, wants to know when can I use it. You know, you can already use it in Firefox. It's on caniuse.com and other sites that show you when APIs are available. So Firefox shipped it like just two weeks ago. So that's really cool. Safari has some of it available behind the flag in tech preview. If you want to get it shipped in Chrome and V8 and then from there in Node and stuff, there's actually an opportunity for you to get involved because Chrome is kind of doing their implementation together with the Boa JS engine. And they have a Rust crate called Temporal RS that's accepting contributions.

QnA

Temporal Implementation and Collaboration

Short description:

Opportunities for Rust developers to contribute to Temporal implementation. Collaboration with Igalia for web standards improvement. Availability of Temporal polyfills for immediate use on GitHub and NPM.

So if you like writing Rust code and you want to help two JavaScript engines get up to full implementation of Temporal, it's a great low friction opportunity to contribute. Just go here. GitHub slash Boa dash dev slash Temporal. If you want to learn more, it's fully documented on MDN, the website we all know and love. And I helped write a Temporal cookbook with common recipes that you might want to do using Temporal for all sorts of common tasks. And then I said at the very beginning I was going to come back about what a partnership with Igalia means. So we do a lot of stuff in standards, like trying to get good stuff into JavaScript and the web platform. We love open standards and the web. A lot of this work we do through collaborations with other companies. So if you're interested in collaborating with us on improving the state of the web platform, come talk to me or one of my colleagues. So if you do this sort of stuff, we're one of the maintainers of the Servo Browser, if you heard of that.

So yeah, come up and talk to us. And I see despite the tech hiccup, I'm here ready for questions with a minute to go. Thanks very much, Philip. Cool. So we have some questions come in. The first one, I think, is a really useful one. For people who want to use it right now, do you know a Temporal polyfill that you would use right now? Yeah, there are two that I think are ready to use. One I was involved in so I'll mention that one last. The other one is from Full Calendar. So I think it's called Full Calendar slash Temporal dash polyfill on GitHub. I've talked to one of the people who maintains it. And actually, he helped us find some bugs in the proposal. So that's really cool. The other one I've been involved in and some of the other people involved in the proposal. And we have that up at js dash Temporal slash polyfill, I believe. On GitHub? Yeah, both of those are on GitHub and on NPM. Nice. Nice. Awesome.

Java Influence on JavaScript Temporal

Short description:

Influence of Java Temporal API on JavaScript Temporal. Java's serialization of time zone identifiers adopted in JavaScript Temporal. Historical connection between JavaScript and Java date functions.

And I guess they're probably ESNs. You can sort of import them only if you need to. If you're running Firefox, you don't need to. That kind of... Right. Yeah. Right. Nice.

How much did the Java Temporal API influence this JavaScript one? I would say not directly as in we didn't look at the methods and say, oh, we need to have that method. Because that's how we got the original JavaScript data object. But this is actually a really interesting question.

Because Java actually pioneered a way of serializing time zone identifiers in strings that was not standard. They kind of tacked it on to this string format that everybody understands. And it kind of got out there and people started using it. And we wanted to use it in Temporal as well.

JavaScript Temporal Libraries Evolution

Short description:

Usage of Java's time zone serialization in JavaScript Temporal. Evolution from original Java date function to standardized format. Discussion on the relevance of Luxon, Date.js, and Temporal libraries. Potential for building niche functionalities on top of Temporal.

And we wanted to use it in Temporal as well. Because it's really useful for serializing the time zone that your event is in. And so because they pioneered it, we were actually able to go to the IETF and standardize that string format. And that was a whole journey. I could give a whole separate talk on that and I won't. Is that the Australia slash Brisbane format? Not quite. Yeah, those already existed separately. But you can what Java did was kind of like take that and put it in square brackets after your date and time. And so we did that too. And now it's been standardized. Nice. Nice. I do think it is funny to know that, yeah, the history of JavaScript dates were based on the original Java date function, right? And then all 30 years ago, right? And then Java went, oh, no, that was a mistake and changed it like a year later. And 30 years later, we're finally catching up. Yeah, we're catching up.

OK, so a question about the existing libraries for dates and stuff. Do you feel that Luxon, Date.js have a place now or are they obsolete? What's going on there? Does temporal wipe out a need for all of these? I mean, I wouldn't say that you need to delete them from your code immediately. Doing the job, yeah. The moment maintainers have said, moment, we consider it basically done. And if you want more, go use temporal. I think there's definitely also room for libraries to take tasks that were maybe too niche to be standardized in the language but still might be relatively common and build those on top of temporal. And I expect there's probably some stuff in things like Date.fns that falls into that category. Yeah, that makes sense.

I guess they don't just provide the fixes for the existing date format but also give a nicer way to use it as well. And if you liked that interface, you could probably build it over the top of temporal much easier. Or less code, probably. I'm actually hoping that somebody from the JavaScript developer community will take a look at Date.fns and write a temporal.fns to see what's missing and see what people want to use. If you're out there and you want to learn how temporal works, just rewrite Date.fns for temporal. Do it. Cool, there is a question about errors with string parsing.

Temporal Object Handling and Proposal Challenges

Short description:

String parsing rules in Temporal, handling of invalid objects, and control over data acceptance. Challenges in implementing the Temporal proposal and its impact on JavaScript. Extensive discussions on user needs and the transformative potential of Temporal in ECMAScript.

What happens if there's explicit or invalid objects that you try and pass into temporal? Ah, well, string parsing is its whole... Like either the string is valid or it's not. And the string format has very clear rules on what's valid. So like day 32 of a month is not allowed. We throw on that. You can create temporal objects from property bags. And for those, we give you a bit more control over what's accepted. So you can ask for an exception to be thrown in the case of invalid data, or you can ask for it to be clamped to the right value. Nice. Nice.

So there's some extra bits in there to actually help out in the case of invalid stuff. Cool. And this is a great question, and it kind of speaks to a lot of what we see in getting new stuff into JavaScript, which is what's the most difficult aspects of getting the temporal proposal implemented? And I'll just add on to that. Like it does seem like it's taking quite a long time. And obviously, it's a complicated bit of code to write. But was some of that part of getting the proposal done as well? Yeah, I would say most of it is getting the proposal done. All the work is not code. As for writing the code, once you know what you have to write, it's fairly straightforward code. Not doing any wizardry here.

The hard part is figuring out what people actually want to achieve with their date and time. And yeah, we have kind of discussions, talking to users, talking amongst the people championing the proposal. That takes a lot of the time. And because there are so many tasks that people want to achieve with dates and times, it's the largest proposal that's ever been tried to merge into ECMAScript. It's going to change our lives. It's going to change our lives so much for the better when it gets there. And it's so cool. So there was a lot to discuss. Yeah. Yes. Cool.

Advantages of Temporal Immutability

Short description:

Advantages of Temporal immutability in avoiding unintentional modifications by library functions.

I'm going to go with one last question, because I think we're right at the edge here. And I just... Yeah, I'm going to use this one. What's the advantage of temporal being immutable? That's not what we have with date right now, right? You can change those objects. So what does the immutability give us in temporal? The immutability just basically gives you the certainty that some library function won't modify your date object without you realizing it. Because maybe a library function will say, oh, this returns the object, but also mutates the original object. And you don't realize it, and you think you still have your old object somewhere. And then someone's sleeping on the streets. Yeah. And then you wake up again. Awesome.

Well, thank you so much, Philip. Let's give it one more round of applause for Philip. Excellent talk on that. Thank you. Thank you. Thanks so much.

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.
Full Stack Components
Remix Conf Europe 2022Remix Conf Europe 2022
37 min
Full Stack Components
Top Content
RemixConf EU discussed full stack components and their benefits, such as marrying the backend and UI in the same file. The talk demonstrated the implementation of a combo box with search functionality using Remix and the Downshift library. It also highlighted the ease of creating resource routes in Remix and the importance of code organization and maintainability in full stack components. The speaker expressed gratitude towards the audience and discussed the future of Remix, including its acquisition by Shopify and the potential for collaboration with Hydrogen.
Debugging JS
React Summit 2023React Summit 2023
24 min
Debugging JS
Top Content
Watch video: Debugging JS
Debugging JavaScript is a crucial skill that is often overlooked in the industry. It is important to understand the problem, reproduce the issue, and identify the root cause. Having a variety of debugging tools and techniques, such as console methods and graphical debuggers, is beneficial. Replay is a time-traveling debugger for JavaScript that allows users to record and inspect bugs. It works with Redux, plain React, and even minified code with the help of source maps.
Making JavaScript on WebAssembly Fast
JSNation Live 2021JSNation Live 2021
29 min
Making JavaScript on WebAssembly Fast
Top Content
WebAssembly enables optimizing JavaScript performance for different environments by deploying the JavaScript engine as a portable WebAssembly module. By making JavaScript on WebAssembly fast, instances can be created for each request, reducing latency and security risks. Initialization and runtime phases can be improved with tools like Wiser and snapshotting, resulting in faster startup times. Optimizing JavaScript performance in WebAssembly can be achieved through techniques like ahead-of-time compilation and inline caching. WebAssembly usage is growing outside the web, offering benefits like isolation and portability. Build sizes and snapshotting in WebAssembly depend on the application, and more information can be found on the Mozilla Hacks website and Bike Reliance site.
Webpack in 5 Years?
JSNation 2022JSNation 2022
26 min
Webpack in 5 Years?
Top Content
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. The initial configuration for Webpack can be overwhelming, but it is necessary due to the complexity of modern web applications. In larger scale applications, there are performance problems in Webpack due to issues with garbage collection, leveraging multiple CPUs, and architectural limitations. Fixing problems in Webpack has trade-offs, but a rewrite could optimize architecture and fix performance issues.
Towards a Standard Library for JavaScript Runtimes
Node Congress 2022Node Congress 2022
34 min
Towards a Standard Library for JavaScript Runtimes
Top Content
There is a need for a standard library of APIs for JavaScript runtimes, as there are currently multiple ways to perform fundamental tasks like base64 encoding. JavaScript runtimes have historically lacked a standard library, causing friction and difficulty for developers. The idea of a small core has both benefits and drawbacks, with some runtimes abusing it to limit innovation. There is a misalignment between Node and web browsers in terms of functionality and API standards. The proposal is to involve browser developers in conversations about API standardization and to create a common standard library for JavaScript runtimes.

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
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
Workshop
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
Workshop
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
JavaScript-based full-text search with Orama everywhere
Node Congress 2023Node Congress 2023
49 min
JavaScript-based full-text search with Orama everywhere
Workshop
Michele Riva
Michele Riva
In this workshop, we will see how to adopt Orama, a powerful full-text search engine written entirely in JavaScript, to make search available wherever JavaScript runs. We will learn when, how, and why deploying it on a serverless function could be a great idea, and when it would be better to keep it directly on the browser. Forget APIs, complex configurations, etc: Orama will make it easy to integrate search on projects of any scale.