{"id":15374267,"url":"https://github.com/moteus/lua-gntp","last_synced_at":"2025-10-26T15:01:37.184Z","repository":{"id":29578815,"uuid":"33118505","full_name":"moteus/lua-gntp","owner":"moteus","description":"Implementation of Growl Notify Transport Protocol (GNTP) for Lua","archived":false,"fork":false,"pushed_at":"2016-08-16T12:02:28.000Z","size":63,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-02T00:27:24.493Z","etag":null,"topics":["gntp","growl","lua"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/moteus.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}},"created_at":"2015-03-30T11:10:29.000Z","updated_at":"2019-07-18T20:33:12.000Z","dependencies_parsed_at":"2022-09-20T17:23:38.806Z","dependency_job_id":null,"html_url":"https://github.com/moteus/lua-gntp","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moteus%2Flua-gntp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moteus%2Flua-gntp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moteus%2Flua-gntp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moteus%2Flua-gntp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moteus","download_url":"https://codeload.github.com/moteus/lua-gntp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245931826,"owners_count":20695961,"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":["gntp","growl","lua"],"created_at":"2024-10-01T13:58:03.660Z","updated_at":"2025-10-26T15:01:36.953Z","avatar_url":"https://github.com/moteus.png","language":"Lua","readme":"# lua-gntp\n[![Build Status](https://travis-ci.org/moteus/lua-gntp.svg?branch=master)](https://travis-ci.org/moteus/lua-gntp)\n[![Coverage Status](https://coveralls.io/repos/moteus/lua-gntp/badge.svg)](https://coveralls.io/r/moteus/lua-gntp)\n[![License](http://img.shields.io/badge/License-MIT-brightgreen.svg)](LICENSE)\n\nImplementation of Growl Notify Transport Protocol (GNTP) for Lua\n\n### Make common GNTP objects\n```Lua\nlocal icon = GNTP.Resource.load_from_file('coulson.jpg')\n\nlocal app = GNTP.Application.new{'LLUV_GNTP', icon = icon,\n  notifications = {\n    { 'CONNECT',\n      title   = 'ConnectTitle',\n      display = 'ConnectDisplay',\n      enabled = true,\n      icon    = icon\n    };\n    { 'DISCONNECT',\n      title   = 'DisconnectTitle',\n      display = 'DisconnectDisplay',\n      enabled = true,\n      icon    = icon\n    };\n  }\n}\n```\n\n### Using lluv async connector\n```Lua\nlocal growl = GNTP.Connector.lluv(app, {\n  host    = '127.0.0.1';\n  port    = '23053';\n  pass    = '123456';\n  encrypt = 'AES';\n  hash    = 'SHA256';\n})\n\ngrowl:register(function(self, err, msg)\n  print(err or msg:encode())\n  growl:notify('CONNECT', 'User connected',\n    function(self, err, msg)\n      print(err or msg:encode())\n    end\n  )\nend)\n```\n\n### Using LuaSocket sync connector\n```Lua\nlocal growl = GNTP.Connector.luasocket(app, {\n  host    = '127.0.0.1';\n  port    = '23053';\n  pass    = '123456';\n  encrypt = 'AES';\n  hash    = 'SHA256';\n})\n\nlocal msg, err = growl:register()\nprint(err or msg:encode())\n\nlocal msg1, msg2 = growl:notify('CONNECT', {'User connected', callback = true})\nif not msg1 then print(msg2)\nelse\n  print(msg1:encode())\n  print(msg2 and msg2:encode())\nend\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoteus%2Flua-gntp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoteus%2Flua-gntp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoteus%2Flua-gntp/lists"}