{"id":20848466,"url":"https://github.com/helloworld017/web-bug","last_synced_at":"2025-10-13T04:11:30.043Z","repository":{"id":79441017,"uuid":"59284017","full_name":"HelloWorld017/web-bug","owner":"HelloWorld017","description":"A tracking bot server.","archived":false,"fork":false,"pushed_at":"2016-06-16T15:40:21.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T05:41:08.679Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HelloWorld017.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-05-20T09:55:09.000Z","updated_at":"2016-05-20T09:55:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"c1e9bc17-b063-4f4e-8a1a-fd4d093d90ff","html_url":"https://github.com/HelloWorld017/web-bug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HelloWorld017%2Fweb-bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HelloWorld017%2Fweb-bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HelloWorld017%2Fweb-bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HelloWorld017%2Fweb-bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HelloWorld017","download_url":"https://codeload.github.com/HelloWorld017/web-bug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243213980,"owners_count":20254902,"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-18T02:26:08.559Z","updated_at":"2025-10-13T04:11:24.978Z","avatar_url":"https://github.com/HelloWorld017.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web-Bug\nA tracking bot server.\n\n----\n\n## Installing\n```\n$ git clone https://github.com/HelloWorld017/web-bug.git\n$ npm install\n```\n\nYou can start it with `$ npm start`\n\n## How to?\n1. Add an image to your email, web, etc....  \n\n2. If the image is loaded, your scripts will run.  \n\n### Embedding images\n\n```html\n\u003cimg src=\"//url:port/tagName/data\"\u003e\n```\nwill give you a transparent 1x1 pixel gif.\n\n----\n\n## Creating scripts\n1. Create an js file to your scripts folder.  \n2. If your image is loaded, an event will be called.  \n\tYou can listen to events using `global.events.on(eventName, callback)`\n\n### List of events\n\n#### track event\nAn event which is called when bugs detect any tag.\n\n#### tag.* event\nAn event which is called when bugs detect given tag.\n\n#### arguments\nAn object will be given to callback as arguments.\n```\n{\n\trequest: Request object,\n\ttag: Tag,\n\tdata: Data\n}\n```\n\n### Example scripts\n```js\nglobal.events.on('tag.a', (data) =\u003e {\n\tconsole.log(data.data);\n});\n```\nThe data will logged when image which tag is 'a' is loaded.\n\n----\n\n## Environment Variables\n* NODE_ENV: We recommends setting it to 'production'  \n* PORT: The port of http web server. (default: 80)  \n* HTTPS_PORT: The port of https web server. (default: 443)  \n* CERT: If CERT is 'true', it opens http server.  \n* KEY_LOCATION: The location of the key file. (default: key.pem)  \n* CERT_LOCATION: The location of the certificate file. (default: cert.pem)  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelloworld017%2Fweb-bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelloworld017%2Fweb-bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelloworld017%2Fweb-bug/lists"}