{"id":17436104,"url":"https://github.com/jnsgruk/libations","last_synced_at":"2025-04-16T05:02:46.048Z","repository":{"id":211330123,"uuid":"728844877","full_name":"jnsgruk/libations","owner":"jnsgruk","description":"A cocktail recipe store for consumption on your mobile device of choice!","archived":false,"fork":false,"pushed_at":"2025-02-07T15:16:13.000Z","size":1024,"stargazers_count":30,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-29T05:03:34.547Z","etag":null,"topics":["cocktails","go","nix","nix-flake","tailscale","tsnet","vanilla-css","vanilla-framework"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jnsgruk.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2023-12-07T20:24:32.000Z","updated_at":"2025-02-07T15:16:19.000Z","dependencies_parsed_at":"2024-01-05T10:53:40.389Z","dependency_job_id":"c4d00904-4513-4219-a8a2-337f15975ea9","html_url":"https://github.com/jnsgruk/libations","commit_stats":{"total_commits":59,"total_committers":3,"mean_commits":"19.666666666666668","dds":0.0847457627118644,"last_synced_commit":"f5aca00b7f3f65161b080c63b1363786ed7d1926"},"previous_names":["jnsgruk/libations"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnsgruk%2Flibations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnsgruk%2Flibations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnsgruk%2Flibations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnsgruk%2Flibations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jnsgruk","download_url":"https://codeload.github.com/jnsgruk/libations/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249199843,"owners_count":21228995,"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":["cocktails","go","nix","nix-flake","tailscale","tsnet","vanilla-css","vanilla-framework"],"created_at":"2024-10-17T10:02:39.842Z","updated_at":"2025-04-16T05:02:46.010Z","avatar_url":"https://github.com/jnsgruk.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"250px\" style=\"clip-path: circle()\" src=\".github/logo.webp\" alt=\"libations logo\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eLibations\u003c/h1\u003e\n\nThis is a simple static website for hosting cocktail recipes. The actual site is rendered with Go templates\nand served by default over Tailscale (using [tsnet]) by a simple Go binary that embeds the page.\nThe page is designed to be viewed on a mobile - it works _okay_ on bigger screens, but I've not yet\nmade that look \"right\".\n\nThe page is styled with the excellent [Vanilla Framework], because that's what I had to hand.\n\nCocktail recipes are served up from a JSON file containing the recipes. The format is listed in a\nsection below. There is an example [included](./static/sample.json).\n\n\u003cp align=\"center\"\u003e\n\u003cimg width=\"250px\" src=\".github/screenshot.png\" alt=\"screenshot of libations\"/\u003e\n\u003c/p\u003e\n\n## Usage\n\n### Command line flags\n\n```\n./libations -help\nUsage of /bin/libations:\n  -addr string\n        the address to listen on in the case of a local listener (default \":8080\")\n  -hostname string\n        hostname to use on the tailnet (default \"libations\")\n  -local\n        start on local addr; don't attach to a tailnet\n  -recipes-file string\n        path to a file containing drink recipes\n  -tsnet-logs\n        include tsnet logs in application logs (default true)\n```\n\n### Using Nix\n\n```bash\n# Enter the development shell\nnix develop\n\n# Run the package\nnix run .#libations\n```\n\n### Otherwise...\n\nBefore building you must have [Go] installed.\n\n```bash\ngit clone git@github.com:jnsgruk/libations\n\n# Optional - if not provided you'll be prompted\nexport TS_AUTHKEY=\"tskey-auth-aBcdEfghIjKlMnOpQrStUvWxYz\"\n\n# Run the application on the tailnet\ngo run main.go\n\n# Or run the application locally (handy for development)\ngo run main.go -local\n```\n\n## Recipe File Format\n\nThe [drinks.json](./static/sample.json) file is a list of JSON objects, where each object\nrepresents a drink:\n\n```json\n[\n  {\n    \"id\": 5,\n    \"name\": \"Sazerum (Rum Sazerac)\",\n    \"base\": [\"Rum\"],\n    \"glass\": [\"9oz Lowball\"],\n    \"method\": [\"Stir\"],\n    \"ice\": [],\n    \"ingredients\": [\n      { \"name\": \"Rum\", \"measure\": \"50\", \"unit\": \"ml\" },\n      { \"name\": \"Absinthe\", \"measure\": \"5\", \"unit\": \"ml\" },\n      { \"name\": \"Dark Agave Syrup\", \"measure\": \"7.5\", \"unit\": \"ml\" },\n      { \"name\": \"Peychaud Bitters\", \"measure\": \"2.5\", \"unit\": \"ml\" },\n      { \"name\": \"Lemon Juice\", \"measure\": \"2\", \"unit\": \"dash\" }\n    ],\n    \"garnish\": [\"Lemon Twist\"],\n    \"notes\": \"Preferred rum is Plantation XO. Chill glass before and rinse with 5ml Absinthe\"\n  }\n]\n```\n\n[Go]: https://go.dev/\n[tsnet]: https://tailscale.com/kb/1244/tsnet/\n[Vanilla Framework]: https://vanillaframework.io\n[Canonical]: https://canonical.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjnsgruk%2Flibations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjnsgruk%2Flibations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjnsgruk%2Flibations/lists"}