For security, stability, privacy and other considerations, most enterprises choose to set up a code hosting platform on the Intranet. As the enterprise develops, there will be more and more projects.

Due to the large number of projects and the mobility of personnel, it is difficult for anyone in the enterprise to master all the details of the code. In order to uniformly check whether the code contains certain sensitive information or whether some unsafe methods are used, developers need to manually check their own codes, which is time-consuming and laborious.

Therefore, it is very important to search the entire enterprise library. Especially for the enterprises that deploy the code on the local server through GitLab, it becomes extremely difficult to conduct the global code search locally due to the lack of the search engine integrated by the cloud hosting platform itself.

Just recently, the Gitee team opened source Kooder, a free code search tool, with the goal of providing source code, repository and Issue search services for code managed systems including Gitee/GitLab/Gitea.

Kooder hits the heart of enterprise code search, being fully open source and easy to deploy. If you can’t wait to get started, you can visit the main warehouse address on Gitee to view the (STAR) project:

Gitee (fast) : gitee.com/koode/koode…

GitHub:github.com/oschina/koo…

Introduction to the

Kooder: Open source code search platform based on Java implementation. The goal is to provide automated source, repository, and Issue search services for including Gitee/GitLab/Gitea code management systems. This helps improve the efficiency of searching for codes and problems, and ensures the security of codes in the Intranet environment.

architecture

The service consists of two modules, gateway and Indexer. Gateway is used to accept the index task from HTTP and store the task in the queue after checking it. The Gateway also accepts the search request and returns the search results to the client. The Indexer process is responsible for monitoring the index tasks in the queue and updating those tasks to add, delete, and modify indexes into the index library.

  • coreCore objects and public classes
  • gatewayUsed to receive indexing and search requests from HTTP
  • indexerServices that build, update, and drop indexes

interface

contribution

Kooder has detailed documentation, setup and deployment steps, as well as an easy way to install Docker. Make it easy for you to read its source code, run and debug it locally, develop it again and deploy it internally!

Click “Star” to support every open source project that addresses pain points! Finally, please contribute code and questions to Kooder.

Gitee (fast) : gitee.com/koode/koode…

GitHub:github.com/oschina/koo…

The project follows the Apache-2.0 open source license and developers are welcome to submit issues and PR freely.