{"id":19952620,"url":"https://github.com/qxip/qrelate","last_synced_at":"2026-06-07T01:31:26.601Z","repository":{"id":141829111,"uuid":"128263357","full_name":"QXIP/qrelate","owner":"QXIP","description":"Pipeline Correlation Module for paStash","archived":false,"fork":false,"pushed_at":"2018-05-21T22:05:27.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T21:37:45.779Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://hepic.tel","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/QXIP.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":"2018-04-05T20:56:12.000Z","updated_at":"2022-07-21T08:13:25.000Z","dependencies_parsed_at":"2024-03-17T04:05:45.836Z","dependency_job_id":null,"html_url":"https://github.com/QXIP/qrelate","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/QXIP%2Fqrelate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QXIP%2Fqrelate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QXIP%2Fqrelate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QXIP%2Fqrelate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QXIP","download_url":"https://codeload.github.com/QXIP/qrelate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241381645,"owners_count":19953751,"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-13T01:13:53.213Z","updated_at":"2026-06-07T01:31:26.563Z","avatar_url":"https://github.com/QXIP.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# qrelate\nShort-Term memory pipeline correlation module\n\n## About\nThis module was designed for [paStash](https://github.com/sipcapture/pastash) In-Line CDR correlation\n\n## Setup\n```\nnpm install --save qrelate\n```\n\n### Functions\n* `key`: Key name to extract value from\n* `suffix`: Extend with suffix\n* `prefix`: Extend with prefix\n* `regex`: Replace using regex\n* `regex_match`: Match using regex\n* `name`: Store using name\n* `inject`: Inject header on correlation\n* `score`: Score to assign for a match\n\n### Parameters\n* `maxSize`: max number of items in LRU\n* `maxAge`: max age in ms for items in LRU\n* `treshold`: correlation treshold score\n* `uuid`: correlation identifier key\n\n\n#### Usage\n```javascript\nconst qrelate = require('qrelate');\n\n// Set Cache\nqrelate.params('maxSize',5000); // max number of items in LRU\nqrelate.params('maxAge',5000); // max age of items in LRU\nqrelate.params('threshold',99); // correlation threshold score\nqrelate.params('uuid','uuid'); // correlation identifier key\n\n// Set Vectors\nconst vectors = [\n\t{ score: 100, key: 'callid', suffix: \"_b2b-1\" },\n\t{ score: 100, key: 'correlation_id', name: 'callid', inject: 'x-cid' },\n\t{ score: 50,  key: 'ruri_user', regex: /^(00|\\+)/ },\n\t{ score: 50,  key: 'from_user', regex: /^(00|\\+)/ }\n\t{ score: 50,  key: 'to_user', name: \"last8dig\", regex_match: /.{8}$/ }\n];\nqrelate.vectors(vectors);\n```\n\n#### (C) 2018 QXIP BV\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqxip%2Fqrelate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqxip%2Fqrelate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqxip%2Fqrelate/lists"}