{"id":15008467,"url":"https://github.com/felangel/cubit","last_synced_at":"2025-10-03T16:31:36.441Z","repository":{"id":41209947,"uuid":"269267005","full_name":"felangel/cubit","owner":"felangel","description":"Cubit is a lightweight state management solution. It is a subset of the bloc package that does not rely on events and instead uses methods to emit new states.","archived":true,"fork":false,"pushed_at":"2020-07-09T03:40:50.000Z","size":3130,"stargazers_count":598,"open_issues_count":0,"forks_count":25,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-09-14T03:39:18.374Z","etag":null,"topics":["dart","dart-library","dart-package","dartlang","flutter","flutter-package","state-management","stream"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/cubit","language":"Dart","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/felangel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null},"funding":{"github":["felangel"]}},"created_at":"2020-06-04T05:17:27.000Z","updated_at":"2025-06-08T06:13:39.000Z","dependencies_parsed_at":"2022-08-10T01:43:15.161Z","dependency_job_id":null,"html_url":"https://github.com/felangel/cubit","commit_stats":null,"previous_names":[],"tags_count":52,"template":false,"template_full_name":null,"purl":"pkg:github/felangel/cubit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felangel%2Fcubit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felangel%2Fcubit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felangel%2Fcubit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felangel%2Fcubit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/felangel","download_url":"https://codeload.github.com/felangel/cubit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felangel%2Fcubit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278055193,"owners_count":25922345,"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","status":"online","status_checked_at":"2025-10-02T02:00:08.890Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["dart","dart-library","dart-package","dartlang","flutter","flutter-package","state-management","stream"],"created_at":"2024-09-24T19:18:55.801Z","updated_at":"2025-10-03T16:31:36.067Z","avatar_url":"https://github.com/felangel.png","language":"Dart","funding_links":["https://github.com/sponsors/felangel"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cb\u003e⚠️ Attention: This repository has been moved to https://github.com/felangel/bloc and is now read-only!\u003c/b\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/felangel/cubit/master/assets/cubit_full.png\" height=\"100\" alt=\"Cubit\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/felangel/cubit/actions\"\u003e\u003cimg src=\"https://github.com/felangel/cubit/workflows/build/badge.svg\" alt=\"build\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/felangel/cubit/actions\"\u003e\u003cimg src=\"https://github.com/felangel/cubit/blob/master/packages/cubit/coverage_badge.svg\" alt=\"coverage\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/felangel/cubit\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/felangel/cubit.svg?style=flat\u0026logo=github\u0026colorB=deeppink\u0026label=stars\" alt=\"Star on GitHub\"\u003e\u003c/a\u003e\n\u003ca href=\"https://discord.gg/Hc5KD3g\"\u003e\u003cimg src=\"https://img.shields.io/discord/649708778631200778.svg?logo=discord\u0026color=blue\" alt=\"Discord\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-purple.svg\" alt=\"License: MIT\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/zepfietje/starware\"\u003e\u003cimg src=\"https://img.shields.io/badge/Starware-%E2%AD%90-black?labelColor=%23f9b00d\" alt=\"Starware\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nCubit is a lightweight state management solution. It is a subset of the [bloc package](https://pub.dev/packages/bloc) that does not rely on events and instead uses methods to emit new states.\n\n## Usage\n\n```dart\nclass CounterCubit extends Cubit\u003cint\u003e {\n  CounterCubit() : super(0);\n\n  void increment() =\u003e emit(state + 1);\n  void decrement() =\u003e emit(state - 1);\n}\n```\n\n## Packages\n\n| Package                                                                                 | Pub                                                                                                        |\n| --------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |\n| [cubit](https://github.com/felangel/cubit/tree/master/packages/cubit)                   | [![pub package](https://img.shields.io/pub/v/cubit.svg)](https://pub.dev/packages/cubit)                   |\n| [cubit_test](https://github.com/felangel/cubit/tree/master/packages/cubit_test)         | [![pub package](https://img.shields.io/pub/v/cubit_test.svg)](https://pub.dev/packages/cubit_test)         |\n| [flutter_cubit](https://github.com/felangel/cubit/tree/master/packages/flutter_cubit)   | [![pub package](https://img.shields.io/pub/v/flutter_cubit.svg)](https://pub.dev/packages/flutter_cubit)   |\n| [angular_cubit](https://github.com/felangel/cubit/tree/master/packages/angular_cubit)   | [![pub package](https://img.shields.io/pub/v/angular_cubit.svg)](https://pub.dev/packages/angular_cubit)   |\n| [hydrated_cubit](https://github.com/felangel/cubit/tree/master/packages/hydrated_cubit) | [![pub package](https://img.shields.io/pub/v/hydrated_cubit.svg)](https://pub.dev/packages/hydrated_cubit) |\n| [replay_cubit](https://github.com/felangel/cubit/tree/master/packages/replay_cubit)     | [![pub package](https://img.shields.io/pub/v/replay_cubit.svg)](https://pub.dev/packages/replay_cubit)     |\n\n## Documentation\n\n- [Cubit Package](https://github.com/felangel/cubit/tree/master/packages/cubit/README.md)\n- [Cubit Test Package](https://github.com/felangel/cubit/tree/master/packages/cubit_test/README.md)\n- [Flutter Cubit Package](https://github.com/felangel/cubit/tree/master/packages/flutter_cubit/README.md)\n- [Angular Cubit Package](https://github.com/felangel/cubit/tree/master/packages/angular_cubit/README.md)\n- [Hydrated Cubit Package](https://github.com/felangel/cubit/tree/master/packages/hydrated_cubit/README.md)\n- [Replay Cubit Package](https://github.com/felangel/cubit/tree/master/packages/replay_cubit/README.md)\n\n## Dart Versions\n\n- Dart 2: \u003e= 2.7.0\n\n## Maintainers\n\n- [Felix Angelov](https://github.com/felangel)\n\n## Supporters\n\n[![Very Good Ventures](https://raw.githubusercontent.com/felangel/cubit/master/assets/vgv_logo.png)](https://verygood.ventures)\n\n## Starware\n\nCubit is Starware.  \nThis means you're free to use the project, as long as you star its GitHub repository.  \nYour appreciation makes us grow and glow up. ⭐\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelangel%2Fcubit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelangel%2Fcubit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelangel%2Fcubit/lists"}