{"id":30887771,"url":"https://github.com/yungvldai/fbem","last_synced_at":"2025-09-08T14:10:29.405Z","repository":{"id":63379844,"uuid":"566103468","full_name":"yungvldai/fbem","owner":"yungvldai","description":"Functional BEM packages 🧱","archived":false,"fork":false,"pushed_at":"2023-12-14T22:57:25.000Z","size":2653,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-08T16:38:08.786Z","etag":null,"topics":["bem","css","functional","loader","methodology","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/search?q=%40fbem","language":"TypeScript","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/yungvldai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-15T01:04:37.000Z","updated_at":"2023-12-18T16:58:50.000Z","dependencies_parsed_at":"2023-01-29T19:46:05.309Z","dependency_job_id":null,"html_url":"https://github.com/yungvldai/fbem","commit_stats":null,"previous_names":[],"tags_count":59,"template":false,"template_full_name":null,"purl":"pkg:github/yungvldai/fbem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yungvldai%2Ffbem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yungvldai%2Ffbem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yungvldai%2Ffbem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yungvldai%2Ffbem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yungvldai","download_url":"https://codeload.github.com/yungvldai/fbem/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yungvldai%2Ffbem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271443249,"owners_count":24760552,"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-08-21T02:00:08.990Z","response_time":74,"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":["bem","css","functional","loader","methodology","typescript"],"created_at":"2025-09-08T14:10:23.360Z","updated_at":"2025-09-08T14:10:29.398Z","avatar_url":"https://github.com/yungvldai.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Functional BEM\n\nFBEM is a functional implementation of the [BEM methodology](https://en.bem.info/methodology/quick-start/). \nFBEM packages help you clean up your styles and make them clearer and more organized.\n\n## Demo\n\u003cimg src=\"https://github.com/yungvldai/fbem/blob/master/media/demo.gif\" alt=\"demo\" width=\"100%\"\u003e\n\n\n## Packages\n\n**There is a rule that packages with the same major version must be compatible**\n\n|       Package name      |                                                      Package version                                                      |\n|:-----------------------:|:-------------------------------------------------------------------------------------------------------------------------:|\n|        [@fbem/core](https://github.com/yungvldai/fbem/tree/master/packages/core)       |              [ ![npm](https://img.shields.io/npm/v/@fbem/core) ]( https://www.npmjs.com/package/@fbem/core )              |\n|     [@fbem/css-loader](https://github.com/yungvldai/fbem/tree/master/packages/css-loader)    |        [ ![npm](https://img.shields.io/npm/v/@fbem/css-loader) ]( https://www.npmjs.com/package/@fbem/css-loader )        |\n| [@fbem/typescript-plugin](https://github.com/yungvldai/fbem/tree/master/packages/typescript-plugin) | [ ![npm](https://img.shields.io/npm/v/@fbem/typescript-plugin) ]( https://www.npmjs.com/package/@fbem/typescript-plugin ) |\n|       [@fbem/utils](https://github.com/yungvldai/fbem/tree/master/packages/utils)       |             [ ![npm](https://img.shields.io/npm/v/@fbem/utils) ]( https://www.npmjs.com/package/@fbem/utils )             |\n\n\n## Code example\n\n```css\n/* style.css */\n\n.block {\n  position: relative;\n}\n\n.block__elem {\n  color: purple;\n}\n\n.block__elem_mod_val-a {\n  backgound: white;\n}\n\n.block__elem_mod_val-b {\n  backgound: black;\n}\n\n.block__name-with-dashes {\n  display: none;\n}\n\n.block__name-with-dashes_visible {\n  display: block;\n}\n```\n```js\n/* index.js */\n\nimport { cnBlock, cnBlockElem, cnBlockNameWithDashes } from './style.css';\n\ncnBlock(); // 'block'\ncnBlockElem({ mod: 'val-a' }); // 'block__elem block__elem_mod_val-a'\ncnBlock({}, ['mix']); // 'block mix'\ncnBlockElem({ mod: 'val-b' }, ['mix1', 'mix2']); // 'block__elem block__elem_mod_val-b mix1 mix2'\ncnBlockNameWithDashes({ visible: true }); // 'block__name-with-dashes block__name-with-dashes_visible'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyungvldai%2Ffbem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyungvldai%2Ffbem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyungvldai%2Ffbem/lists"}