{"id":19435828,"url":"https://github.com/code-kern-ai/bricks","last_synced_at":"2025-05-15T19:05:10.979Z","repository":{"id":63725531,"uuid":"555525353","full_name":"code-kern-ai/bricks","owner":"code-kern-ai","description":"Open-source natural language enrichments at your fingertips.","archived":false,"fork":false,"pushed_at":"2025-01-14T10:54:16.000Z","size":3461,"stargazers_count":456,"open_issues_count":83,"forks_count":25,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-31T23:33:55.932Z","etag":null,"topics":["best-practices","natural-language-processing","natural-language-understanding","python","templates"],"latest_commit_sha":null,"homepage":"","language":"Python","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/code-kern-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2022-10-21T18:59:34.000Z","updated_at":"2025-03-17T22:36:18.000Z","dependencies_parsed_at":"2024-04-17T02:56:43.838Z","dependency_job_id":"47ec81ef-c327-4f33-baec-7e51719b7023","html_url":"https://github.com/code-kern-ai/bricks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-kern-ai%2Fbricks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-kern-ai%2Fbricks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-kern-ai%2Fbricks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-kern-ai%2Fbricks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code-kern-ai","download_url":"https://codeload.github.com/code-kern-ai/bricks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247755560,"owners_count":20990620,"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":["best-practices","natural-language-processing","natural-language-understanding","python","templates"],"created_at":"2024-11-10T15:08:08.275Z","updated_at":"2025-04-08T00:36:49.861Z","avatar_url":"https://github.com/code-kern-ai.png","language":"Python","readme":"![](images/identifier.svg)\n\n\u003cp align=\"center\"\u003e\n    \u003cb\u003eOpen-source natural language enrichments at your fingertips.\u003c/b\u003e\n\u003c/p\u003e\n\n\u003cp align=center\u003e\n    \u003ca href=\"https://github.com/code-kern-ai/refinery/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-Apache%202.0-success\" alt=\"Apache 2.0 License\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/code-kern-ai/bricks/discussions\"\u003e\u003cimg src=\"https://img.shields.io/badge/Discussions-gray.svg?logo=github\" alt=\"GitHub Discussions\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://discord.gg/qf4rGCEphW\"\u003e\u003cimg src=\"https://img.shields.io/badge/Discord-gray.svg?logo=discord\" alt=\"Discord\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://twitter.com/MeetKern\"\u003e\u003cimg src=\"https://img.shields.io/badge/Twitter-white.svg?logo=twitter\" alt=\"Twitter\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.linkedin.com/company/kern-ai\"\u003e\u003cimg src=\"https://img.shields.io/badge/LinkedIn-0A66C2.svg?logo=linkedin\" alt=\"LinkedIn\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.youtube.com/channel/UCru-6X24b76TRsL6KWMFEFg\"\u003e\u003cimg src=\"https://img.shields.io/badge/YouTube-FF0000.svg?logo=youtube\" alt=\"YouTube\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/orgs/code-kern-ai/projects/7\"\u003e\u003cimg src=\"https://img.shields.io/badge/Roadmap-yellow.svg\" alt=\"Roadmap\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://demo.kern.ai/\"\u003e\u003cimg src=\"https://img.shields.io/badge/Demo-white.svg\" alt=\"Playground\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://bricks.kern.ai/\"\u003e\u003cimg src=\"https://img.shields.io/badge/Web-white.svg\" alt=\"Website\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nBrowse [bricks](https://bricks.kern.ai) to find gold nuggets for your projects; enrich your texts e.g. with sentence complexity estimations, sentiment analysis, and more.\n\n![](images/hero.svg)\n\n## Table of contents\n- [Why bricks?](#why-bricks)\n- [Demo](#demo)\n- [What are classifiers, extractors and generators?](#what-are-classifiers-extractors-and-generators)\n- [Structure of modules](#structure-of-modules)\n- [Getting started](#getting-started)\n- [Contributing](#contributing)\n- [refinery](#refinery)\n- [Regular updates and newsletter](#regular-updates-and-newsletter)\n- [License](#license)\n\n## Why bricks?\nWe're aiming to build a library of off-the-shelf natural language enrichments that can be used in any project as well as directly in our main project [refinery](https://github.com/code-kern-ai/refinery). We're building `bricks` to make it easier for developers to build better products. That's where the name comes from. `bricks` is a library not in the sense that you `pip install` it in your repository, but that you can copy-paste the code from the online platform. \n\n## Demo\n[![Demo](images/thumbnail-bricks.png)](https://www.youtube.com/watch?v=Wcbdwwr5AI8\u0026ab_channel=KernAI)\nClick on the image or [here](https://www.youtube.com/watch?v=Wcbdwwr5AI8\u0026ab_channel=KernAI) to watch the demo.\n\n\n## What are classifiers, extractors and generators?\nWe generally summarize them as modules in this repository.\n- `classifiers` are modules that summarize a given text into a specific category. For example, a module that classifies a text into the category `news` or `blog` would go into this folder. It can also be about enrichments, e.g. to detect languages and such.\n- `extractors` are modules that retrieve specific information from a given text. For example, a module that extracts the author of a text would go into this folder.\n- `generators` create new content based on a given text, or filtersets for refinery with pre-defined content. For example, a module that translates one language into another language would be a generator.\n\n## Structure of modules\nEach module has a folder with the following structure:\n- `__init__.py`: if the module can be executed as a script, this file contains the entry point.\n- `README.md`: a description of the module, which is displayed on the platform on the detail page of the module.\n- `code_snippet_refinery.md`: the displayed code snippet based on a SpaCy input. This is showed on the detail page of the module.\n- `code_snippet_common.md`: the displayed code snippet for any Python env on the detail page of the module.  This is showed on the detail page of the module.\n- `config.py`: a config script to synchronize this repository with the online platform.\n\nIf you want to add a new module, please look into our [contributing guidelines](#contributing).\n\n## Getting started\nYou can access the modules of this repository in [bricks](https://bricks.kern.ai). If you want to host the modules yourself, you can do so by following the steps below.\n\n1. Clone this repository\n2. (optional) Create a virtual environment\n3. Install the dependencies (`pip install -r requirements.txt`)\n4. Run the FastAPI server (`uvicorn api:api`)\n5. Go to `http://localhost:8000/docs` to see the documentation\n\n## Contributing\nModules added in this repository are added to the online platform by us continuously. If you want to add your own module, please follow the [contribution guidelines](CONTRIBUTING.md). If you have any questions, please reach out to us anytime on [Discord](https://discord.gg/qf4rGCEphW).\n\nIf the content of this repository is helpful, please leave a star ⭐️. Also, make sure to check out [refinery](#refinery).\n\n## refinery\nCheck out our main product [refinery](https://github.com/code-kern-ai/refinery), which is another open-source project helping you to scale, assess and maintain your training data. You can use the modules from bricks right away in refinery.\n\n## Regular updates and newsletter\nWe regularly update bricks with new modules (we aim to add two modules per week, if not more). If you want to stay up to date, you can subscribe to our [newsletter](https://www.kern.ai/#email-address).\n\n## License\nThis repository is licensed under the Apache License, Version 2.0. View a copy of the [License file](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-kern-ai%2Fbricks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-kern-ai%2Fbricks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-kern-ai%2Fbricks/lists"}