flatbush VS connect-es

Compare flatbush vs connect-es and see what are their differences.

flatbush

A very fast static spatial index for 2D points and rectangles in JavaScript 🌱 (by mourner)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
flatbush connect-es
5 13
1,374 1,202
- 3.4%
0.0 9.2
3 months ago 8 days ago
JavaScript TypeScript
ISC License 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.

flatbush

Posts with mentions or reviews of flatbush. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-06.
  • Databases are the endgame for data-oriented design
    1 project | news.ycombinator.com | 6 Dec 2023
    > (There are ECS frameworks in JavaScript, which gives you absolutely no control over memory layout and thus completely defeats one of the primary purposes of the pattern.)

    While JS does not provide great support for bit packing complex structs, typed arrays give you quite a bit of control over memory layout for simple numeric types, which is what you usually want for optimal data-oriented code anyway. This is a common technique used in fast JS libs for data visualization, ie:

    https://github.com/mourner/flatbush

    There are also basic operators required for bitarrays, which are useful for ECS and memory-efficient code generally.

  • React Virtualisation from scratch
    5 projects | dev.to | 6 Oct 2023
    using flatbush library instead of rbush which optimise the statically placed element, from the benchmark in the repository it could boost up to 5x the performance of rbush.
  • Load GeoHash data in RAM for querying for Proximity Searches
    1 project | /r/geospatial | 28 May 2023
    But for 500 k points, it's not many. I'd put it in the database tech I was using and hit an API for it. Or like you say, load it into memory and use Mourner's flatbush for a super simple and super fast solution..
  • Flatbush: A fast static spatial index for 2D points and rectangles in JavaScript
    1 project | news.ycombinator.com | 11 Apr 2023
  • Protobuf-ES: The Protocol Buffers TypeScript/JavaScript runtime we all deserve
    14 projects | news.ycombinator.com | 31 Oct 2022
    > At pbf speeds, decoding is usually no longer a bottleneck, but bandwidth might be when comparing with gzipped JSON.

    we were streaming a few hundred datapoints in a dozen flat arrays over websocket at 20-40hz and needed to decode the payload eagerly. plain JSON was a multi-factor speedup over pbf for this case. but it's fully possible i was holding it wrong, too!

    even if your "bottleneck" is rendering/rasterization (10ms), but your data pipe takes 5ms instead of 1ms, it's a real effect on framerate, battery, thermals, etc.

    i'm a big fan of your work! while i have you here, would you mind reviewing this sometime soon? ;)

    https://github.com/mourner/flatbush/pull/44

connect-es

Posts with mentions or reviews of connect-es. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-26.
  • I Reviewed 1,000s of Opinions on gRPC
    2 projects | news.ycombinator.com | 26 Dec 2023
    > However, it's important to note that browser support wasn't a primary focus in gRPC's design. This oversight necessitates an additional component, grpc-web, for browser accessibility. Furthermore, external services often have specific needs like caching and load balancing, which are not directly catered to by gRPC. Adopting gRPC for external services might require bespoke solutions to support these features.

    The article should mention the Connect protocol for web-based Protobuf messaging:

    https://connectrpc.com/

  • Creating the Local First Stack
    2 projects | dev.to | 18 Dec 2023
    We can solve this with a service! Now there are many ways I could have started, but I decided to test out gRPC along the way. This was a mistake. I hoped for the best, but gRPC ended up not being a good choice for the web client. Why? you ask. The gRPC protocol works with all the bells and whistles of http when used server to server, but web clients are not as great. The Javascript client is dependent on http 2.0, and it requires a proxy like Envoy to work with a browser. What's more, I didn't love the structure of the generated web client. So through the process of working on this 'local first stack' I actually got sucked in to a big rabbit hole in making the rpc system work. I ended up going with Connect which is a tool that can create a service from a protobuf service definition, that also talks a simple http 1.1 protocol. What ultimately sold me on this solution as the best is that it also came with a very nice to use web client generation, and even plugs in to my favorite react http helper useQuery.
  • Leveraging Temporal for resilient remote procedure calls (RPC)
    5 projects | dev.to | 18 Oct 2023
    Our stack at Escape is written in multiple languages because each team has specific needs. We use TypeScript for its vibrant ecosystem, Python for cybersecurity research and Go for performance-sensitive tasks. To orchestrate cross-language task orchestration, we first developed a simple request-response protocol over HTTP, but it wasn't sustainable as the Escape codebase grew rapidly. We evaluated several technologies to replace our homegrown protocol, and two emerged as the most promising options: Connect and Temporal. The title gives it away, but the reason is far from obvious
  • Connect RPC – A Better gRPC
    1 project | news.ycombinator.com | 12 Aug 2023
  • Building a modern gRPC-powered microservice using Node.js, Typescript, and Connect
    15 projects | dev.to | 20 Apr 2023
    protobuf messages we’ll configure (@bufbuild/connect-es)
  • TypeScript type safety with GO
    4 projects | /r/golang | 20 Jan 2023
    try https://github.com/bufbuild/connect-web
  • Ask HN: Why isn't JSON-RPC more widely adopted?
    11 projects | news.ycombinator.com | 2 Jan 2023
    As for better gRPC-web, you might want to look into connect-web https://github.com/bufbuild/connect-web
  • When to use gRPC vs GraphQL
    3 projects | /r/grpc | 29 Nov 2022
  • Protobuf-ES: The Protocol Buffers TypeScript/JavaScript runtime we all deserve
    14 projects | news.ycombinator.com | 31 Oct 2022
    They already have! Connect (https://github.com/bufbuild/connect-web) is what you're looking for, as it's grpc-web compatible.
  • Connect-Web: It's time for Protobuf/gRPC to be your first choice in the browser
    10 projects | news.ycombinator.com | 4 Aug 2022
    Ye, fwiw there is an example code size comparison here:

    https://github.com/bufbuild/connect-web/blob/main/packages/c...

    I'm sure someone will chime in on the implementation details, but hopefully others can give it a try with their projects!

What are some alternatives?

When comparing flatbush and connect-es you can also consider the following projects:

virtualised-whiteboard

protobuf-es - Protocol Buffers for ECMAScript. The only JavaScript Protobuf library that is fully-compliant with Protobuf conformance tests.

liwords - A site that allows people to play a crossword board game against each other

grpc-web - gRPC for Web Clients

protoc-gen-validate - Protocol Buffer Validation - Being replaced by github.com/bufbuild/protovalidate

ts-proto - An idiomatic protobuf generator for TypeScript

react-virtualized - React components for efficiently rendering large lists and tabular data

buf - The best way of working with Protocol Buffers.

fastify-autoroutes - fastest way to map directories to URLs in fastify

rbush - RBush — a high-performance JavaScript R-tree-based 2D spatial index for points and rectangles