{"id":13407964,"url":"https://github.com/rexxars/picosanity","last_synced_at":"2025-05-07T04:10:30.131Z","repository":{"id":32595020,"uuid":"137721278","full_name":"rexxars/picosanity","owner":"rexxars","description":"Tiny Sanity client alternative should you only need to do queries","archived":false,"fork":false,"pushed_at":"2025-04-30T18:05:48.000Z","size":1305,"stargazers_count":74,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-04T22:44:11.464Z","etag":null,"topics":["client","headless","sanity"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/rexxars.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2018-06-18T07:21:44.000Z","updated_at":"2025-04-25T15:54:52.000Z","dependencies_parsed_at":"2024-06-18T18:11:57.910Z","dependency_job_id":"5d95edbb-316f-444b-ab6d-c5eeae830c79","html_url":"https://github.com/rexxars/picosanity","commit_stats":{"total_commits":77,"total_committers":5,"mean_commits":15.4,"dds":0.1298701298701299,"last_synced_commit":"5e3453a8d83a0425097635c608f3de8bbb952ece"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rexxars%2Fpicosanity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rexxars%2Fpicosanity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rexxars%2Fpicosanity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rexxars%2Fpicosanity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rexxars","download_url":"https://codeload.github.com/rexxars/picosanity/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252810273,"owners_count":21807759,"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":["client","headless","sanity"],"created_at":"2024-07-30T20:00:49.840Z","updated_at":"2025-05-07T04:10:30.114Z","avatar_url":"https://github.com/rexxars.png","language":"JavaScript","funding_links":[],"categories":["Related projects"],"sub_categories":["Studio Inspiration"],"readme":"# picosanity\n\n[![npm version](https://img.shields.io/npm/v/picosanity.svg?style=flat-square)](http://browsenpm.org/package/picosanity)[![npm bundle size](https://img.shields.io/bundlephobia/minzip/picosanity?style=flat-square)](https://bundlephobia.com/result?p=picosanity)\n\nTiny Sanity client alternative, if you only need to do queries and only need to support modern browsers.\n\n## Targets\n\n- Node.js \u003e= 20\n- Modern browsers (Edge \u003e= 14, Chrome, Safari, Firefox etc)\n\n## Installation\n\n```bash\nnpm install --save picosanity\n```\n\n## Usage\n\n```js\nimport {createClient} from 'picosanity'\n\nconst client = createClient({\n  projectId: 'myProjectId',\n  dataset: 'myDataset',\n  apiVersion: '2025-04-25', // use a UTC date string\n  useCdn: true,\n})\n\nclient\n  .fetch('*[_type == $someType]', {someType: 'article'})\n  .then((articles) =\u003e console.log(articles))\n  .catch((err) =\u003e console.error('Oh noes: %s', err.message))\n```\n\n## UMD bundle\n\nYou can load this module as a UMD-bundle from unpkg - https://unpkg.com/picosanity  \nIf used in a global browser context, it will be available as `window.PicoSanity.createClient()`\n\n## License\n\nMIT © [Espen Hovlandsdal](https://espen.codes/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frexxars%2Fpicosanity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frexxars%2Fpicosanity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frexxars%2Fpicosanity/lists"}