workers-sdk VS workers-rs

Compare workers-sdk vs workers-rs and see what are their differences.

workers-rs

Write Cloudflare Workers in 100% Rust via WebAssembly (by cloudflare)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
workers-sdk workers-rs
27 16
2,241 2,273
8.2% 6.3%
9.9 9.0
4 days ago 7 days ago
TypeScript Rust
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

workers-sdk

Posts with mentions or reviews of workers-sdk. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-09.
  • Discord Bot with Cloudflare AI
    1 project | dev.to | 13 Apr 2024
    Workers
  • Ask HN: Best thing you've made in CLI
    12 projects | news.ycombinator.com | 9 Mar 2024
    https://github.com/cloudflare/workers-sdk/blob/main/packages...
  • Developing your own Chrome Extension - Fetch with a Proxy and Cloudflare Workers (Part 5)
    1 project | dev.to | 3 Mar 2024
    The Wrangler, Cloudflare's Developer Platform command-line interface (CLI), allows you to manage Worker projects and has an in-built Miniflare, which runs an HTTP server.
  • Crafting Observable Cloudflare Workers with OpenTelemetry
    4 projects | dev.to | 14 Feb 2024
    /** * Welcome to Cloudflare Workers! This is your first worker. * * - Run `npm run dev` in your terminal to start a development server * - Open a browser tab at http://localhost:8787/ to see your worker in action * - Run `npm run deploy` to publish your worker * * Learn more at https://developers.cloudflare.com/workers/ */ export interface Env { // Example binding to KV. Learn more at https://developers.cloudflare.com/workers/runtime-apis/kv/ // MY_KV_NAMESPACE: KVNamespace; // // Example binding to Durable Object. Learn more at https://developers.cloudflare.com/workers/runtime-apis/durable-objects/ // MY_DURABLE_OBJECT: DurableObjectNamespace; // // Example binding to R2. Learn more at https://developers.cloudflare.com/workers/runtime-apis/r2/ // MY_BUCKET: R2Bucket; // // Example binding to a Service. Learn more at https://developers.cloudflare.com/workers/runtime-apis/service-bindings/ // MY_SERVICE: Fetcher; // // Example binding to a Queue. Learn more at https://developers.cloudflare.com/queues/javascript-apis/ // MY_QUEUE: Queue; } export default { async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise { return new Response('Hello World!'); }, };
  • Drastically Cut CI Time in an Nx Monorepo with Remote Task Caching: A Step-by-Step Guide
    2 projects | dev.to | 15 Jan 2024
    $ npm create cloudflare@latest using create-cloudflare version 2.9.0 ╭ Create an application with Cloudflare Step 1 of 3 │ ├ In which directory do you want to create your application? │ dir ./apps/worker │ ├ What type of application do you want to create? │ type "Hello World" Worker │ ├ Do you want to use TypeScript? │ yes typescript │ ├ Copying files from "hello-world" template │ ├ Retrieving current workerd compatibility date │ compatibility date 2023-12-18 │ ╰ Application created ╭ Installing dependencies Step 2 of 3 │ ├ Installing dependencies │ installed via `npm install` │ ├ Installing @cloudflare/workers-types │ installed via npm │ ├ Adding latest types to `tsconfig.json` │ skipped couldn't find latest compatible version of @cloudflare/workers-types │ ╰ Dependencies Installed ╭ Deploy with Cloudflare Step 3 of 3 │ ├ Do you want to deploy your application? │ no deploy via `npm run deploy` │ ├ APPLICATION CREATED Deploy your application with npm run deploy │ │ Navigate to the new directory cd apps/worker │ Run the development server npm run start │ Deploy your application npm run deploy │ Read the documentation https://developers.cloudflare.com/workers │ Stuck? Join us at https://discord.gg/cloudflaredev │ ╰ See you again soon!
  • One Worker to Track Them All: Injecting Analytics Scripts into Multiple Websites with Cloudflare Workers
    2 projects | dev.to | 14 Jan 2024
    Except that there is. Cloudflare is pretty great for free SSL certificates and DNS management, but they also offer a free Workers plan. A Cloudflare worker is basically JavaScript code that runs on Cloudflare's edge network and handles HTTP traffic. You can do a lot with workers, including modifying/rewriting HTML responses. You can probably see where this is going: If a worker can modify HTML responses, then it can inject the umami script into every HTML response.
  • Implementing Authorization with Clerk in a tRPC app running on a Cloudflare Worker
    3 projects | dev.to | 17 Sep 2023
    Cloudflare Workers
  • D1: We turned it up to 11
    8 projects | news.ycombinator.com | 19 May 2023
    And what about the DX of using Workers with Pages?

    I tried to use that recently and it was a disaster. I wrote about my experience here:

    https://twitter.com/pierbover/status/1641474067013271552

    I then opened these two issues:

    https://github.com/cloudflare/workers-sdk/issues/2962

    https://github.com/cloudflare/workers-sdk/issues/2964

    I ended up moving the project over to Netlify + Edge functions. I had it all working in like 5-10 mins as it should. Took me two hours to figure out why Workers weren't working in my Pages project, and could never get Workers working properly with my Astro project.

    I think you're working exclusively on the engine of Workers which is really top notch, but Cloudflare really needs to improve the outer layer which affects DX considerably.

  • Cloudflare Workers: Solusi serverless edge function termudah, tercepat, termurah, what else..?
    1 project | dev.to | 16 Apr 2023
  • [HELP] can't deploy my program to cloudflare worker.
    2 projects | /r/CloudFlare | 2 Apr 2023
    If you think this is a bug, please open an issue at: https://github.com/cloudflare/workers-sdk/issues/new/choose ```

workers-rs

Posts with mentions or reviews of workers-rs. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-02.
  • Python Cloudflare Workers
    4 projects | news.ycombinator.com | 2 Apr 2024
    - The speed of the Python interpreter running in WebAssembly

    Today, Python cold starts are slower than cold starts for a JavaScript Worker of equivalent size. A basic "Hello World" Worker written in JavaScript has a near zero cold start time, while a Python Worker has a cold start under 1 second.

    That's because we still need to load Pyodide into your Worker on-demand when a request comes in. The blog post describes what we're working on to reduce this — making Pyodide already available upfront.

    Once a Python Worker has gone through a cold start though, the differences are more on the margins — maybe a handful milliseconds, depending on what happens during the request.

    - There is a slight cost (think — microseconds not milliseconds) to crossing the "bridge" between JavaScript and WebAssembly — for example, by performing I/O or async operations. This difference tends to be minimal — generally something measured in microseconds not milliseconds. People with performance sensitive Workers already write them in Rust https://github.com/cloudflare/workers-rs, which also relies on bridging between JavaScript and WebAssembly.

    - The Python interpreter that Pyodide provides, that runs in WebAssembly, isn't as fast as the years and years of optimization that have gone into making JavaScript fast in V8. But it's still relatively early days for Pyodide, compared to the JS engine in V8 — there are parts of its code where we think there are big perf gains to be had. We're looking forward to upstreaming performance improvements, and there are WebAssembly proposals that help here too.

  • Cloudflare Workers Introduces Connect() API to Create TCP Sockets
    3 projects | news.ycombinator.com | 29 May 2023
    Not yet, but we're working on that https://github.com/cloudflare/workers-rs/pull/324
  • How much Rust work is actually going on at Cloudflare?
    2 projects | /r/rust | 15 Jan 2023
    I'm also in the Workers org but I have had a bit of interaction with Rust. There's some Rust in the Workers runtime using lol-html for HTMLRewriter as well as some tooling and there's the full blown workers-rs framework that I work on, but that's about it for the Rust I work on regularly.
  • std.rs is seeking a new owner
    3 projects | /r/rust | 9 Dec 2022
    I'm an engineer at Cloudflare working on Workers (and a maintainer of workers-rs) and I'd love to help whoever ends up maintaining this get that PR rewriting it in Rust across the line.
  • Workerd : le moteur d’exécution JavaScript / Wasm qui alimente les Workers de Cloudflare …
    9 projects | dev.to | 4 Dec 2022
    GitHub - cloudflare/workers-rs: Write Cloudflare Workers in 100% Rust via WebAssembly
  • Turbopack - The successor to Webpack
    2 projects | /r/programming | 26 Oct 2022
    I never said it was, but thankfully nowadays there are plenty of other tools that are fast enough to keep the dev cycle quick. Personally esbuild is my go-to when I need a bundler but I've grown really fond of SWC native api, we used to use it at work for our wasm build tool for our workers-rs framework.
  • Announcing support for WASI on Cloudflare Workers
    3 projects | /r/rust | 8 Jul 2022
    There's actually a rust framework for Workers https://github.com/cloudflare/workers-rs
  • What's your experience with FaaS and Rust?
    6 projects | /r/rust | 29 Jun 2022
    I'm a maintainer of the of the Cloudflare workers-rs project to allow you to write serverless functions in Rust running as WASM in our V8-based runtime. There's certainly some rough spots (doesn't have complete parity with our default JS runtime apis), but if you're concerned with cold start times and you don't need a full containerized environment I think it's a solid choice.
  • Hey Rustaceans! Got a question? Ask here! (25/2022)!
    13 projects | /r/rust | 20 Jun 2022
    Most likely, it should, we just haven't had the time to fully implement it or add a library to wrap the FFI. Please let us know you need a feature by opening an issue.
  • Warp or Rocket.rs or Actix Web?
    8 projects | /r/rust | 29 May 2022
    I may be biased, as the original project author, but I’d recommend using Cloudflare Workers https://github.com/cloudflare/workers-rs - totally free their with very generous limits.

What are some alternatives?

When comparing workers-sdk and workers-rs you can also consider the following projects:

cloudflare-form-service - A form handling service built using Cloudflare Workers for jamstack websites and apps.

realworld-axum-sqlx - A Rust implementation of the Realworld demo app spec using Axum and SQLx.

Docusaurus - Easy to maintain open source documentation websites.

worker-kv - Rust bindings to Cloudflare Worker KV Stores

blueboat - All-in-one, multi-tenant serverless JavaScript runtime.

boringtun - Userspace WireGuard® Implementation in Rust

Next.js - The React Framework

workers-wasi

kysely - A type-safe typescript SQL query builder

litestream - Streaming replication for SQLite.

website - pglet website

ssr-workers - Rust based Cloudflare Worker with SSR