{"id":14384602,"url":"https://github.com/betagouv/react-elasticsearch","last_synced_at":"2025-07-27T02:32:27.930Z","repository":{"id":34876831,"uuid":"182243374","full_name":"betagouv/react-elasticsearch","owner":"betagouv","description":"🛁 React + Elasticsearch - UI components for building data-driven search experiences","archived":false,"fork":false,"pushed_at":"2023-01-08T08:45:18.000Z","size":3892,"stargazers_count":153,"open_issues_count":23,"forks_count":35,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-08-29T18:35:08.721Z","etag":null,"topics":["components","elasticsearch","library","react","ui"],"latest_commit_sha":null,"homepage":"https://react-elasticsearch.raph.site/","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/betagouv.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":"2019-04-19T09:54:22.000Z","updated_at":"2024-08-12T07:27:45.000Z","dependencies_parsed_at":"2023-01-15T09:49:34.825Z","dependency_job_id":null,"html_url":"https://github.com/betagouv/react-elasticsearch","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betagouv%2Freact-elasticsearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betagouv%2Freact-elasticsearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betagouv%2Freact-elasticsearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betagouv%2Freact-elasticsearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/betagouv","download_url":"https://codeload.github.com/betagouv/react-elasticsearch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227750183,"owners_count":17814129,"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":["components","elasticsearch","library","react","ui"],"created_at":"2024-08-28T18:01:30.290Z","updated_at":"2024-12-02T15:18:30.326Z","avatar_url":"https://github.com/betagouv.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# React Elasticsearch\n\n[![Version](https://img.shields.io/npm/v/react-elasticsearch.svg)](https://npmjs.org/package/react-elasticsearch)\n[![Downloads](https://img.shields.io/npm/dt/react-elasticsearch.svg)](https://npmjs.org/package/react-elasticsearch)\n[![License](https://img.shields.io/npm/l/react-elasticsearch.svg)](https://github.com/rap2hpoutre/react-elasticsearch/blob/master/package.json)\n\nUI components for React + Elasticsearch. Create search applications using declarative components.\n## Usage\n**👉 [Documentation and playable demo available here](https://react-elasticsearch.raph.site/).**\n\n```jsx\nconst MySearchComponent = () =\u003e (\n  \u003cElasticsearch url=\"http://example.org/search\"\u003e\n    \u003cSearchBox id=\"mainSearch\" fields={[\"title\"]} /\u003e\n    \u003cFacet id=\"actors\" fields={[\"actors\"]} /\u003e\n    \u003cFacet id=\"releasedYear\" fields={[\"releasedYear\"]} /\u003e\n    \u003cResults\n      id=\"results\"\n      items={data =\u003e\n        // Map on result hits and display whatever you want.\n        data.map(item =\u003e \u003cMyCardItem key={item._id} source={item._source} /\u003e)\n      }\n    /\u003e\n  \u003c/Elasticsearch\u003e\n);\n```\n\n## Install\n\n```\nnpm i react-elasticsearch\nyarn add react-elasticsearch\n```\n\n## Develop\n\nYou can test components with storybook (20+ examples).\n\n```\nnpm run storybook\n```\n\n## Main features\n\n- 🏝 Released under **MIT licence**.\n- 👩‍🎨 Each component is built with React and is **customisable**. Not too much extra features nor magic.\n- 💅 It comes with **no style** so it's the developers responsibility to implement their own.\n- 🐿 **35.32KB gzipped** for the whole lib, compatible with old browsers: \u003e0.03% usage.\n- 🔮 No legacy: **created in 2019**, **updated in 2021** with hooks.\n\n## Why?\n\nWe started building the search experience\nof the french [Cultural Heritage Open Platform](https://www.pop.culture.gouv.fr/)\nwith [ReactiveSearch](https://opensource.appbase.io/reactivesearch/), a well-known\nsearch UI components lib for React.\nAfter some weeks, we realized we had spent a lot of time tweaking and hacking the lib;\nwe had rewrote almost every components ourselves. We opened issues and pull requests on the repository,\nbut it seemed the lib was a bit stuck in a rewrite process.\nWe found out that we need a simple lib that can be easily extended with a similar API,\nwe created this one. This lib has many less feature than others, it's not even a decent competitor.\nBut since it helped us building a search experiences, it has been released. Hope it could help you!\n\n## Contributing\n\nOpen issues and PR here: https://github.com/betagouv/react-elasticsearch\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetagouv%2Freact-elasticsearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbetagouv%2Freact-elasticsearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetagouv%2Freact-elasticsearch/lists"}