# @codeblitzjs/ide-code-api

> @codeblitzjs/ide-code-api

Latest version **2.4.6** (published 2025-12-22) · 0 weekly downloads

## Install

```sh
npm install @codeblitzjs/ide-code-api
pnpm add @codeblitzjs/ide-code-api
yarn add @codeblitzjs/ide-code-api
bun add @codeblitzjs/ide-code-api
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 2.4.6 |
| Published | 2025-12-22 |
| First published | 2023-08-18 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 335.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | lengthmin, ricbet |
| Keywords | opensumi codeblitzjs |

## Links

- npm: https://www.npmjs.com/package/@codeblitzjs/ide-code-api
- npm.io page: https://npm.io/package/@codeblitzjs/ide-code-api

## Dependencies (4)

- [mobx](https://npm.io/package/mobx.md) ^6.12.0
- [tslib](https://npm.io/package/tslib.md) ^2.2.0
- [@codeblitzjs/ide-common](https://npm.io/package/@codeblitzjs/ide-common.md) 2.4.6
- [@codeblitzjs/ide-sumi-core](https://npm.io/package/@codeblitzjs/ide-sumi-core.md) 2.4.6

## Recent versions

- 2.4.6 (latest) — 2025-12-22
- 0.0.20250306022350-fixcshow.0 (next) — 2025-03-06
- 2.2.2-rc-1731467964.0 (rc) — 2024-11-13
- 2.4.5 — 2025-12-22
- 2.5.1 — 2025-03-06
- 2.5.0 — 2025-02-18
- 2.4.4 — 2025-02-10
- 2.4.3 — 2024-12-17
- 2.4.2 — 2024-12-17
- 0.0.20241213091804-fixrrror.0 — 2024-12-13
- 2.4.1 — 2024-12-10
- 2.4.0 — 2024-12-06
- 2.3.5 — 2024-11-20
- 2.3.4 — 2024-11-19
- 0.0.20241118064056-featiles.0 — 2024-11-18
- … 107 more at https://npm.io/package/@codeblitzjs/ide-code-api/versions

## README

# code-api
English | [简体中文](./README-zh_CN.md)
## Code Service Integration API

### How to Develop
#### [Github](https://github.com/)
- Configure [PrivateToken](https://github.com/settings/tokens/new?scopes=repo&description=codeblitz) by yourself
- API Reference
  1. [Github REST API](https://docs.github.com/rest)
  2. [Github GraphQL API](https://docs.github.com/graphql)
#### [GitLab](https://gitlab.cn/)
- Provide basic code service API for self-integration. Modify the default configuration in packages/code-api/src/common/config.ts
- [GitLab API](https://docs.gitlab.com/ee/api/)
- Local Development
  ```bash
  # 1. start server
  npm run start

  # 2. open url
  http://localhost:9009/gitlab/${group}/${name}
  ```

#### [AtomGit](https://atomgit.com/)
- Configure [Private Token](https://atomgit.com/-/profile/tokens) by yourself
- API Reference: [AtomGit API](https://docs.atomgit.com/category/api)
- Local Development
  ```bash
  # 1. start server
  npm run start
  # 2. set  AtomGit Token in packages/startup/src/startup/index.tsx 

    CodeServiceModule.Config({
      ...
      atomgit: {
        // atomgit token https://atomgit.com/-/profile/tokens
        token: 'your token'
      }
      ...
    })

  # 3. open url
  http://localhost:9009/atomgit/opensumi/codeblitz
  ```
#### [GitLink](https://www.gitlink.org.cn/)  
- APIReference: [GitLink API](https://www.gitlink.org.cn/docs/api#introduction)
- Introduction: [GitLink WebIDE](https://help.gitlink.org.cn/%E4%BB%A3%E7%A0%81%E5%BA%93%E7%AE%A1%E7%90%86/WebIDE)
- Local Development
  ```bash
  # 1. set .env file
  CODE_SERVICE_HOST=https://www.gitlink.org.cn
  # 2. set gitlnk cookie  
  set Cookie in packages/toolkit/webpack/config.dev.js from https://www.gitlink.org.cn response header
  # 3. start server
  npm run start
  # 3. open url
  http://localhost:9009/gitlink/opensumi/core
  ```

#### [Gitee](https://gitee.com/) 
- APIReference: [Gitee API](https://gitee.com/api/v5/swagger#/getV5ReposOwnerRepoStargazers?ex=no)
- Example: [WebIDE for Gitee](https://codeblitz.cloud.alipay.com/gitee/opensumi/codeblitz)
- Local Development
  ```bash
  # 1. set Gitee Token in packages/startup/src/startup/index.tsx
      CodeServiceModule.Config({
        ...
        gitee: {
          ## set gitee file request  recursive: true
          recursive: true,
          ## gitee token https://gitee.com/profile/personal_access_tokens
          token: 'your token'
        },
        ...
    })
  # 3. start server
  npm run start
  # 3. open url
  http://localhost:9009/gitee/opensumi/codeblitz
  ```

#### [Codeup](https://codeup.aliyun.com)
- APIReference: [Codeup API](https://help.aliyun.com/document_detail/2527054.html)
- Introduction: [Codeup WebIDE](https://mp.weixin.qq.com/s/CFrxYdFxbj53JRqGDqAH-A?poc_token=HI1nhWWjDV_9mGYXCa3tjkBesVjvosq1JYEiXo6m)
- Local Development
  ```bash
  # 1. set .env file
  CODE_SERVICE_HOST=https://codeup.aliyun.com
  # 2. set codeup cookie   
  
  set Cookie in packages/toolkit/webpack/config.dev.js from https://codeup.aliyun.com response header

  # 3. set codeup projectId
    codeup: {
      owner: 'your owner',
      name: 'your name',
      projectId: 'your projectId', # require
    }

  # 3. start server
  npm run start
  # 3. open url
  http://localhost:9009/codeup/${owner}/${name}

  ```

---
_Source: https://npm.io/package/@codeblitzjs/ide-code-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
