{"id":24848796,"url":"https://github.com/jay-karia/jqlite","last_synced_at":"2026-04-27T12:02:51.747Z","repository":{"id":275795106,"uuid":"921299136","full_name":"Jay-Karia/jqlite","owner":"Jay-Karia","description":"⚡ The query language for JSON","archived":false,"fork":false,"pushed_at":"2025-05-15T04:08:19.000Z","size":1387,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-20T21:05:22.467Z","etag":null,"topics":["configurable","fast","json","query-language","simple"],"latest_commit_sha":null,"homepage":"https://jqlite.vercel.app","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/Jay-Karia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-23T17:45:04.000Z","updated_at":"2025-10-26T18:12:43.000Z","dependencies_parsed_at":"2025-02-25T15:19:59.138Z","dependency_job_id":"75938d8b-22a5-4d93-a843-138ffc780af5","html_url":"https://github.com/Jay-Karia/jqlite","commit_stats":null,"previous_names":["jay-karia/jqlite"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Jay-Karia/jqlite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jay-Karia%2Fjqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jay-Karia%2Fjqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jay-Karia%2Fjqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jay-Karia%2Fjqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jay-Karia","download_url":"https://codeload.github.com/Jay-Karia/jqlite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jay-Karia%2Fjqlite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32335297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["configurable","fast","json","query-language","simple"],"created_at":"2025-01-31T12:17:11.424Z","updated_at":"2026-04-27T12:02:51.742Z","avatar_url":"https://github.com/Jay-Karia.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\" style=\"margin-top: 40px\"\u003e\r\n    \u003cimg src=\"./public/svg-logo-bg-trans-cropped.svg\" alt=\"JQLite Logo\" width=\"50px\"/\u003e\r\n    \u003ch1 style=\"margin-top: 15px;\"\u003eJQLite\u003c/h1\u003e\r\n    \u003cp\u003eThe query language for JSON\u003c/p\u003e\r\n\u003c/div\u003e\r\n\r\n\u003cp align=\"center\"\u003e\r\n  \u003cimg src=\"https://img.shields.io/npm/v/jqlite-ts?style=flat-square\u0026color=%2358ff4f\" alt=\"Version\" /\u003e\r\n  \u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square\" alt=\"License: MIT\"\u003e\r\n  \u003cimg src=\"https://img.shields.io/npm/d18m/jqlite-ts?style=flat-square\u0026color=%23ffea2b\"alt=\"NPM Downloads\"\u003e\r\n\u003c/p\u003e\r\n\r\n---\r\n\r\n### 🌟 Features\r\n\r\n- **Basic query selection**\r\n- **Fallback Mechanism**\r\n- **Wildcard support**\r\n- **Array Slices**\r\n- **Multiple Key Selection**\r\n- **Key Omission**\r\n- **Single Key Omission**\r\n- **Functions**\r\n- **Comparison Operators**\r\n- **Conditions**\r\n- **Configurable**\r\n\r\n### 📦 Installation\r\n\r\n```sh\r\n# npm\r\nnpm install jqlite-ts\r\n\r\n# yarn\r\nyarn add jqlite-ts\r\n\r\n# pnpm\r\npnpm add jqlite-ts\r\n```\r\n\r\n### 🚀 Getting Started\r\n\r\n```js\r\nimport { config, data, query } from 'jqlite-ts';\r\n\r\n// Load the data from a JSON file\r\ndata.load(\"./data.json\");\r\n\r\n// Override the default config\r\nconfig.set({\r\n  fallback: \"No data found!\"\r\n});\r\n\r\n// Run the query\r\nquery.run(\"$.friends[*].(name, age)\", (result) =\u003e {\r\n  console.log(result);\r\n});\r\n\r\n```\r\n\r\n### 📌 Overview\r\n\r\n```js\r\n// Basic Selection\r\n$.friends[0].name\r\n\r\n// Fallback\r\n$.friends[0].favorites.game ?? \"No favorite game\"\r\n\r\n// Wildcard\r\n$.friends[*].name\r\n\r\n// Array Slices\r\n$.friends[0:2].name\r\n\r\n// Multiple Key Selection\r\n$.friends[0].(name, age)\r\n\r\n// Multiple Key Omission\r\n$.friends[0].!(name, age)\r\n\r\n// Single Key Omission\r\n$.friends[0].!name\r\n\r\n// Functions\r\n$.friends[0].name.#upper()\r\n$.friends[*].age.#avg()\r\n$.friends[*].hobbies.#length()\r\n\r\n// Comparison Operators\r\n$.friends[0].age \u003e 20\r\n\r\n// Conditions\r\n$.friends[?(@.age \u003e= 18)]\r\n$.friends[?(@.country.#contains('IN'))].name\r\n$.scores[?((@ \u003e 150) || (@ \u003c 100))]\r\n$.friends[?((@.age \u003e 20) \u0026\u0026 (@.hobbies[0].#contains('sports')))]\r\n```\r\n\r\n---\r\n\r\n### 📝 Contributing\r\n\r\nRead the [CONTRIBUTING.md](/CONTRIBUTING.md) file for instructions on how to contribute to this project.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjay-karia%2Fjqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjay-karia%2Fjqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjay-karia%2Fjqlite/lists"}