{"id":40294162,"url":"https://github.com/joeyshi12/pql-parser","last_synced_at":"2026-01-20T05:03:42.212Z","repository":{"id":228088687,"uuid":"773129257","full_name":"joeyshi12/pql-parser","owner":"joeyshi12","description":"Plot query language parser library","archived":false,"fork":false,"pushed_at":"2024-12-03T00:38:42.000Z","size":423,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-02T02:49:23.273Z","etag":null,"topics":["ast","node","npm-package","parser","pql"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/pql-parser?activeTab=readme","language":"TypeScript","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/joeyshi12.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}},"created_at":"2024-03-16T20:36:54.000Z","updated_at":"2024-12-03T00:38:45.000Z","dependencies_parsed_at":"2024-03-17T03:50:52.217Z","dependency_job_id":"1d28bca6-a1a9-4570-a5f5-e329ae3671a6","html_url":"https://github.com/joeyshi12/pql-parser","commit_stats":null,"previous_names":["joeyshi12/pql-parser"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/joeyshi12/pql-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeyshi12%2Fpql-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeyshi12%2Fpql-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeyshi12%2Fpql-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeyshi12%2Fpql-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joeyshi12","download_url":"https://codeload.github.com/joeyshi12/pql-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeyshi12%2Fpql-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28596087,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: 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":["ast","node","npm-package","parser","pql"],"created_at":"2026-01-20T05:03:42.138Z","updated_at":"2026-01-20T05:03:42.192Z","avatar_url":"https://github.com/joeyshi12.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pql-parser\n\n![node.js.yml](https://github.com/joeyshi12/pql-parser/actions/workflows/node.js.yml/badge.svg)\n![npm-publish.yml](https://github.com/joeyshi12/pql-parser/actions/workflows/npm-publish.yml/badge.svg)\n![npm](https://img.shields.io/npm/v/pql-parser.svg)\n\nPlot query language parser.\n\nA 2D plot generation tool made with this parser is hosted at \u003ca href=\"https://devtools.joeyshi.xyz/csv_vis\"\u003ehttps://devtools.joeyshi.xyz/pql_compiler\u003c/a\u003e.\n\n## Syntax\n\n```\nPLOT (BAR(category_column, value_column) | LINE(x_column, y_column) | SCATTER(x_column, y_column))\n[WHERE \u003ccondition\u003e]\n[GROUP BY \u003ccolumn\u003e]\n[HAVING \u003ccondition\u003e]\n[LIMIT \u003climit\u003e [OFFSET \u003coffset\u003e]]\n```\n\n## EBNF\n\n```\n\u003cplot_statement\u003e ::= \"PLOT\" \u003cplot_call\u003e [\u003cwhere_clause\u003e] [\u003cgroup_by_clause\u003e] [\u003chaving_clause\u003e] [\u003climit_and_offset_clause\u003e]\n\n\u003cplot_clause\u003e ::= \u003cbar_call\u003e | \u003cline_call\u003e | \u003cscatter_call\u003e\n\n\u003cbar_call\u003e ::= \"BAR\" \"(\" \u003cattribute\u003e \",\" \u003cattribute\u003e \")\"\n\n\u003cline_call\u003e ::= \"LINE\" \"(\" \u003cattribute\u003e \",\" \u003cattribute\u003e \")\"\n\n\u003cscatter_call\u003e ::= \"SCATTER\" \"(\" \u003cattribute\u003e \",\" \u003cattribute\u003e \")\"\n\n\u003cwhere_clause\u003e ::= \"WHERE\" \u003cwhere_condition\u003e\n\n\u003cgroup_by_clause\u003e ::= \"GROUP BY\" \u003cidentifier\u003e\n\n\u003chaving_clause\u003e ::= \"HAVING\" \u003chaving_condition\u003e\n\n\u003climit_and_offset_clause\u003e ::= \"LIMIT\" \u003cnumber\u003e [\"OFFSET\" \u003cnumber\u003e]\n\n\u003cboolean_operator\u003e ::= \"OR\" | \"AND\"\n\n\u003cattribute\u003e ::= \u003caggregated_column\u003e [\"AS\" \u003cidentifier\u003e]\n\n\u003caggregated_column\u003e ::= \u003caggregation_function\u003e \"(\" \u003cidentifier\u003e \")\" | \u003cidentifier\u003e\n\n\u003caggregation_function\u003e ::= \"MIN\" | \"MAX\" | \"AVG\" | \"COUNT\" | \"SUM\"\n\n\u003cidentifier\u003e ::= \u003calphabetic\u003e { \u003calphabetic\u003e | \u003cdigit\u003e | \"_\" }\n\n\u003cwhere_condition\u003e ::= \u003cwhere_condition_group\u003e { \"OR\" \u003cwhere_condition_group\u003e } | \u003cwhere_condition_group\u003e { \"AND\" \u003cwhere_condition_group\u003e }\n\n\u003cwhere_condition_group\u003e ::= \u003cidentifier\u003e \u003ccomparison_operator\u003e \u003cvalue\u003e | \"(\" \u003cwhere_condition\u003e \")\"\n\n\u003chaving_condition\u003e ::= \u003chaving_condition_group\u003e { \"OR\" \u003chaving_condition_group\u003e } | \u003chaving_condition_group\u003e { \"AND\" \u003chaving_condition_group\u003e }\n\n\u003chaving_condition_group\u003e ::= \u003caggregated_column\u003e \u003ccomparison_operator\u003e \u003cvalue\u003e | \"(\" \u003chaving_condition\u003e \")\"\n\n\u003ccomparison_operator\u003e ::= \"\u003e\" | \"\u003c\" | \"\u003e=\" | \"\u003c=\" | \"=\"\n\n\u003cvalue\u003e ::= \u003cnumber\u003e | \u003cstring\u003e | \"NULL\"\n\n\u003cnumber\u003e ::= \u003cdigit\u003e {\u003cdigit\u003e}\n\n\u003cstring\u003e ::= \"'\" \u003calphabetic\u003e {\u003calphabetic\u003e} \"'\"\n\n\u003cdigit\u003e ::= \"0\" | ... | \"9\"\n\n\u003calphabetic\u003e ::= \"A\" | ... | \"Z\" | \"a\" | ... | \"z\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeyshi12%2Fpql-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoeyshi12%2Fpql-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeyshi12%2Fpql-parser/lists"}