{"id":15767365,"url":"https://github.com/lmangani/vpipe","last_synced_at":"2025-03-31T11:11:12.637Z","repository":{"id":145716733,"uuid":"474788264","full_name":"lmangani/vpipe","owner":"lmangani","description":"experimental log parser in v","archived":false,"fork":false,"pushed_at":"2022-08-25T22:24:24.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-04T13:22:00.401Z","etag":null,"topics":["chain","cloki","experimental","json","logfmt","logs","parse","pipe","regex","v","vlang"],"latest_commit_sha":null,"homepage":"","language":"V","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/lmangani.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},"funding":{"github":["lmangani"]}},"created_at":"2022-03-27T23:49:59.000Z","updated_at":"2022-04-05T17:42:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"79d84387-cb58-458e-92aa-f360caf734c9","html_url":"https://github.com/lmangani/vpipe","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmangani%2Fvpipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmangani%2Fvpipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmangani%2Fvpipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmangani%2Fvpipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lmangani","download_url":"https://codeload.github.com/lmangani/vpipe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246458000,"owners_count":20780677,"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":["chain","cloki","experimental","json","logfmt","logs","parse","pipe","regex","v","vlang"],"created_at":"2024-10-04T13:21:50.448Z","updated_at":"2025-03-31T11:11:12.613Z","avatar_url":"https://github.com/lmangani.png","language":"V","funding_links":["https://github.com/sponsors/lmangani"],"categories":[],"sub_categories":[],"readme":"\u003cimg src='https://user-images.githubusercontent.com/1423657/147935343-598c7dfd-1412-4bad-9ac6-636994810443.png' style=\"margin-left:-10px\" width=180\u003e\n\n[![vlang-build-pipeline](https://github.com/lmangani/vpipe/actions/workflows/v.yml/badge.svg)](https://github.com/lmangani/vpipe/actions/workflows/v.yml)\n\n# vpipe\nexperimental log pipeline chain parser in [vlang](https://vlang.io/)\n\n#### Status\n* Experimental, Hackish, Amateurish. Do _NOT_ use this. 💣\n\n### Parsers\n- [x] logfmt\n- [x] json\n- [x] regex\n\n### Dummy Functions\n- [x] count()\n- [x] avg()\n\n### Usage\n##### logfmt\n```bash\necho \"some=logs are=boring\" | vpipe 'logfmt'\n\n{ \"some\": \"logs\", \"are\": \"boring\" }\n```\n##### logfmt + json\n```bash\necho \"some=logs are=boring counter=100\" | vpipe 'logfmt | json counter'\n\n100\n```\n##### regex\n```bash\necho 'http://www.ciao.mondo/pera.html' \\\n  | vpipe 'regex (?P\u003cformat\u003ehttps?)|(?P\u003cformat\u003eftps?)://(?P\u003ctoken\u003e[\\w_]+.)+'\n\n{\"format\":\"http\",\"token\":\"html\"}\n```\n\n\n#### 🕐 Benchmark\n##### vpipe\n```\n# hyperfine --warmup 3 'cat /tmp/test.log | vpipe \"logfmt\"'\nBenchmark 1: cat /tmp/test.log | vpipe \"logfmt\"\n  Time (mean ± σ):       1.3 ms ±   0.1 ms    [User: 1.8 ms, System: 0.5 ms]\n  Range (min … max):     1.1 ms …   1.7 ms    1428 runs\n```\n##### angle-grinder\n```\n# hyperfine --warmup 3 \"cat /tmp/test.log |  ag '* | logfmt'\"\nBenchmark 1: cat /tmp/test.log |  agrind '* | logfmt'\n  Time (mean ± σ):       4.5 ms ±   0.2 ms    [User: 2.4 ms, System: 3.2 ms]\n  Range (min … max):     1.8 ms …   4.9 ms    544 runs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmangani%2Fvpipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flmangani%2Fvpipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmangani%2Fvpipe/lists"}