Starlark Bazel

Open-source Starlark projects categorized as Bazel

Top 23 Starlark Bazel Projects

  1. distroless

    🥑 Language focused docker images, minus the operating system.

    Project mention: Optimizing React Frontend Deployment: Security and Performance Analysis of Docker Base Images | dev.to | 2025-05-20
  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. examples

    Examples for Bazel (by bazelbuild)

    Project mention: Rust in Illumos | news.ycombinator.com | 2024-09-10

    Here you go!

    https://github.com/bazelbuild/examples/tree/main/rust-exampl...

    I wrote all of those examples and contributed them back to Bazel because I've been there...

    Personally, I prefer the Bazel ecosystem by a wide margin over buck2. By technology alone, buck2 is better, but as my requirements were growing, I needed a lot more mature rule sets such as rules OCI to build and publish container images without Docker and buck2 simply doesn't have the ecosystem available to support complex builds beyond a certain level. It may get there one day.

  4. rules_nodejs

    NodeJS toolchain for Bazel.

  5. rules_rust

    Rust rules for Bazel

    Project mention: Static search trees: 40x faster than binary search | news.ycombinator.com | 2024-12-31

    If you're embedding, say, a C library inside of Rust, you can do so via a so-called "build.rs" script [1]. These run at build time so you can do pretty much whatever you want. They're not necessarily pretty, but given that Cargo isn't going to support other languages natively, it's often a less-evil option.

    Then there are build systems that natively support Rust in addition to other languages and know how to plug them together [2] [3] [4]. If you're already using one of these existing tools, then you don't need to roll your own, you can plug it into your existing project.

    Of course if you really are using Makefiles in C you're already living in the wild west, so it's on you to figure out how to add Rust to your projects in that case (or switch to a better build system).

    [1]: https://doc.rust-lang.org/cargo/reference/build-scripts.html

    [2]: https://bazelbuild.github.io/rules_rust/

    [3]: https://buck.build/rule/rust_library.html

    [4]: https://mesonbuild.com/Rust.html

  6. rules_foreign_cc

    Build rules for interfacing with "foreign" (non-Bazel) build systems (CMake, configure-make, GNU Make, boost, ninja, Meson)

  7. rules_python

    Bazel Python Rules

  8. rules_apple

    Bazel rules to build apps for Apple platforms.

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. bazel-skylib

    Common useful functions and rules for Bazel

  11. rules_scala

    Scala rules for Bazel

  12. rules_jvm_external

    Bazel rules to resolve, fetch and export Maven artifacts

  13. rules_js

    High-performance Bazel rules for running Node.js tools and building JavaScript projects

  14. rules_nixpkgs

    Rules for importing Nixpkgs packages into Bazel.

  15. rules_swift

    Bazel rules to build Swift on Apple and Linux platforms

  16. toolchains_llvm

    LLVM toolchain for bazel

    Project mention: Using Bazel to build a new Rust project | news.ycombinator.com | 2024-09-30

    In my previous position, we accomplished this using a "dev docker" (which I covered generally in a previous post: https://blog.fahhem.com/2023/12/dev-onboarding-then-now/) that's based around a specific version of Ubuntu (20.04) so the glibc is tied to that.

    In another project, I used a hermetic C++ toolchain (you can use gcc with https://github.com/f0rmiga/gcc-toolchain/ or clang/llvm with https://github.com/bazel-contrib/toolchains_llvm) that pulled in its own (locked) version of glibc and lld, etc.

  17. bazel-coverage-report-renderer

    Haskell rules for Bazel.

  18. rules_proto_grpc

    Bazel rules for building Protobuf and gRPC code and libraries from proto_library targets

    Project mention: How to Use Unreleased Features in Bazel Rule Sets with git_override | dev.to | 2024-12-30

    bazel_dep(name = "rules_proto_grpc", version = "5.0.1") git_override( module_name = "rules_proto_grpc", remote = "https://github.com/rules-proto-grpc/rules_proto_grpc.git", commit = "d17b5b16c8b12143c6f1b78dabd6bbc228e89b58", strip_prefix = "modules/core", ) bazel_dep(name = "rules_proto_grpc_python", version = "5.0.1") git_override( module_name = "rules_proto_grpc_python", remote = "https://github.com/rules-proto-grpc/rules_proto_grpc.git", commit = "d17b5b16c8b12143c6f1b78dabd6bbc228e89b58", strip_prefix = "modules/python", )

  19. rules_cc

    C++ Rules for Bazel

  20. rules_gitops

    This repository contains rules for continuous, GitOps driven Kubernetes deployments.

  21. rules_ts

    Bazel rules for the `tsc` compiler from http://typescriptlang.org

  22. platforms

    Constraint values for specifying platforms and toolchains (by bazelbuild)

  23. gcc-toolchain

    A fully-hermetic Bazel GCC toolchain for Linux.

    Project mention: Using Bazel to build a new Rust project | news.ycombinator.com | 2024-09-30

    In my previous position, we accomplished this using a "dev docker" (which I covered generally in a previous post: https://blog.fahhem.com/2023/12/dev-onboarding-then-now/) that's based around a specific version of Ubuntu (20.04) so the glibc is tied to that.

    In another project, I used a hermetic C++ toolchain (you can use gcc with https://github.com/f0rmiga/gcc-toolchain/ or clang/llvm with https://github.com/bazel-contrib/toolchains_llvm) that pulled in its own (locked) version of glibc and lld, etc.

  24. bazel-embedded

    Tools for embedded/bare-metal development using bazel

  25. rules_py

    More compatible Bazel rules for running Python tools and building Python projects

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Starlark Bazel discussion

Log in or Post with

Starlark Bazel related posts

  • Base Images: The Secret to Smaller Docker Images

    1 project | dev.to | 2 Feb 2025
  • Using Bazel to build a new Rust project

    2 projects | news.ycombinator.com | 30 Sep 2024
  • Distroless: Language focused Docker images, minus the operating system

    1 project | news.ycombinator.com | 1 Sep 2024
  • An Overview of the Starlark Language

    5 projects | news.ycombinator.com | 5 Jun 2024
  • Cargo Was a Mistake

    1 project | news.ycombinator.com | 28 May 2024
  • Chainguard Images now available on Docker Hub

    3 projects | news.ycombinator.com | 14 Mar 2024
  • Language focused Docker images, minus the operating system

    1 project | news.ycombinator.com | 21 Feb 2024
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 24 May 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →

Index

What are some of the best open-source Bazel projects in Starlark? This list will help you:

# Project Stars
1 distroless 20,501
2 examples 879
3 rules_nodejs 745
4 rules_rust 725
5 rules_foreign_cc 704
6 rules_python 599
7 rules_apple 547
8 bazel-skylib 412
9 rules_scala 375
10 rules_jvm_external 347
11 rules_js 334
12 rules_nixpkgs 330
13 rules_swift 320
14 toolchains_llvm 318
15 bazel-coverage-report-renderer 269
16 rules_proto_grpc 266
17 rules_cc 209
18 rules_gitops 183
19 rules_ts 120
20 platforms 114
21 gcc-toolchain 114
22 bazel-embedded 109
23 rules_py 108

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that Starlark is
the 71st most popular programming language
based on number of references?