Enterprise

Cloudflare heads effort to make JavaScript environments interoperable

Comment

Cloudflare headquarters in San Francisco
Image Credits: Michael Short/Bloomberg / Getty Images

Cloudflare today announced that it’s collaborating with Deno, the development company behind the eponymous Deno runtime, and individual contributors of the Node.js open source project to create standards that enable developers to write code between Deno, Node.js and Cloudflare’s serverless app platform, Cloudflare Workers. Cloudflare co-founder and CEO Matthew Prince says that the effort will allow the transfer of apps between Workers, Deno and Node.js without the need for a rewrite, a feat that’s presently beyond reach.

“JavaScript is used by millions of developers, and it’s usually the first language they learn. Up until now, JavaScript standards have been wholly focused on the frontend, like the browser,” Prince told TechCrunch in an email interview. “By standardizing the core JavaScript APIs with both the frontend and backend in mind, we can empower frontend developers to have more access than ever to the backend in a way that feels familiar.”

Built on top of Google’s open source V8 JavaScript engine, Node.js is credited with unifying web app development around a single programming language, JavaScript, allowing developers to run scripts server-side to produce dynamic web page content before the page is sent to a user’s web browser. But despite more than a decade in development, Node.js lacks interoperability. Developers have had to rely on tacit knowledge and build tools to share code across the various JavaScript environments.

“The future of JavaScript is universal, the ability to move JavaScript between many environments. That future needs to be intentionally designed,” Myles Borins, a member of the Node.js Technical Steering Committee, the technical governing body of Node.js, said in a statement. “The promise of ‘write once, run anywhere’ will only be possible with collaborative initiatives like the Web-interoperable Runtimes Community Group.”

Cloudflare, Deno and selected Node.js contributors from the Node.js Technical Steering Committee will develop API-based interoperability standards as a part of the Web-interoperable Runtimes Community Group, a group under the World Wide Web Consortium. Together, they’ll aim to make it easier to leverage tools and integrations from the JavaScript community across runtimes, remove platform-specific nuances and allow apps to evolve and change over time without rewrites.

“Deno’s broad ecosystem success can be attributed in large parts to our strict adherence to web platform standards,” Deno software engineer Luca Casonato said in a statement. “We knew from the start that Deno could only be successful if it went all in on browser interoperability — developers and broad ecosystem trends have shown us this bet was right. In addition to our existing standards work with … W3C, we’re excited to be working with Cloudflare and Node.js collaborators on even better runtime interoperability.”

Prince added: “[W]hen JavaScript APIs look, feel, and behave the same across the most popular JavaScript environments (Node, Deno, and Workers), developers win. We aim to free developers from being locked into an environment — moving to a new environment shouldn’t mean rewriting your entire application.”

That, of course, would be beneficial to Cloudflare, which launched the Workers platform out of beta in 2018. A revenue driver for Cloudflare — Workers charges a fee for batches of server-side tasks — more than 450,000 developers have built on the platform and more than three million apps have been launched, according to Prince. Cloudflare is no doubt hoping to up those numbers by convincing dev teams to migrate from other JavaScript environments — particularly in light of the company’s gloomy earnings forecast.

Not-so-coincidentally, Cloudflare also announced today that it’s open sourcing the Workers runtime under the Apache V2 license. The company pitches the move as its answer to vendor lock-in, but it also raises the profile of Workers — serving more or less as free advertising.

“It’s not enough to just write standards down. [By] open sourcing the Cloudflare Workers runtime, we are making these APIs widely available and giving developers an easy way to adopt the new standards,” Prince said. “There are two things developers are hesitant about when adopting any new development platform. The first: they worry about being locked in. No matter how bullish on the technology you are, if you’re betting the future of a company on a development platform, you don’t want the possibility of being held to ransom. And second: as a developer, you want a local development environment to quickly iterate and test your changes. Open sourcing the Workers runtime solves both of these problems by giving developers a standard that can run anywhere, which means both in any hosting environment, and on their local machine for quick testing and iteration.”

More TechCrunch

Temu is to face Europe’s strictest rules after being designated as a “very large online platform” under the Digital Services Act (DSA).

Chinese e-commerce marketplace Temu faces stricter EU rules as a ‘very large online platform’

Meta has been banned from launching features on Facebook and Instagram that would have collected data on voters in Spain using the social networks ahead of next month’s European Elections.…

Spain bans Meta from launching election features on Facebook, Instagram over privacy fears

Stripe, the world’s most valuable fintech startup, said on Friday that it will temporarily move to an invite-only model for new account sign-ups in India, “a tough decision” it’s making…

Stripe curbs its India ambitions over regulatory situation

The 2024 election is likely to be the first in which faked audio and video of candidates is a serious factor. As campaigns warm up, voters should be aware: voice…

Voice cloning of political figures is still easy as pie

When Alex Ewing was a kid growing up in Purcell, Oklahoma, he knew how close he was to home based on which billboards he could see out the car window.…

OneScreen.ai brings startup ads to billboards and NYC’s subway

SpaceX’s massive Starship rocket could take to the skies for the fourth time on June 5, with the primary objective of evaluating the second stage’s reusable heat shield as the…

SpaceX sent Starship to orbit — the next launch will try to bring it back

Eric Lefkofsky knows the public listing rodeo well and is about to enter it for a fourth time. The serial entrepreneur, whose net worth is estimated at nearly $4 billion,…

Billionaire Groupon founder Eric Lefkofsky is back with another IPO: AI health tech Tempus

TechCrunch Disrupt showcases cutting-edge technology and innovation, and this year’s edition will not disappoint. Among thousands of insightful breakout session submissions for this year’s Audience Choice program, five breakout sessions…

You’ve spoken! Meet the Disrupt 2024 breakout session audience choice winners

Check Point is the latest security vendor to fix a vulnerability in its technology, which it sells to companies to protect their networks.

Zero-day flaw in Check Point VPNs is ‘extremely easy’ to exploit

Though Spotify never shared official numbers, it’s likely that Car Thing underperformed or was just not worth continued investment in today’s tighter economic market.

Spotify offers Car Thing refunds as it faces lawsuit over bricking the streaming device

The studies, by researchers at MIT, Ben-Gurion University, Cambridge and Northeastern, were independently conducted but complement each other well.

Misinformation works, and a handful of social ‘supersharers’ sent 80% of it in 2020

Welcome back to TechCrunch Mobility — your central hub for news and insights on the future of transportation. Sign up here for free — just click TechCrunch Mobility! Okay, okay…

Tesla shareholder sweepstakes and EV layoffs hit Lucid and Fisker

In a series of posts on X on Thursday, Paul Graham, the co-founder of startup accelerator Y Combinator, brushed off claims that OpenAI CEO Sam Altman was pressured to resign…

Paul Graham claims Sam Altman wasn’t fired from Y Combinator

In its three-year history, EthonAI has amassed some fairly high-profile customers including Siemens and chocolate-maker Lindt.

AI manufacturing startup funding is on a tear as Switzerland’s EthonAI raises $16.5M

Don’t miss out: TechCrunch Disrupt early-bird pricing ends in 48 hours! The countdown is on! With only 48 hours left, the early-bird pricing for TechCrunch Disrupt 2024 will end on…

Ticktock! 48 hours left to nab your early-bird tickets for Disrupt 2024

Biotech startup Valar Labs has built a tool that accurately predicts certain treatment outcomes, potentially saving precious time for patients.

Valar Labs debuts AI-powered cancer care prediction tool and secures $22M

Archer Aviation is partnering with ride-hailing and parking company Kakao Mobility to bring electric air taxi flights to South Korea starting in 2026, if the company can get its aircraft…

Archer, Kakao Mobility partner to bring electric air taxis to South Korea in 2026

Space startup Basalt Technologies started in a shed behind a Los Angeles dentist’s office, but things have escalated quickly: Soon it will try to “hack” a derelict satellite and install…

Basalt plans to ‘hack’ a defunct satellite to install its space-specific OS

As a teen model, Katrin Kaurov became financially independent at a young age. Aleksandra Medina, whom she met at NYU Abu Dhabi, also learned to manage money early on. The…

Former teen model co-created app Frich to help Gen Z be more realistic about finances

Can AI help you tell your story? That’s the idea behind a startup called Autobiographer, which leverages AI technology to engage users in meaningful conversations about the events in their…

Autobiographer’s app uses AI to help you tell your life story

AI-powered summaries of web pages are a feature that you will find in many AI-centric tools these days. The next step for some of these tools is to prepare detailed…

Perplexity AI’s new feature will turn your searches into shareable pages

ChatGPT, OpenAI’s text-generating AI chatbot, has taken the world by storm. What started as a tool to hyper-charge productivity through writing essays and code with short text prompts has evolved…

ChatGPT: Everything you need to know about the AI-powered chatbot

Battery recycling startups have emerged in Europe in a bid to tap into the next big opportunity in the EV market: battery waste.  Among them is Cylib, a German-based startup…

Cylib wants to own EV battery recycling in Europe

Amazon has received approval from the U.S. Federal Aviation Administration (FAA) to fly its delivery drones longer distances, the company announced on Thursday. Amazon says it can now expand its…

Amazon gets FAA approval to expand US drone deliveries

With Plannin, creators can tell their audience about their latest trip, which hotels they liked and post photos of their travels.

Former Priceline execs debut Plannin, a booking platform that uses travel influencers to help plan trips

Amazon is rolling out its AI voice search feature to Alexa, which lets it answer open-ended questions about content.

Amazon is rolling out AI voice search to Fire TV devices

Redpanda has already integrated Benthos into its own service and has made it the core technology of its new Redpanda Connect service.

Redpanda acquires Benthos to expand its end-to-end streaming data platform

It’s a lofty goal to take on legacy payments infrastructure, however, Forward’s model has an advantage by shifting the economics back to SaaS companies.

Fintech startup Forward grabs $16M to take on Stripe, lead future of integrated payments

Fertility remains a pressing concern around the world — birthrates are down in many countries, and infertility rates (that is, the inability to conceive) are up. Rhea, a Singapore- and…

Rhea reaps $10M more led by Thiel

Microsoft, Meta, Intel, AMD and others have formed a new group to design next-gen interconnects for AI accelerator hardware.

Tech giants form an industry group to help develop next-gen AI chip components