@altimateai/dbt-integration

中文文档
0.3.17发布于 2026/11/05MITTypeScriptESM + CJS近 30 天下载 2814

Altimate TypeScript library for dbt integration

原始使用文档
文档目录7 节
  1. Features
  2. Installation
  3. Setup
  4. Commands
  5. Publishing
  6. Commit Convention
  7. License

@altimateai/dbt-integration

A comprehensive TypeScript library that provides a unified integration layer for dbt (data build tool) projects. Supports multiple dbt deployment strategies including dbt Core, dbt Cloud, dbt Fusion, and command-line execution.

Features

  • Multiple Integration Strategies: Support for dbt Core (Python bridge), dbt Cloud API, dbt Fusion, and CLI-based execution
  • Unified Interface: Framework-agnostic DBTFacade interface for all dbt operations
  • Manifest Parsing: Complete parsing of dbt manifests including models, sources, tests, macros, exposures, and metrics
  • Dependency Graph: Build and analyze dbt project dependency graphs and lineage
  • Python Integration: Direct Python bridge integration with dbt-core
  • Type Safety: Full TypeScript support with comprehensive type definitions

Installation

npm install @altimateai/dbt-integration
# or
yarn add @altimateai/dbt-integration

Requirements: Node.js 18+

Setup

yarn install

Commands

Build

  • yarn build - Build the library (CJS, ESM, and TypeScript declarations)
  • yarn dev - Build in watch mode

Testing

  • yarn test - Run Jest test suite
  • yarn test:watch - Run tests in watch mode
  • yarn test:coverage - Generate test coverage report
  • yarn test:integration - Run integration tests

Code Quality

  • yarn lint - Run ESLint
  • yarn lint:fix - Fix ESLint issues
  • yarn format - Format code with Prettier
  • yarn format:check - Check code formatting
  • yarn typecheck - Run TypeScript type checking

Publishing

  1. Update version in package.json
  2. Build the library: yarn build
  3. Publish to npm: npm publish

Releases normally publish automatically via .github/workflows/publish.yml when a GitHub release is published. If that event is dropped — a GitHub Actions incident did exactly this to the mcp-engine's v0.7.0 release — the same publish can be started by hand rather than re-cutting the release:

gh workflow run publish.yml --ref main -f ref=v0.3.14                   # publish that tag
gh workflow run publish.yml --ref main -f ref=v0.3.14 -f dry_run=true   # validate without publishing

--ref picks the copy of the workflow that runs, so keep it on main: a tag cut before this trigger existed has no workflow_dispatch. -f ref= picks what to publish.

Inputs: ref (tag/ref to publish from, defaults to the ref the run was started on), dist_tag (defaults to latest, or beta for a prerelease version), and dry_run. The version published is always the one in package.json at that ref, never the tag name, and the workflow refuses to run if that version is already on npm — so bump package.json before tagging.

The library is configured with:

  • TypeScript for type safety
  • tsup for bundling
  • Jest for testing
  • ESLint and Prettier for code quality
  • Husky for git hooks
  • Commitlint for conventional commits
  • MSW for API mocking in tests

Commit Convention

This project uses Conventional Commits. Valid commit types:

  • feat: New feature
  • fix: Bug fix
  • docs: Documentation changes
  • style: Code style changes (formatting, etc)
  • refactor: Code refactoring
  • perf: Performance improvements
  • test: Test changes
  • build: Build system changes
  • ci: CI/CD changes
  • chore: Other changes
  • revert: Revert previous commit

License

MIT

版本与发布记录

@altimateai/dbt-integration 共发布 44 个版本,首次发布于 2025/06/30;过去 12 个月发布了 29 个版本。

版本发布日期距今
0.3.17latest2026/11/052 天前
0.3.162026/10/299 天前
0.3.152026/10/1325 天前
0.3.142026/10/011 个月前
0.3.132026/09/161 个月前
0.3.122026/09/091 个月前

其他发布通道:beta → 0.1.0-beta.2。

关于 @altimateai/dbt-integration 的常见问题

@altimateai/dbt-integration 是什么?

Altimate TypeScript library for dbt integration

如何安装 @altimateai/dbt-integration?

在项目目录运行 npm install @altimateai/dbt-integration,或使用 pnpm add / yarn add / bun add。

@altimateai/dbt-integration 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@altimateai/dbt-integration 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@altimateai/dbt-integration 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@altimateai/dbt-integration 可以商用吗?

@altimateai/dbt-integration 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@altimateai/dbt-integration 的下载量有多少?

根据 npm 官方下载统计,@altimateai/dbt-integration 在 2026/10/06 – 2026/11/04 这 30 天内被下载 2,814 次,日均约 94 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@altimateai/dbt-integration 还在维护吗?

最新版本 0.3.17 发布于 2026/11/05(2 天前);至今共发布 44 个版本,其中过去 12 个月发布了 29 个;首次发布于 2025/06/30。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。