{"id":25448237,"url":"https://github.com/priyanshupz/minds_sdk","last_synced_at":"2026-05-03T05:39:40.602Z","repository":{"id":275775425,"uuid":"868173753","full_name":"PriyanshuPz/minds_sdk","owner":"PriyanshuPz","description":"The MindsClient Dart SDK allows developers to easily interact with the MindsDB API for managing minds, datasources, and completions. This SDK provides a structured way to make API requests using the Dio HTTP client while offering robust error handling and logging through the logging package.","archived":false,"fork":false,"pushed_at":"2024-10-07T16:24:49.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-12T03:52:08.252Z","etag":null,"topics":["dart","mindsdb","sdk"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PriyanshuPz.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":"2024-10-05T17:02:47.000Z","updated_at":"2024-10-08T10:17:07.000Z","dependencies_parsed_at":"2025-02-04T14:44:20.327Z","dependency_job_id":null,"html_url":"https://github.com/PriyanshuPz/minds_sdk","commit_stats":null,"previous_names":["priyanshupz/minds_sdk"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PriyanshuPz%2Fminds_sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PriyanshuPz%2Fminds_sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PriyanshuPz%2Fminds_sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PriyanshuPz%2Fminds_sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PriyanshuPz","download_url":"https://codeload.github.com/PriyanshuPz/minds_sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254485047,"owners_count":22078767,"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":["dart","mindsdb","sdk"],"created_at":"2025-02-17T19:19:09.409Z","updated_at":"2026-05-03T05:39:35.577Z","avatar_url":"https://github.com/PriyanshuPz.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minds Dart SDK\n\nThe `MindsClient` Dart SDK allows developers to easily interact with the MindsDB API for managing minds, datasources, and completions. This SDK provides a structured way to make API requests using the `Dio` HTTP client while offering robust error handling and logging through the `logging` package.\n\n## Features\n\n- **Mind Management**: Create, update, delete, and fetch details of Minds from MindsDB.\n- **Datasource Management**: Create, update, delete, and fetch Datasources linked to MindsDB.\n- **Chat Completion**: Integrate with chat completions API for natural language processing.\n- **Error Handling \u0026 Logging**: Comprehensive error handling and logging using `Dio` and `Logger`.\n\n## Getting Started\n\n### Prerequisites\n\nBefore you can start using the SDK, you'll need:\n\n- A valid MindsDB API Key\n- A project set up in Dart or Flutter\n\n### Installation\n\nTo install the SDK, add the following to your `pubspec.yaml` file:\n\n```yaml\ndependencies:\n  minds_sdk:\n    git: https://github.com/priyanshuverma-dev/minds-sdk.git\n```\n\nThen, install it by running:\n\n```bash\nflutter pub get\n```\n\n## Usage\n\nBelow is a simple example of how to use the `MindsClient` to interact with the MindsDB API.\n\n```dart\nimport 'package:minds_sdk/minds_sdk.dart';\n\nvoid main() async {\n  final sdk = MindsClient(apiKey: 'your_api_key_here');\n\n  // Fetch a list of minds\n  try {\n    final minds = await sdk.minds.list();\n    print(\"Fetched ${minds.length} minds.\");\n  } catch (e) {\n    print(\"Error fetching minds: $e\");\n  }\n\n  // Create a new mind\n  try {\n    await sdk.minds.create(name: 'TestMind');\n    print(\"Mind created successfully.\");\n  } catch (e) {\n    print(\"Error creating mind: $e\");\n  }\n}\n```\n\n## Features\n\n1. **Minds Management**\n   - Fetch all minds\n   - Get a specific mind by name\n   - Create, update, and delete minds\n\n2. **Datasources Management**\n   - List all datasources\n   - Get datasource by name\n   - Add and delete datasources from minds\n\n3. **Completions API**\n   - Use natural language processing with chat completions\n\n## Example\n\nFor more comprehensive examples, check the `/example` folder in this repository.\n\n```dart\nimport 'package:minds_sdk/minds_sdk.dart';\n\nvoid main() async {\n  final sdk = MindsClient(apiKey: 'your_api_key');\n\n  // Fetch a specific mind\n  final mind = await sdk.minds.get(name: 'TestMind');\n  if (mind != null) {\n    print('Fetched mind: ${mind.name}');\n  }\n}\n```\n\n## Error Handling\n\nThe SDK has built-in error handling for various HTTP issues, such as:\n\n- **Connection Timeout**\n- **Receive Timeout**\n- **Bad Responses** (e.g., 4xx and 5xx errors)\n- **Network Issues** (e.g., DNS errors, no internet)\n\nAll errors are logged using the `Logger` package for easy debugging.\n\n## Additional Information\n\nThis SDK is currently under active development. Contributions are welcome!\n\n- File issues on the [GitHub repository](https://github.com/priyanshuverma-dev/minds-sdk/issues).\n- Please ensure you have read the contributing guidelines before submitting a pull request.\n- For any inquiries or feature requests, feel free to open a discussion or contact the package authors.\n\n## License\n\nThis package is licensed under the MIT License. See the `LICENSE` file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpriyanshupz%2Fminds_sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpriyanshupz%2Fminds_sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpriyanshupz%2Fminds_sdk/lists"}