{"id":27716037,"url":"https://github.com/jacarte/anilizer","last_synced_at":"2026-05-09T00:07:30.626Z","repository":{"id":94808018,"uuid":"188108004","full_name":"Jacarte/ANIlizer","owner":"Jacarte","description":"Getting function coverage in NodeJS applications, including node_modules folder","archived":false,"fork":false,"pushed_at":"2019-05-22T20:41:48.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-27T01:44:00.857Z","etag":null,"topics":["babel","nodejs"],"latest_commit_sha":null,"homepage":"","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/Jacarte.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,"zenodo":null}},"created_at":"2019-05-22T20:20:33.000Z","updated_at":"2019-05-22T21:08:16.000Z","dependencies_parsed_at":"2023-03-13T16:57:02.244Z","dependency_job_id":null,"html_url":"https://github.com/Jacarte/ANIlizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Jacarte/ANIlizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jacarte%2FANIlizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jacarte%2FANIlizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jacarte%2FANIlizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jacarte%2FANIlizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jacarte","download_url":"https://codeload.github.com/Jacarte/ANIlizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jacarte%2FANIlizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32802547,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["babel","nodejs"],"created_at":"2025-04-27T01:43:59.123Z","updated_at":"2026-05-09T00:07:30.621Z","avatar_url":"https://github.com/Jacarte.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Almost No Instrusive Analizer (ANIlizer)\n\nWe try to instrument a complete NodeJS application (including node_modules folder recursivelly) getting the function entering traces. Basically we send the traces using the builtin function **console.debug**, these console api calls can be detected using debugger tools through the websocket channel. \n\n```js\nfunction a(){\n    console.debug(\"1:2:1:4\", 'FUNCTION_ENTRANCE', 'a', 'file.js')\n    //           node hash,     action,      functionName  filename    \n    // Function code\n}\n```\n\n### Running the instrumented code\n\n1. Execute ```node src/scripts/instrument_application.js \u003capplication_dir_abs\u003e \u003cinstrumentation_output_abs\u003e```\n    \n    11. There is a map file (**map.json**) with the instrumented functions in the output folder root (\u003ca href=\"docs/map.md\"\u003eExample\u003c/a\u003e)\n2. Execute the application entrypoint with node **--inspect** option: ```node --inspect entry.js```\n3. Execute the listener who writes the logs to **logs/logs.txt** file: ```node src/core/listener/listener.js \u003cinstrumentation_output_path\u003e/map.json```\n\n    31. The logs line by line format is **[HASH]:[file_path] [TIMESTAMP]** (\u003ca href=\"docs/example.md\"\u003eExample\u003c/a\u003e)\n\n\n### TODOS\n- Debloat based on traces information\n- Perform instrumentation to branch level","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacarte%2Fanilizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacarte%2Fanilizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacarte%2Fanilizer/lists"}