{"id":18556770,"url":"https://github.com/urbit/urbit-hob","last_synced_at":"2025-04-10T01:31:35.379Z","repository":{"id":56881801,"uuid":"206749468","full_name":"urbit/urbit-hob","owner":"urbit","description":"Haskell utilities for Hoon-style atom printing and conversion","archived":false,"fork":false,"pushed_at":"2022-04-01T11:51:29.000Z","size":70,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-03-24T14:21:24.268Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","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/urbit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-06T08:29:49.000Z","updated_at":"2024-03-02T13:52:56.000Z","dependencies_parsed_at":"2022-08-21T00:20:09.503Z","dependency_job_id":null,"html_url":"https://github.com/urbit/urbit-hob","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbit%2Furbit-hob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbit%2Furbit-hob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbit%2Furbit-hob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbit%2Furbit-hob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/urbit","download_url":"https://codeload.github.com/urbit/urbit-hob/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119296,"owners_count":21050755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-06T21:33:14.048Z","updated_at":"2025-04-10T01:31:30.357Z","avatar_url":"https://github.com/urbit.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# urbit-hob\n\n[![Build Status](https://travis-ci.org/urbit/urbit-hob.svg?branch=master)](https://travis-ci.org/urbit/urbit-hob)\n[![Hackage Version](https://img.shields.io/hackage/v/urbit-hob.svg)](http://hackage.haskell.org/package/urbit-hob)\n[![Stackage Version](http://stackage.org/package/urbit-hob/badge/nightly)](http://stackage.org/nightly/package/urbit-hob)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\nUtilities for phonetic base wrangling.\n\n## What\n\nHere you can primarily find functions for dealing with the \"patp\" and \"patq\"\n*phonetic bases* used by Urbit.  The `@p` encoding is used for naming ships,\nwhereas the `@q` encoding is used for arbitrary data; they both uniquely\nrepresent nonnegative integers (i.e. *atoms*) in a memorable and pronounceable\nfashion.\n\nThe `@p` encoding is an *obfuscated* representation of an underlying atom, in\nparticular, hence the 'ob' in the library's name.\n\n## Usage\n\nThe library exposes two families of functions, `patp` and `fromPatp`, and then\n`patq` and `fromPatq`, for converting between representations appropriately.\nYou can render `{patp, patq}` values via the `render{Patp, Patq}` functions,\nand parse them from Text via `parse{Patp, Patq}` respectively.\n\nThe useful `clan` and `sein` functions, for determining a ship's class and\n(default) parent, are also exposed.\n\nHere are some quick examples:\n\n```\n\u003e :set -XOverloadedStrings\n\u003e import qualified Urbit.Ob as Ob\n\u003e let nidsut = Ob.patp 15663360\n\u003e let marzod = Ob.patq (Ob.fromPatp nidsut)\n\u003e Ob.renderPatp nidsut\n\"~nidsut-tomdun\"\n\u003e Ob.renderPatq marzod\n\"~mun-marzod\"\n\u003e Ob.fromPatp nidsut\n15663360\n\u003e Ob.parsePatp \"~nidsut-tomdun\"\nRight ~nidsut-tomdun\n\u003e Ob.clan nidsut\nPlanet\n\u003e Ob.sein nidsut\n~marzod\n```\n\n## See also\n\n* [urbit-ob](https://github.com/urbit/urbit-ob) -- JavaScript bindings\n* [urbit-gob](https://github.com/deelawn/urbit-gob) -- Go bindings\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furbit%2Furbit-hob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Furbit%2Furbit-hob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furbit%2Furbit-hob/lists"}