{"id":20711438,"url":"https://github.com/codehz/qlite","last_synced_at":"2026-04-24T13:31:09.197Z","repository":{"id":65688121,"uuid":"594025332","full_name":"codehz/qlite","owner":"codehz","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-05T09:22:19.000Z","size":270,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-11T06:25:53.675Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/codehz.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":"2023-01-27T12:25:26.000Z","updated_at":"2023-02-05T09:15:57.000Z","dependencies_parsed_at":"2025-01-17T21:11:10.474Z","dependency_job_id":"f46fedec-3b50-4df5-ac30-ffc46e22de6b","html_url":"https://github.com/codehz/qlite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codehz/qlite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehz%2Fqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehz%2Fqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehz%2Fqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehz%2Fqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codehz","download_url":"https://codeload.github.com/codehz/qlite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehz%2Fqlite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32225706,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"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":[],"created_at":"2024-11-17T02:15:29.969Z","updated_at":"2026-04-24T13:31:09.179Z","avatar_url":"https://github.com/codehz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QLite\n\nA lightweight GraphQL server which use SQLite3 as data source.\n\nIt will be deployable in Cloudflare Workers (WIP).\n\nYou can define your SQLite3 schema in a single YAML file (or generate YAML from existing SQLite3 database).\n\n![**status: WIP!**](https://svg.hertz.services/text?content=Status:+WIP!\u0026fontFamily=monospace\u0026percent=0.9)\n\n## Features\n\n1. Define SQLite3 schema in the YAML file.\n2. Generate YAML file from existing SQLite Database (incomplete).\n3. Hasura-like query/mutation language (Subscriptions are planned), but not all features are supported, see [Limitations And Caveats](#limitions-and-caveats).\n4. \"Environment\" Independent Design, the core component doesn't even depend on any SQLite3 binding, so it can be ported to many js runtime environments (like Cloudflare Workers and Deno Deploy).\n\n## Install \u0026 usage\n\n```shell\nnpm i -g @qlite/cli@latest\n```\n\n\u003cdetails\u003e\u003csummary\u003eSample Config File\u003c/summary\u003e\n\n```yaml\ntables:\n  books:\n    columns:\n      id: {type: integer, primary_key: true}\n      title: {type: text, not_null: true}\n      url: {type: text}\n      created_at: {type: timestamp}\n    relations:\n      authors:\n        type: array\n        remote_table: book_author_maps\n        mappings:\n          id: book_id\n  book_author_maps:\n    columns:\n      book_id: {type: integer, primary_key: true}\n      author_id: {type: integer, primary_key: true}\n    relations:\n      book:\n        type: object\n        remote_table: books\n        mappings:\n          book_id: id\n      author:\n        type: object\n        remote_table: authors\n        mappings:\n          author_id: id\n  authors:\n    columns:\n      id: {type: integer, primary_key: true}\n      name: {type: text, not_null: true}\n      created_at: {type: timestamp}\n    relations:\n      books:\n        type: array\n        remote_table: book_author_maps\n        mappings:\n          id: author_id\n```\n\n\u003c/details\u003e\n\nStarting a dev server:\n\n```shell\nqlite serve x.yaml\n```\n\nAnd now you can play with the Graph*i*QL via [http://127.0.0.1:9000/graphql](http://127.0.0.1:9000/graphql)\n\n## Limitations And Caveats\n\nThis project aimed to provide some level of hasura compatibility, but full compatibility with it is not the goal.\n\nSupported features list:\n1. [Simple Object Queries](https://hasura.io/docs/latest/queries/postgres/simple-object-queries/) (note the json support is still lack)\n2. [Nested Object Queries](https://hasura.io/docs/latest/queries/postgres/nested-object-queries/)\n3. [Aggregation Queries](https://hasura.io/docs/latest/queries/postgres/aggregation-queries/)\n4. Basic [Filter Query Results / Search Queries](https://hasura.io/docs/latest/queries/postgres/query-filters/)\n5. [Sort Query Results](https://hasura.io/docs/latest/queries/postgres/sorting/)\n6. [Paginate Query Results](https://hasura.io/docs/latest/queries/postgres/pagination/)\n7. (builtin) [Use Multiple Arguments in a Query](https://hasura.io/docs/latest/queries/postgres/multiple-arguments/)\n8. (builtin) [Multiple Queries in a Request](https://hasura.io/docs/latest/queries/postgres/multiple-queries/)\n9. [Use Variables / Aliases / Fragments / Directives in Queries](https://hasura.io/docs/latest/queries/postgres/variables-aliases-fragments-directives/)\n10. [Filter based on nested objects' fields](https://hasura.io/docs/latest/queries/postgres/query-filters/#filter-based-on-nested-objects-fields)\n\nIncomplete/Unsupported features list: \n1. Not all comparison operators and aggregate functions are supported, but some of them will be supported in future releases\n2. [distinct_on](https://hasura.io/docs/latest/queries/postgres/distinct-queries/#the-distinct_on-argument) are not supported.\n3. on_conflict type has different syntax\n4. (TODO) JSON related feature\n5. (TODO) [Insert an object along with its related objects through relationships](https://hasura.io/docs/latest/mutations/postgres/insert/#pg-nested-inserts)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodehz%2Fqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodehz%2Fqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodehz%2Fqlite/lists"}