{"id":13533313,"url":"https://github.com/lxsmnsyc/solid-giphy","last_synced_at":"2025-07-02T12:36:17.355Z","repository":{"id":57365861,"uuid":"419567859","full_name":"lxsmnsyc/solid-giphy","owner":"lxsmnsyc","description":"SolidJS bindings for GIPHY Web SDK","archived":false,"fork":false,"pushed_at":"2022-01-25T03:10:34.000Z","size":856,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-04T08:49:49.581Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lxsmnsyc.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}},"created_at":"2021-10-21T03:26:11.000Z","updated_at":"2025-03-20T16:24:22.000Z","dependencies_parsed_at":"2022-08-23T19:01:07.508Z","dependency_job_id":null,"html_url":"https://github.com/lxsmnsyc/solid-giphy","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/lxsmnsyc/solid-giphy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxsmnsyc%2Fsolid-giphy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxsmnsyc%2Fsolid-giphy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxsmnsyc%2Fsolid-giphy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxsmnsyc%2Fsolid-giphy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lxsmnsyc","download_url":"https://codeload.github.com/lxsmnsyc/solid-giphy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxsmnsyc%2Fsolid-giphy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260660115,"owners_count":23043488,"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":[],"created_at":"2024-08-01T07:01:18.643Z","updated_at":"2025-07-02T12:36:17.326Z","avatar_url":"https://github.com/lxsmnsyc.png","language":"TypeScript","funding_links":[],"categories":["📦 Components \u0026 Libraries"],"sub_categories":["Misc."],"readme":"# solid-giphy\n\n\u003e SolidJS bindings for [giphy](https://developers.giphy.com/docs/sdk#web)\n\n[![NPM](https://img.shields.io/npm/v/solid-giphy.svg)](https://www.npmjs.com/package/solid-giphy) [![JavaScript Style Guide](https://badgen.net/badge/code%20style/airbnb/ff5a5f?icon=airbnb)](https://github.com/airbnb/javascript)[![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?style=flat-square\u0026logo=codesandbox)](https://codesandbox.io/s/github/LXSMNSYC/solid-giphy/tree/main/examples/simple-example)\n\n## Install\n\n```bash\nyarn add solid-giphy\n```\n\n## Usage\n\n```jsx\nimport { createGiphyGrid, giphyGrid } from 'solid-giphy';\n\nconst gf = new GiphyFetch('your Web SDK key')\n\n// With directives\nfunction App() {\n  return (\n    \u003cdiv\n      use:giphyGrid={{\n        fetchGifs(offset: number) {\n          return gf.trending({ offset, limit: 25 });\n        },\n        width: GRID_WIDTH,\n        column: 3,\n        gutter: 6,\n      }}\n    /\u003e\n  );\n}\n\n// With utility\nfunction App() {\n  const [ref, setRef] = createSignal();\n\n  createGiphyGrid(ref, {\n    fetchGifs(offset: number) {\n      return gf.trending({ offset, limit: 25 });\n    },\n    width: GRID_WIDTH,\n    column: 3,\n    gutter: 6,\n  });\n\n  return \u003cdiv ref={setRef} /\u003e;\n}\n```\n\nRead more on [`@giphy/js-components`](https://github.com/Giphy/giphy-js/tree/master/packages/components). APIs are based from `@giphy/js-components` with minor changes.\n\n### Utilities\n\n- `useGiphyGrid`/`createGiphyGrid`\n- `useGiphyCarousel`/`createGiphyCarousel`\n- `useGiphyGif`/`createGiphyGif`\n- `useGiphyVideo`/`createGiphyVideo`\n\n### Directives\n\n- `giphyGrid`\n- `giphyCarousel`\n- `giphyGif`\n- `giphyVideo`\n\n## License\n\nMIT © [lxsmnsyc](https://github.com/lxsmnsyc)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flxsmnsyc%2Fsolid-giphy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flxsmnsyc%2Fsolid-giphy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flxsmnsyc%2Fsolid-giphy/lists"}