Skip to content

lipis/bit

 
 

Repository files navigation

Bit

Distributed code component manager

Appveyor Status Appveyor Status Appveyor Status

Bit is a code component manager written in javascript yet designed to be language agnostic.

It helps you make code components such as functions, classes and more reusable with zero initial configuration. Creating a Bit component and using it across repositories prevents the need to duplicate or re-invent it over and over again.

Bit uses a distributed scoping system to organize your components and take care of their entire lifecycle. Scopes take care of versioning, dependency management, building and testing components in an isolated environment and more. You can create a scope anywhere or connect scopes together to create a distributed network.

Features

  • Use components across repositories. Use your code components (functions/classes etc.) in multiple repositories without creating duplications or having to publish packages.

  • Zero initial configuration. Creating a new Bit component requires next to no configuration at all, and can be done directly from within the project you're working on. Transpiling and testing is done with simple commands.

  • Scoping system. Bit uses Scopes to organize, store and manage components. Exporting components to a remote scope makes them reusable across repositories for everyone working with this scope.

  • Distributed network. Scopes can be created anywhere with a simple command (bit init --bare), and can be connected to create a distributed network.

  • Component CI. Scopes can build and test your components in an isolated environment, so that they can build and run anywhere.

  • Fast dependency resolution. Dependency resolution is performed on-export, so Bit doesn't have to perform any runtime resolution. Both performance and reliability are increased.

  • Quick modification. Updating and modifying components is done with a single bit modify command. Components can be "brought in" for repairs, and shifted right back out.

  • Simple versioning management. Bit uses simplified incremental versioning for components, preferring reliability and simplicity.

  • Semantic search engine. A bit search CLI command kicks Bit's semantic search engine into action, searching for components created and stored in the Scopes you search.

Installation

npm install bit-bin -g

For more installation methods, please check our wiki's installation section.

Quick start

Here is a getting started guide.

Documentation

Docs

Installation

Getting started

Bit Scope

Bit component

Bit on the server

CLI refrence

Bit

Why Bit?

Before Bit, we often found ourselves re-writing or duplicating code across repositories over and over again. This wasted time and effort while making our code base harder to maintain.

The only alternative was to spend time on boilerplating and build configuration. We also ended up having to maintain a git repo, package and CI for every small component. This required too much overhead to be practical.

We needed a tool that can save us the overhead of making code components reusable. We also needed to take care of our components through their entire lifecycle. We also wanted to collaborate by using and maintaining each other's components.

To achieve this we designed Bit - the first code component manager. Bit is a distributed manager written in javascript yet designed to be language agnostic. It allows you to make components reusable with zero initial configuration and use these components across repositories. It also helps to store, organize and manage your components. It allows you to group your components by context, while also handling versioning, dependency management, build and test execution and more. Bit also makes components easy to find and collaborate on.

At the end of the day, distributed component management is deeply connected to the very basics of writing software as we want it to be. Managing code components can help us all to build great things out of smaller building blocks - together. Imagine the possibilities.

Feedback

Feedbacks are more than welcome: team@bitsrc.io

Contributing

Contributions are always welcome, no matter how large or small. Before contributing, please read the code of conduct.

See Contributing.

License

Apache License, Version 2.0

About

⚡⚡ Distributed code component manager

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.2%
  • Shell 1.6%
  • PowerShell 1.1%
  • Other 0.1%