npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@arctarus/architect-k8s

v0.0.5

Published

<p align="center"> <img src="https://img.shields.io/npm/v/@arctarus/architect-k8s" /> </p>

Downloads

70

Readme

Kubernetes module for Architect

This is an extension to the Architect framework which allows you to define, validate, and deploy Kubernetes resources in TypeScript. It can scale to hundreds of thousand of resources and allows you to manage entire fleets of clusters in a DRY fashion.

architect-k8s is currently in Alpha and the API surface may change without warning so usage in production is strongly advised against (unless you're crazy, like me).

Features

  • GitOps support (FluxCD implemented, ArgoCD planned)
  • Typed CRDs for in-editor and compile-time validation - never watch your CI fail again! (Thanks to Tommy Chen (@tommy351) for their Kubernetes models library)
  • Helm, Kustomize, and Jsonnet support, including caching - a feature not found on other frameworks - which intelligently caches builds based on their input values, significantly reducing compile time
  • Component system - define your cluster resources in logical units
    • Declare relationships between resources as dependencies which are respected when applying via FluxCD
    • Highly flexible lazy parameter system, reminiscent of Nix's structured configuration tree, allows components to be highly customisable, and reusable

FAQ

  • Why TypeScript? JavaScript/TypeScript is the home of JSON, the language that YAML extends from. It provided the best working experience as WYSIWYG.
  • Aren't there other frameworks that do the same thing? Architect was built specifically to address significant shortfalls in other JavaScript/TypeScript-based frameworks. For example:
    • Pulumi is stateful; is slow, and has too much overhead
    • CDK8s has a lot of overhead with how it manages resources as individual constructs and no caching for build processes
    • Tanka is slow when building thousands of resources with differing configuration, and doesn't support granular caching
    • Kosko is, unfortunately, too opinionated, and offers no caching support
  • What was wrong with Fractal?
    • Fractal was a decent attempt at a framework, but it unfortunately ran into pitfalls surrounding the interactions between Nix and Kubernetes types/Jsonnet. Nix was never really built to handle or validate Kubernetes' complex models.
    • Neither Nix nor Jsonnet were typed, so validation could only occur (slowly) either at compile time or when the manifests were applied to the cluster.
    • The framework was also overengineered and overcomplicated, making use of Go, Nix, and Jsonnet, for different components. Here, we unify everything into TypeScript.

Example

Please see the architect-k8s-template repository for a starting point and a component example. You can use this repository as a template for your own clusters.