# @toptal/davinci-ci

> Continuos integrations tools for frontend projects

Latest version **8.0.0** (published 2026-04-07) · SEE LICENSE IN LICENSE.MD license · 0 weekly downloads

## Install

```sh
npm install @toptal/davinci-ci
pnpm add @toptal/davinci-ci
yarn add @toptal/davinci-ci
bun add @toptal/davinci-ci
```

Provides the command `davinci-ci`.

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 8.0.0 |
| Published | 2026-04-07 |
| First published | 2020-02-04 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE.MD |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 6 |
| Unpacked size | 99.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Toptal |
| Maintainers | talbot |
| Keywords | ci, docker, jenkins |

## Links

- npm: https://www.npmjs.com/package/@toptal/davinci-ci
- Repository: https://github.com/toptal/davinci
- Homepage: https://github.com/toptal/davinci/tree/master/packages/ci#readme
- Issues: https://github.com/toptal/davinci/issues
- npm.io page: https://npm.io/package/@toptal/davinci-ci

## Dependencies (6)

- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [danger](https://npm.io/package/danger.md) ^13.0.4
- [markdown-table](https://npm.io/package/markdown-table.md) ^2.0.0
- [@commitlint/cli](https://npm.io/package/@commitlint/cli.md) ^17.6.7
- [@toptal/davinci-cli-shared](https://npm.io/package/@toptal/davinci-cli-shared.md) ^3.0.0
- [@commitlint/config-conventional](https://npm.io/package/@commitlint/config-conventional.md) ^17.1.0

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 8.0.0 (latest) — 2026-04-07
- 8.0.1-alpha-no-jira-optional-styled-components-b40956e5.22 (canary) — 2026-11-04
- 0.1.0-ci-danger-alpha.19 (ci-danger-alpha) — 2020-02-10
- 0.1.0-ci-alpha.260 (ci-alpha) — 2020-02-04
- 8.0.1-alpha-no-jira-sourcemap-tweak-0cce52fa.24 — 2026-11-03
- 8.0.1-alpha-no-jira-sourcemap-tweak-238fd569.23 — 2026-11-03
- 8.0.1-alpha-no-jira-sourcemap-tweak-00571479.22 — 2026-11-02
- 8.0.1-alpha-no-jira-test-rspack-config-22a432ee.32 — 2026-10-29
- 8.0.1-alpha-no-jira-test-rspack-config-734e479e.31 — 2026-10-29
- 8.0.1-alpha-no-jira-test-rspack-config-eba4f3c6.29 — 2026-10-28
- 8.0.1-alpha-no-jira-test-rstest-runner-1c22c63f.38 — 2026-10-27
- 8.0.1-alpha-no-jira-test-rstest-runner-c46171d1.35 — 2026-10-27
- 8.0.1-alpha-no-jira-test-rstest-runner-875c966d.34 — 2026-10-27
- 8.0.1-alpha-no-jira-test-rstest-runner-2fafe6de.28 — 2026-10-27
- 8.0.1-alpha-no-jira-test-rspack-davinci-qa-config-f9e30d2a.37 — 2026-10-25
- … 1484 more at https://npm.io/package/@toptal/davinci-ci/versions

## README

# `@toptal/davinci-ci`

Holds Jenkins jobs definitions and Docker files supporting frontend applications.

## Demo

Watch [this video](https://drive.google.com/file/d/1C5ApkATYCXZ8kTn2LeG5FkM4AveLxAd8/view?usp=sharing) for a demo of how to set up a davinci-ci Jenkins jobs for a project or check the [How to start a new application](https://toptal-core.atlassian.net/wiki/spaces/ENG/pages/1120831396/How+to+start+a+new+application) guide.

## Installation

Use it by installing `pnpm add @toptal/davinci-ci` in your project.

## Usage

### Commands

- `davinci-ci danger` - checks if the PR title and and commit messages comply with [Toptal's standards](https://toptal-core.atlassian.net/wiki/spaces/ENG/pages/210665897/Commit+Message+Quality)

To check commit message quality locally just add `--local` argument

`davinci-ci danger --local`

Using husky, you can check the commit message before pushing files changes.

```js
"husky": {
    "hooks": {
      "pre-push": "pnpm davinci-ci danger --local"
    }
  },
```

### Configuration

You can specify which scenarios you want to be performed both for PR and master branch updates by creating a davinci.yaml file in the root of your project with the following structure.

(by default each config option is set to `false`)

```yaml
pr:
  contract_testing: false

master:
  publish_as_package: false
  deploy_staging: false
  deploy_storybook_staging: false
  deploy: false
  require_assignee: false # danger check will require each PR to have assignee
  require_assignee_whitelist: ['dependabot-preview[bot]', 'dependabot[bot]']

# Customize Slack channel where the notifications will get posted
slack_channel: 'custom-slack-channel'
is_progressive_web_app: true
```

### Commands you can use in GitHub PRs

`@toptal-bot run tests` - to re-run `pr-tests` job

`@toptal-bot run package:alpha-release` - to run `publish-alpha-package` job, which is publishing alpha release of the package to npm (temploy for npm package)

### How to setup cypress in CI

In order to enable cypress tests on CI jobs (both pr-tests and master-main) enable it on your project `davinci.yaml` file, like in the example below:

```yaml
pr:
  cypress: true
master:
  cypress: true
```

If you have it set as false or if this config is not present in your project `davinci.yaml` file, cypress step will be skipped.

### Pre-configured davinci docker image

Davinci CI has a pre-configured docker image recipe, which can be used to build optimized docker images for your frontend applications.
The image is present on path `src/configs/docker/Dockerfile.gha-deploy` and have a few build arguments that have to be provided:

| Build argument           | Description                                                                                              | Required |
| ------------------------ | -------------------------------------------------------------------------------------------------------- | -------- |
| `DIST_FOLDER`            | Static build location                                                                                    | Yes      |
| `ENV_RUNTIME_ENTRYPOINT` | Entrypoint script, davinci has an example file present at `src/configs/docker/env-runtime.entrypoint.sh` | Yes      |
| `VERSION`                | Current release version                                                                                  | Yes      |
| `NGINX_CONFIG`           | Ngninx config, davinci has an example file present at `src/configs/docker/nginx-vhost.conf`              | Yes      |
| `HTML_CDN_CACHE_TAG`     | `Cache-Tag` header for HTML documents, used for specific cache purging                                   | No       |

The default entrypoint `src/configs/docker/env-runtime.entrypoint.sh` reads environment file (`.env.$DAVINCI_ENV` has to be located in the root of the dist folder) and populates the environment variables with values from the file if the overriden environment variable is not set. Variables that are provided to `docker run` command (for example, `docker run -e DAVINCI_envvar1=1`) have higher priority that variables from the envrionment file.

### IDE Tooling

This package can be used directly in your IDE through these extensions

- [IntelliJ Suite (WebStorm, RubyMine, IDEA)](https://github.com/zaguiini/intellij-davinci-plugin)
- [VSCode](https://github.com/borisyordanov/vscode-supercharge-react)

---
_Source: https://npm.io/package/@toptal/davinci-ci · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
