{"id":16278700,"url":"https://github.com/pixelass/gaffney","last_synced_at":"2025-10-08T12:58:30.250Z","repository":{"id":98945951,"uuid":"192419628","full_name":"pixelass/gaffney","owner":"pixelass","description":null,"archived":false,"fork":false,"pushed_at":"2019-08-08T23:47:58.000Z","size":757,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T17:52:36.442Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/pixelass.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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}},"created_at":"2019-06-17T21:13:29.000Z","updated_at":"2019-06-26T09:14:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"eb9aa7a6-7fc7-4776-b293-e1652ab5cf8c","html_url":"https://github.com/pixelass/gaffney","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pixelass/gaffney","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelass%2Fgaffney","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelass%2Fgaffney/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelass%2Fgaffney/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelass%2Fgaffney/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pixelass","download_url":"https://codeload.github.com/pixelass/gaffney/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelass%2Fgaffney/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278948022,"owners_count":26073748,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"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":[],"created_at":"2024-10-10T18:59:39.661Z","updated_at":"2025-10-08T12:58:30.217Z","avatar_url":"https://github.com/pixelass.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gaffney\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://cdn.rawgit.com/pixelass/gaffney/master/gaffney.svg\" alt=\"gaffney logo\" width=\"200\"/\u003e\u003c/p\u003e\n\n## Status: active development (prototype port)\n\nPrototype: [Codepen Prototype](https://codepen.io/pixelass/pen/baybqZ)\n\n## Demo / Documentation\n\n* [Demo](https://pixelass.github.io/gaffney)\n* [Documentation](https://pixelass.github.io/gaffney/api)\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://cdn.rawgit.com/pixelass/gaffney/master/january-2018.svg\" alt=\"gaffney calendar january 2018\" width=\"640\"/\u003e\u003c/p\u003e\n\n## Why the name Gaffney?\n\n[Vince Gaffney](https://twitter.com/gaffney_v) led the archeological team that\ndiscovered the first calendar made by human kind, a calendar based on the moon.\n\n\u003e The pits were dug in the shapes of various phases of the moon. \"Waxing, waning,\n\u003e crescents, and gibbous, they're all there and arranged in a 50-meter-long (164-foot) arc.  \n\u003e *[National Geographic](https://news.nationalgeographic.com/news/2013/07/130715-worlds-oldest-calendar-lunar-cycle-pits-mesolithic-scotland/)*\n\n## What does this do?\n\nGaffney provides a set of tools to create lunar and astrology calendars, create APIs\nor microservices etc. using data about the moon and stars.\n\n## Simple examples\n\n### SVGs\n\n```js\nimport {svgString, crescentShape as shape} from '@gaffney/svg'\n\nconst svg = svgString(shape({progress: 3}))\n```\n\n### single packages\n\n#### simple\n\n```js\nimport getMoonPhase from '@gaffney/simple'\n\nconst moonPhase = getMoonPhase(2018, 4, 20)\n```\n\n#### conway\n\n```js\nimport getMoonPhase from '@gaffney/conway'\n\nconst moonPhase = getMoonPhase(2018, 4, 20)\n```\n\n#### trig1\n\n```js\nimport getMoonPhase from '@gaffney/trig1'\n\nconst moonPhase = getMoonPhase(2018, 4, 20)\n```\n\n#### trig2\n\n```js\nimport getMoonPhase from '@gaffney/trig2'\n\nconst moonPhase = getMoonPhase(2018, 4, 20)\n```\n\n### Gaffney as an instance\n\n```js\nimport Gaffney from '@gaffney/gaffney'\nimport {\n  svgString as moon,\n  crescentShape as crescent,\n  zodiacSign as zodiac\n} from '@gaffney/svg'\n\nconst calendar = new Gaffney()\n\nconst svgMoon = moon(crescent({\n  progress: calendar.trig2(2018, 4, 20)\n}))\nconst svgZodiac = zodiac[calendar.zodiac(2018, 4, 20)]\n```\n\n## Credits\n\n* zodiac icons designed by [Dario Ferrando from Flaticon](https://www.flaticon.com/authors/dario-ferrando)\n* moon-phase functions are ripped/inspired/ported from [Ben Danglish](http://www.ben-daglish.net/moon.shtml)\n\n## Similar projects\n\n* https://github.com/tingletech/moon-phase (I got some helpful links from this repo)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixelass%2Fgaffney","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpixelass%2Fgaffney","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixelass%2Fgaffney/lists"}