@dgayerie/siren

A lightweight library to easily integrate JSON Hypermedia with Siren format. https://github.com/kevinswiber/siren

Usage no npm install needed!

<script type="module">
  import dgayerieSiren from 'https://cdn.skypack.dev/@dgayerie/siren';
</script>

README

A lightweight library for JSON Siren

siren is a lightweight JS library for manipulating JSON Siren object.

JSON Siren and hypermedia

JSON Siren is a JSON Hypermedia format.

siren library principles

Siren format can be viewed as an envelop around the payload of your object defined by the properties attribute. This way a Siren document makes a clear distinction between the data of the object and the meta-information related to hypermedia.