Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/toddsundsted/host_meta

A Web Host Metadata (https://tools.ietf.org/html/rfc6415) client for Crystal.
https://github.com/toddsundsted/host_meta

crystal host-meta

Last synced: 2 months ago
JSON representation

A Web Host Metadata (https://tools.ietf.org/html/rfc6415) client for Crystal.

Lists

README

        

# host_meta

[![GitHub Release](https://img.shields.io/github/release/toddsundsted/host_meta.svg)](https://github.com/toddsundsted/host_meta/releases)
[![Build Status](https://github.com/toddsundsted/host_meta/actions/workflows/ci.yml/badge.svg)](https://github.com/toddsundsted/host_meta/actions)
[![Documentation](https://img.shields.io/badge/docs-available-brightgreen.svg)](https://toddsundsted.github.io/host_meta/)

A [Web Host Metadata](https://tools.ietf.org/html/rfc6415) client for
Crystal.

## Installation

1. Add the dependency to your `shard.yml`:

```yaml
dependencies:
host_meta:
github: toddsundsted/host_meta
```

2. Run `shards install`

## Usage

```crystal
require "host_meta"

h = HostMeta.query("epiktistes.com") # => #
h.links("lrdd").first.template # => "https://epiktistes.com/.well-known/webfinger?resource={uri}"
```

## Contributors

- [Todd Sundsted](https://github.com/toddsundsted) - creator and maintainer