{"id":48543892,"url":"https://github.com/cometsh/elixir-dasl","last_synced_at":"2026-04-08T06:01:05.732Z","repository":{"id":349913174,"uuid":"1204491419","full_name":"cometsh/elixir-dasl","owner":"cometsh","description":"An Elixir implementation of DASL primitives.","archived":false,"fork":false,"pushed_at":"2026-04-08T04:04:30.000Z","size":52,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-08T06:00:53.184Z","etag":null,"topics":["archive","atproto","car","cid","content-addressed","dasl","drisl","elixir"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cometsh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-08T03:58:05.000Z","updated_at":"2026-04-08T04:13:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"e149d8de-b325-4eb5-af41-f2d68fe6b27e","html_url":"https://github.com/cometsh/elixir-dasl","commit_stats":null,"previous_names":["cometsh/elixir-dasl"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cometsh/elixir-dasl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cometsh%2Felixir-dasl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cometsh%2Felixir-dasl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cometsh%2Felixir-dasl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cometsh%2Felixir-dasl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cometsh","download_url":"https://codeload.github.com/cometsh/elixir-dasl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cometsh%2Felixir-dasl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31542384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"online","status_checked_at":"2026-04-08T02:00:06.127Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["archive","atproto","car","cid","content-addressed","dasl","drisl","elixir"],"created_at":"2026-04-08T06:00:35.031Z","updated_at":"2026-04-08T06:01:05.716Z","avatar_url":"https://github.com/cometsh.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elixir-dasl\n\nAn Elixir implementation of [DASL](https://dasl.ing/) primitives.\n\n## Overview\n\n**DASL** (Decentralized Authenticated Structure Layer) is a family of\nspecifications for content-addressed data that is interoperable with the broader\nIPFS/IPLD ecosystem while remaining minimal and self-contained.\n\nThis library provides:\n\n- `DASL.CID`: — content identifiers, a compact, self-describing pointer to a\n  piece of data.\n- `DASL.DRISL`: — deterministic CBOR serialization.\n- `DASL.CAR`: — Content-Addressable aRchive encoding and decoding, as well as a\n  stream decoder.\n- `DASL.CAR.DRISL`: — a higher-level CAR variant where block values are Elixir\n  terms rather than raw binaries, and are encoded/decoded via DRISL\n  transparently.\n\n## Quick start\n\n```elixir\n# CIDs\ncid = DASL.CID.compute(\"hello world\")\nDASL.CID.verify?(cid, \"hello world\")  # =\u003e true\nDASL.CID.encode(cid)                  # =\u003e \"bafkrei...\"\n\n# Round-trip a CID string\n{:ok, cid} = DASL.CID.new(\"bafkreifzjut3te2nhyekklss27nh3k72ysco7y32koao5eei66wof36n5e\")\n\n# DRISL encode/decode\n{:ok, bin} = DASL.DRISL.encode(%{\"key\" =\u003e [1, 2, 3]})\n{:ok, term, \"\"} = DASL.DRISL.decode(bin)\n\n# Build and encode a CAR archive\n{car, cid1} = DASL.CAR.add_block(%DASL.CAR{}, \"block one\")\n{car, cid2} = DASL.CAR.add_block(car, \"block two\")\n{:ok, car}  = DASL.CAR.add_root(car, cid1)\n{:ok, bin}  = DASL.CAR.encode(car)\n\n# Decode it back\n{:ok, car} = DASL.CAR.decode(bin)\n\n# Stream a large CAR file\nFile.stream!(\"large.car\", 65_536)\n|\u003e DASL.CAR.stream_decode()\n|\u003e Enum.each(fn\n  {:header, _version, roots} -\u003e IO.inspect(roots, label: \"roots\")\n  {:block, cid, _data}       -\u003e IO.inspect(cid,   label: \"block\")\nend)\n```\n\n## Installation\n\nGet elixir-dasl from [hex.pm](https://hex.pm) by adding it to your `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:dasl, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\nDocumentation can be found on HexDocs at https://hexdocs.pm/dasl.\n\n---\n\nThis project is licensed under the [MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcometsh%2Felixir-dasl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcometsh%2Felixir-dasl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcometsh%2Felixir-dasl/lists"}