- Notifications
You must be signed in to change notification settings - Fork939
AI-powered development workspaces with reusable components, architectural clarity and zero overhead.
License
teambit/bit
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Website |Docs |Community |Bit Cloud
Bit is the AI-powered development workspace with reusable components and zero overhead for the era of AI. Bit organizes source code into composable components, empowering to build reliable, scalable and consistent applications. It supports local AI agents via MCP for creating and composing reusable components at ease.
⚡Features
- Shell applications. Compose reusable components and features into application shells.
- Reusable components. Create reusable UI components and modules to reuse across your software.
- Standard building blocks. Define the blueprints templates for creating components for devs and AI as one.
- Atmoic and safe deployments. Ensure simple, safe and optimized deployments of apps and services for testing and production.
Bit supports all tooling in the JS ecosystem and comes out of the box with official dev environments forNodeJS,React,Angular,Vue,React Native,NextJS andfar 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.
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 tocreate 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 the application shell to run, compose and deploy your application:
bit create react-app corporate-website
Run the platform:
bit run corporate-website
Head tohttp://localhost:3000 to view your application shell. You can start composing the application layout and specific pages to build your application. Learn more onbuilding shell applications.
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 theCreate Component docs.
Compose the component into the application shell:
import{Login}from'@my-org/users.pages.login';import{Routes,Route}from'react-router-dom';exportfunctionCorporateWebsite(){return(<AcmeTheme><NavigationProvider><Routes><Routepath="/"element={<div>Helloworld</div>}/><Routepath="/login"element={<Login/>}/></Routes></NavigationProvider></AcmeTheme>);}
Head tohttp://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 ourcreate components docs. Optionally, use bit start to run the Bit UI to preview components in isolation.
You can either use hosted scopes onBit Cloud or byhosting 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 usesRipple 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 useour official CI scripts.
After versioning, you can proceed to release your components:
bitexport
Head over to yourbit.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
Bit is entirely built with Bit and you can find all its components onBit Cloud.
Your contribution, no matter how big or small, is much appreciated. Before contributing, please read thecode of conduct.
SeeContributing.
About
AI-powered development workspaces with reusable components, architectural clarity and zero overhead.
Topics
Resources
License
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.