This project was created by a developer from Ukraine.

Russia has invaded Ukraine and already killed tens of thousands of civilians, with many more raped or tortured.

The death toll keeps climbing. It's a genocide. We need your help. Let's fight back against the Russian regime.

Support Ukraine

#StandWithUkraine

This project was created by a developer from Ukraine.

Russia has invaded Ukraine and already killed tens of thousands of civilians,

with many more raped or tortured. It's a genocide. We need your help.

Support Ukraine

#StandWithUkraine

wyhaines
Kirk Haines
33 repositories
Veteran, Wyoming @newrelic
Polyglot, Passionate Ruby Guy (since 2001; former Ruby 1.8.6 maintainer). Distributed systems, internals, full stack, C.

defined.cr

This shard provides facilities for checking whether a constant exists at compile time, and for a variety of different conditional compilation options. Code can be conditionally compiled based on the existence of a constant, version number constraints, or whether an environment variable is set truthy or not.

  • 15
  • 1
  • 0
  • 23 days ago

csuuid.cr

This is a small UUID library that implements a chronologically sortable UUID.

  • 12
  • 1
  • 0
  • 2 months ago

Send.cr

This shard implements a usable dynamic dispatch function for Crystal code, modeled on the Ruby #send function of the same name.

  • 11
  • 1
  • 7
  • 6 months ago

tracer.cr

This library implements a method call tracing facility that can be used to generate either summary or detailed logs of method calls, or to inject arbitrary code execution into method calls.

  • 9
  • 0
  • 1
  • 2 months ago

splay_tree_map.cr

This is a Crystal implementation of a Splay Tree; which is a type of binary search tree that is semi-balanced and that tends to self-optimize so that the most accessed items are the fastest to retrieve.

  • 9
  • 1
  • 0
  • 5 months ago

datapack.cr

You are building an application, be it web or something else. It has data -- images, CSS, JS, CSV files, whatever -- and you want to be able to easily bundle those into your compiled executable. This shard gives you a simple utility to add this data to your executable, access it, and manage it.

  • 8
  • 0
  • 0
  • 2 months ago
  • 7
  • 4
  • 4
  • 2 days ago

opentelemetry-api.cr

The core of open telemetry instrumentation is the OpenTelemetry API/SDK. The initial aim of this shard is to implement the OpenTelemetry specification for metrics, traces, and logs.

  • 7
  • 2
  • 4
  • 4 days ago

bus.cr

It is sometimes useful to have a pubsub type message bus inside your software. This library implements a bus to send messages to interested subscribers. Those subscribers can reply to those messages, and are guaranteed that the reply will be routed back to the sender.

  • 5
  • 0
  • 0
  • about 1 month ago

git-index.cr

This tool makes a local database of git repositories, indexed by initial commit hashes.

  • 4
  • 0
  • 0
  • 11 months ago

nbchannel.cr

A NBChannel is a non-blocking channel. Normal Crystal channels block on send and on receive. The NBChannel will never block on send, and there are both blocking and nonblocking receive calls available. The channel should work both for single producer, single consumer scenarios, and for scenarios with multiple producers or multiple consumers.

  • 4
  • 0
  • 0
  • 5 months ago

for.cr

This tiny little shard implements a "for" loop for Crystal by leveraging macros.

  • 3
  • 0
  • 0
  • 11 months ago

opentelemetry-sdk.cr

This repository contains an implementation of an OpenTelemetry SDK for Crystal

  • 3
  • 0
  • 1
  • 4 days ago

hpack.cr

This shard is a standalone implementation of HPack, the HTTP2 header compression algorithm.

  • 3
  • 0
  • 0
  • 2 months ago

apm.cr

This is an open source APM agent for Crystal. Initial development is targeting the OpenTelemetry spec for data exchange, but it may also support the New Relic specific protocol. It should, however, be usable with any provider that permits OpenTelementry ingest.

  • 3
  • 0
  • 0
  • 9 months ago

alias_method.cr

Crystal does not provide a ready-to-use mechanism for creating method aliases, and the general Crystal code style recommendation is that one should avoid having multiple names that invoke the same method. However, there are times where creating method aliases is useful. This shard creates an alias_method macro that can be used to easily create method aliases which are functionally identical to the original method.

  • 3
  • 0
  • 0
  • 8 months ago

timeout.cr

This implements a very simple timeout method for Crystal. Use it to wrap code in a timeout, so that execution of that code can not continue forever.

  • 3
  • 0
  • 0
  • about 1 year ago

ParseDate.cr

This is a small library that attempts to parse a wide variety of date formats with a single call.

  • 3
  • 0
  • 1
  • over 1 year ago

time-ext.cr

This is a very small extension of the Time class for Crystal. It has been extracted from another project as it provides a small number of logical and useful extensions to Time.

  • 2
  • 0
  • 0
  • 5 months ago

simple_irc.cr

This is a simple IRC protocol implementation. No bundled bot capabilities or anything fancy. Just the basics, made easy to use.

  • 2
  • 0
  • 0
  • about 1 year ago

lockfile.cr

This shard implements a portable lockfile, for use with the Crystal Language.

  • 2
  • 0
  • 0
  • almost 2 years ago

NewRelic.cr

This is a binding to the New Relic C SDK, so that Crystal programs can add observability features with New Relic.

  • 2
  • 0
  • 0
  • about 1 year ago
  • 2
  • 1
  • 1
  • 27 days ago

evita

A spike to play with some ideas surrounding a chat bot implementation.

  • 2
  • 0
  • 0
  • about 1 year ago

liquidcrystal

This is a port of the Liquid gem from Shopify, for the Crystal language. It aims to be as compatible as possible with the upstream source of truth that is the Shopify Ruby implementation of Liquid.

  • 2
  • 0
  • 0
  • over 1 year ago

hash_serializable.cr

The module provides a Hash::Serializeable module which, like JSON::Serializeable and YAML::Serializeable, can be mixed into a class to allow the class's ivars to be serialized out to a hash, and to allow a hash to be instantiated as an instance of a class.

  • 2
  • 0
  • 0
  • 11 months ago

serf-handler.cr

This implements a port of the Ruby Serf Handler gem -- https://github.com/wyhaines/serf-handler -- as a library that can be used to easily build compiled, distributable handler binaries using the Crystal language.

  • 1
  • 0
  • 0
  • over 1 year ago

analogger.cr

This is a port of https://github.com/wyhaines/analogger using Crystal.

  • 1
  • 0
  • 0
  • about 2 years ago

TwitchEventSub.cr

This shard encapsulates logic and handling for interacting with the Twitch EventSub API.

  • 1
  • 0
  • 0
  • about 1 year ago

apm-therelicans

This code is the code that was used for an article on how to build an APM system, written for therelicans.com.

  • 1
  • 0
  • 0
  • 12 months ago

minion-agent-client.cr

This is the Crystal implementation of the Minion Agent Client.

  • 0
  • 0
  • 0
  • about 2 years ago

analogger-client.cr

This is the Crystal version of the client library for Analogger.

  • 0
  • 0
  • 0
  • about 2 years ago

http2.cr

This is a standalone implementation of the HTTP/2 protocol that is intended to provide a ready building block for both HTTP/2 clients and servers.

  • 0
  • 0
  • 1
  • 2 months ago