bit README

The project's README from github.com/teambit/bit. As one markdown file: README.md.

Website | Docs | Community | Bit Cloud

apache prs Circle Status Styled with Prettier Join Discord

Bit is the build system to connect components and apps from development to CI in the AI era. Bit organizes source code into composable components, empowering to build reliable, scalable and consistent applications. It enables AI agents to intelligenly create and reuse components via MCP preventing duplication and accelerating development.

⚡ Features

Bit supports all tooling in the JS ecosystem and comes out of the box with official dev environments for NodeJS, React, Angular, Vue, React Native, NextJS and far more. All are native to TypeScript and ESM and equipped with the best dev tooling.

Bit is a fit to every codebase structure. You can use Bit components in a monorepo, polyrepo, or even without repositories at all.

Getting started

Install Bit

Use the Bit installer to install Bit to be available on your PATH.

npx @teambit/bvm install

Initialize Bit on a new folder or in an existing project by running the following command:

bit init --default-scope my-org.my-project

Make sure to create your scope on the Bit platform and use the right org and project name. After running the command, Bit is initialized on the chosen directory, and ready to be used via Bit commands, AI agent, your editor or the Bit UI!

Create shell application

Create the application shell to run, compose and deploy your application:

bit create react-app corporate-website

Run the platform:

bit run corporate-website

Head to http://localhost:3000 to view your application shell. You can start composing the application layout and specific pages to build your application. Learn more on building shell applications.

Compose components

Create the components to compose into the feature. Run the following command to create a new React UI component for the application login route:

bit create react pages/login

Find simple guides for creating NodeJS modules, UI components and apps, backend services and more on the Create Component docs.

Compose the component into the application shell:

import { Login } from '@my-org/users.pages.login';
import { Routes, Route } from 'react-router-dom';

export function CorporateWebsite() {
  return (
    <AcmeTheme>
      <NavigationProvider>
        <Routes>
          <Route path="/" element={<div>Hello world</div>} />
          <Route path="/login" element={<Login />} />
        </Routes>
      </NavigationProvider>
    </AcmeTheme>
  );
}

Head to http://localhost:3000/login to view your new login page. You can use bit templates to list official templates or find guides for creating React hooks, backend services, NodeJS modules, UI components and more on our create components docs. Optionally, use bit start to run the Bit UI to preview components in isolation.

Release and deploy

You can either use hosted scopes on Bit Cloud or by hosting scopes on your own. Use the following command to create your Bit Cloud account and your first scope.

bit login

Use semantic versioning to version your components:

bit tag --message "my first release" --major

By default, Bit uses Ripple CI to build components. You can use the --build flag to build the components on the local machine. To tag and export from your CI of choice to automate the release process or use our official CI scripts.

After versioning, you can proceed to release your components:

bit export

Modernize existing projects

Head over to your bit.cloud account to see your components build progress. Once the build process is completed, the components will be available for use using standard package managers:

npm install @my-org/users.pages.login

Next steps

Contributors

Bit is entirely built with Bit and you can find all its components on Bit Cloud.

Your contribution, no matter how big or small, is much appreciated. Before contributing, please read the code of conduct.

See Contributing.

License

Apache License, Version 2.0

bit (teambit/bit)

Searching Database…

18.5K ·GitHub
Что это такое?Bit — это опенсорсная система сборки для эры ИИ: она организует исходный код в составные переиспользуемые компоненты и приложения. Разработчики и ИИ-агенты создают такие компоненты и переиспользуют их через MCP, что избавляет от дублирования кода.
Bit — это фреймворк, под который я пишу код, или инструмент, который оборачивает мою кодовую базу?Инструмент, а не UI-фреймворк: это система сборки и рабочее окружение вокруг вашего существующего кода. Ваши компоненты остаются React, Vue, Angular или Node.js — Bit лишь добавляет сверху версионирование, композицию и CI.
Как установить Bit и запустить первое приложение?Выполните npx @teambit/bvm install, затем bit init --default-scope my-org.my-project (сначала создайте скоуп на bit.cloud). После этого bit create react-app my-app и bit run my-app поднимут ваше приложение на localhost:3000.
Что должно быть установлено заранее?Node.js 22.13.0 или новее (согласно полю engines в репозитории). Bit поддерживает все инструменты JS-экосистемы и изначально заточен под TypeScript и ESM.
Мне обязательно переносить весь код в монорепозиторий, чтобы пользоваться Bit?Нет. Bit подходит для любой структуры кодовой базы — компоненты могут жить в монорепозитории, в отдельных репозиториях или вообще без репозиториев. Общие компоненты размещаются в скоупах на платформе Bit Cloud.
Работает ли он на Windows, macOS и Linux?Да. Он устанавливается как CLI в PATH через инсталлятор на базе Node и работает на Windows, macOS и Linux; управлять им можно из терминала, редактора, интерфейса Bit UI или через ИИ-агента.
Что именно Bit умеет создавать?Официальные dev-окружения из коробки есть для Node.js, React, Angular, Vue, React Native, Next.js и других — так что можно создавать UI-компоненты, бэкенд-сервисы, Node-модули и полноценные каркасы приложений, всё со встроенными инструментами разработки.
Что на практике даёт ИИ-часть?Bit предоставляет MCP-сервер, чтобы ИИ-агенты могли осмысленно создавать и переиспользовать существующие компоненты вместо дублирования кода. Команды также задают blueprint-шаблоны, так что разработчики и ИИ строят из одних и тех же стандартных блоков.
Что такое shell-приложения и зачем они мне?Это каркасы приложений, которые вы собираете из переиспользуемых компонентов и фич: создайте такой командой bit create react-app, соберите в него страницы и раскладку — и получайте простые и безопасные атомарные деплои на тест и прод.
Creator
teambit
Size
247.5 MB
Stars
18.5K
Age
9y
Commits · 90 Days