{"id":19785588,"url":"https://github.com/imerkle/fbt_runtime","last_synced_at":"2026-06-16T14:32:12.530Z","repository":{"id":127996057,"uuid":"166463834","full_name":"imerkle/fbt_runtime","owner":"imerkle","description":"Runtime for Facebook fbt ","archived":false,"fork":false,"pushed_at":"2019-01-20T15:53:08.000Z","size":133,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T13:29:19.570Z","etag":null,"topics":["facebook","fbt","framework","i18n","internationalization","javascript"],"latest_commit_sha":null,"homepage":"https://github.com/facebookincubator/fbt/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imerkle.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-18T19:44:35.000Z","updated_at":"2019-07-27T20:59:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"8482ab6e-9b1d-40ec-a7bc-dd19d3fe9f99","html_url":"https://github.com/imerkle/fbt_runtime","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/imerkle/fbt_runtime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imerkle%2Ffbt_runtime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imerkle%2Ffbt_runtime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imerkle%2Ffbt_runtime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imerkle%2Ffbt_runtime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imerkle","download_url":"https://codeload.github.com/imerkle/fbt_runtime/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imerkle%2Ffbt_runtime/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34410780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"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":["facebook","fbt","framework","i18n","internationalization","javascript"],"created_at":"2024-11-12T06:15:04.776Z","updated_at":"2026-06-16T14:32:12.511Z","avatar_url":"https://github.com/imerkle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Installation\n\nInstall `yarn add git+https://github.com/imerkle/fbt_runtime.git`\n\n# Setup\n\nPut your `translatedFbts.json` in `src/` folder.\n\nResolve the module in webpack. The files are in `/dist/`\n\n```\n    modules: [\n      path.resolve(__dirname, './node_modules/fbt_runtime/dist/'),\n      path.resolve(__dirname, './node_modules/fbt_runtime/dist/shared'),\n      path.resolve(__dirname, './node_modules/fbt_runtime/dist/shared/FbtNumber'),\n      path.resolve(__dirname, './node_modules/fbt_runtime/dist/nonfb'),\n      path.resolve(__dirname, './node_modules/fbt_runtime/dist/nonfb/mocks'),\n      './node_modules',\n    ],\n```\n\n# Usage\n\n```\nconst fbt = require(\"fbt\")\n\n\u003cfbt desc=\"hello\"\u003ehello\u003c/fbt\u003e\n\n```\n\nI have modified original script to work for typescript since it only took *.js files. But you need to add this to `types/global.d.ts` to remove warnings form ts compiler.\n\n```\ndeclare module JSX {\n  interface IntrinsicElements {\n    \"fbt\": any\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimerkle%2Ffbt_runtime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimerkle%2Ffbt_runtime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimerkle%2Ffbt_runtime/lists"}