{"id":19991299,"url":"https://github.com/FoundatioFx/Foundatio.Repositories","last_synced_at":"2025-05-04T10:31:24.563Z","repository":{"id":37821828,"uuid":"50538492","full_name":"FoundatioFx/Foundatio.Repositories","owner":"FoundatioFx","description":"Generic repositories","archived":false,"fork":false,"pushed_at":"2025-05-01T18:48:33.000Z","size":3340,"stargazers_count":81,"open_issues_count":9,"forks_count":25,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-05-01T19:41:20.239Z","etag":null,"topics":["elasticsearch","foundatio","genericrepository","indexing","repository","snapshots"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FoundatioFx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","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,"zenodo":null},"funding":{"github":"exceptionless"}},"created_at":"2016-01-27T21:18:49.000Z","updated_at":"2025-05-01T18:48:36.000Z","dependencies_parsed_at":"2023-02-03T13:15:21.762Z","dependency_job_id":"cd572aa1-33f7-4785-b4d3-4153bc937795","html_url":"https://github.com/FoundatioFx/Foundatio.Repositories","commit_stats":{"total_commits":968,"total_committers":13,"mean_commits":74.46153846153847,"dds":0.5299586776859504,"last_synced_commit":"56dec27e5d58050e98bcdf9b84ad12d9a1bf7c74"},"previous_names":[],"tags_count":68,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FoundatioFx%2FFoundatio.Repositories","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FoundatioFx%2FFoundatio.Repositories/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FoundatioFx%2FFoundatio.Repositories/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FoundatioFx%2FFoundatio.Repositories/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FoundatioFx","download_url":"https://codeload.github.com/FoundatioFx/Foundatio.Repositories/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252320226,"owners_count":21729093,"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":["elasticsearch","foundatio","genericrepository","indexing","repository","snapshots"],"created_at":"2024-11-13T04:51:42.141Z","updated_at":"2025-05-04T10:31:20.528Z","avatar_url":"https://github.com/FoundatioFx.png","language":"C#","funding_links":["https://github.com/sponsors/exceptionless"],"categories":["C\\#"],"sub_categories":[],"readme":"![Foundatio](https://raw.githubusercontent.com/FoundatioFx/Foundatio/master/media/foundatio-dark-bg.svg#gh-dark-mode-only \"Foundatio\")![Foundatio](https://raw.githubusercontent.com/FoundatioFx/Foundatio/master/media/foundatio.svg#gh-light-mode-only \"Foundatio\")\n\n[![Build status](https://github.com/FoundatioFx/Foundatio.Repositories/workflows/Build/badge.svg)](https://github.com/FoundatioFx/Foundatio.Repositories/actions)\n[![NuGet Version](http://img.shields.io/nuget/v/Foundatio.Repositories.svg?style=flat)](https://www.nuget.org/packages/Foundatio.Repositories/)\n[![feedz.io](https://img.shields.io/badge/endpoint.svg?url=https%3A%2F%2Ff.feedz.io%2Ffoundatio%2Ffoundatio%2Fshield%2FFoundatio.Repositories%2Flatest)](https://f.feedz.io/foundatio/foundatio/packages/Foundatio.Repositories/latest/download)\n[![Discord](https://img.shields.io/discord/715744504891703319)](https://discord.gg/6HxgFCx)\n\nGeneric repository contract and implementations. Currently only implemented for Elasticsearch, but there are plans for other implementations.\n\n# Features\n\n- Simple document repository pattern\n  - CRUD operations: Add, Save, Remove, Get\n- Supports patch operations\n  - JSON patch\n  - Partial document patch\n  - Painless script patch (Elasticsearch)\n  - Can be applied in bulk using queries\n- Async events that can be wired up and listened to outside of the repos\n- Caching (real-time invalidated before save and stored in distributed cache)\n- Message bus support (enables real-time apps sends messages like doc updated up to the client so they know to update the UI)\n- Searchable that works with Foundatio.Parsers lib for dynamic querying, filtering, sorting and aggregations\n- Document validation\n- Document versioning\n- Soft deletes\n- Auto document created and updated dates\n- Document migrations\n- Elasticsearch implementation\n  - Plan to add additional implementations (Postgres with Marten would be a good fit)\n- Elasticsearch index configuration allows simpler and more organized configuration\n  - Schema versioning\n  - Parent child queries\n  - Daily and monthly index strategies\n- Supports different consistency models (immediate, wait or eventual)\n  - Can be configured at the index type or individual query level\n- Query builders used to make common ways of querying data easier and more portable between repo implementations\n- Can still use raw Elasticsearch queries\n- Field includes and excludes to make the response size smaller\n- Field conditions query builder\n- Paging including snapshot paging support\n- Dynamic field resolution for using friendly names of dynamically generated fields\n- Jobs for index maintenance, snapshots, reindex\n- Strongly typed field access (using lambda expressions) to enable refactoring\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFoundatioFx%2FFoundatio.Repositories","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFoundatioFx%2FFoundatio.Repositories","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFoundatioFx%2FFoundatio.Repositories/lists"}