heripo-engine 是 AI Skill Hub 本期精选AI工具之一。综合评分 6.3 分,整体质量稳定。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。
heripo-engine 是一款基于 TypeScript 开发的开源工具,专注于 installable、ai、apple-silicon 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
heripo-engine 是一款基于 TypeScript 开发的开源工具,专注于 installable、ai、apple-silicon 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:npm 全局安装 npm install -g heripo-engine # 方式二:npx 直接运行(无需安装) npx heripo-engine --help # 方式三:项目依赖安装 npm install heripo-engine # 方式四:从源码运行 git clone https://github.com/heripo-lab/heripo-engine cd heripo-engine npm install npm start
# 命令行使用
heripo-engine --help
# 基本用法
heripo-engine [options] <input>
# Node.js 代码中使用
const heripo_engine = require('heripo-engine');
const result = await heripo_engine.run(options);
console.log(result);
# heripo-engine 配置说明 # 查看配置选项 heripo-engine --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export HERIPO_ENGINE_CONFIG="/path/to/config.yml"
TypeScript library for extracting structured data from archaeological excavation report PDFs
English | 한국어
⚠️ macOS Only: This project currently supports only macOS (Apple Silicon or Intel). See @heripo/pdf-parser README for detailed system requirements.
ℹ️ Notes (v0.1.x): - Korean Report Correction: Korean reports are automatically detected and corrected via VLM (Vision Language Model) - TOC Dependency: Reports without a TOC will fail (intentional). Rare extraction failures will be addressed via human intervention - Vertical Text: Old vertical-text documents with Chinese numeral page numbers are a long-term goal, not currently scheduled
🌐 Online Demo: Try it without local installation → engine-demo.heripo.org
heripo engine is a collection of tools for analyzing archaeological excavation report PDFs and extracting structured data. It is designed to effectively process documents that span hundreds of pages and contain complex layouts, tables, diagrams, and photographs.
heripo lab is an open-source R&D group that combines archaeological domain knowledge with software engineering expertise to drive practical research efficiency.
```bash
pnpm install
brew install python@3.11
brew install jq
brew install poppler
brew install node npm install -g pnpm ```
For detailed installation guide, see @heripo/pdf-parser README.
```bash
pnpm add @heripo/pdf-parser pnpm add @heripo/document-processor pnpm add @heripo/model pnpm add @heripo/logger
pnpm add @heripo/pdf-parser @heripo/document-processor @heripo/model @heripo/logger ```
pnpm build
pnpm --filter @heripo/pdf-parser build
import type { DoclingDocument } from '@heripo/model';
import { anthropic } from '@ai-sdk/anthropic';
import { openai } from '@ai-sdk/openai';
import { DocumentProcessor } from '@heripo/document-processor';
import { Logger } from '@heripo/logger';
import { PDFParser } from '@heripo/pdf-parser';
import { readFile } from 'node:fs/promises';
const logger = new Logger({
debug: (...args) => console.debug('[heripo]', ...args),
info: (...args) => console.info('[heripo]', ...args),
warn: (...args) => console.warn('[heripo]', ...args),
error: (...args) => console.error('[heripo]', ...args),
});
// 1. PDF Parsing
const pdfParser = new PDFParser({
port: 5001,
logger,
});
await pdfParser.init();
const tokenUsageReport = await pdfParser.parse(
'file:///path/to/report.pdf',
'report-001',
async (artifactDir) => {
const doclingDocument = JSON.parse(
await readFile(`${artifactDir}/result.json`, 'utf8'),
) as DoclingDocument;
// 2. Document Processing (inside callback)
const processor = new DocumentProcessor({
logger,
fallbackModel: anthropic('claude-opus-4-5'),
pageRangeParserModel: openai('gpt-5.2'),
tocExtractorModel: openai('gpt-5.1'),
captionParserModel: openai('gpt-5-mini'),
textCleanerBatchSize: 10,
captionParserBatchSize: 5,
captionValidatorBatchSize: 5,
});
const { document, usage } = await processor.process(
doclingDocument,
'report-001',
artifactDir,
);
// 3. Use Results
console.log('TOC:', document.chapters);
console.log('Images:', document.images);
console.log('Tables:', document.tables);
console.log('Footnotes:', document.footnotes);
console.log('Token Usage:', usage.total);
},
true, // cleanupAfterCallback
{}, // PDFConvertOptions
);
// Cleanup
await pdfParser.dispose();
// Specify LLM models per component + fallback retry
const processor = new DocumentProcessor({
logger,
fallbackModel: anthropic('claude-opus-4-5'), // For retry on failure
pageRangeParserModel: openai('gpt-5.2'),
tocExtractorModel: openai('gpt-5.1'),
validatorModel: openai('gpt-5.2'),
visionTocExtractorModel: openai('gpt-5-mini'),
captionParserModel: openai('gpt-5-nano'),
textCleanerBatchSize: 20,
captionParserBatchSize: 10,
captionValidatorBatchSize: 10,
maxRetries: 3,
maxValidationRetries: 3,
enableFallbackRetry: true, // Automatically retry with fallbackModel on failure (default: false)
onTokenUsage: (report) => console.log('Token usage:', report.total),
});
pnpm test)Try it without local installation:
🔗 https://engine-demo.heripo.org
The online demo has a daily usage limit (3 times). For full functionality, local execution is recommended.
A web application providing real-time PDF processing monitoring:
```bash cd apps/demo-web cp .env.example .env
pnpm install pnpm dev ```
Access http://localhost:3000 in your browser
Key Features:
For detailed usage, see apps/demo-web/README.md.
Raw Data Extraction → Archaeological Data Ledger → Archaeological Data Standard → Domain Ontology → DB Storage
| Stage | Description |
|---|---|
| **Raw Data Extraction** | Document data structurally extracted in the original format of PDF reports (no archaeological interpretation) |
| **Data Ledger** | Immutable ledger structured using a universal model covering global archaeology |
| **Data Standard** | Extensible standard model (base standard → country-specific → domain-specific extensions) |
| **Ontology** | Domain-specific semantic models and knowledge graphs |
| **DB Storage** | Independent storage and utilization for each pipeline stage |
Current Implementation (v0.1.x):
Planned Stages:
For a detailed roadmap, see docs/roadmap.md.
| Package | Version | Description |
|---|---|---|
| [@heripo/pdf-parser](./packages/pdf-parser) | 0.1.x | PDF parsing and OCR |
| [@heripo/document-processor](./packages/document-processor) | 0.1.x | Document structure analysis and LLM processing |
| [@heripo/model](./packages/model) | 0.1.x | Data models and type definitions |
| [@heripo/logger](./packages/logger) | 0.1.x | Logger interface and adapter |
pnpm --filter @heripo/pdf-parser test pnpm --filter @heripo/document-processor test ```
```bash
pnpm --filter @heripo/pdf-parser test:coverage
pnpm --filter @heripo/pdf-parser dev ```
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
经综合评估,heripo-engine 在AI工具赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | heripo-engine |
| 原始描述 | 开源AI工具:TypeScript library for extracting structured data from archaeological excavation。⭐8 · TypeScript |
| Topics | installableaiapple-siliconarchaeologycultural-heritagedigital-transformationtypescript |
| GitHub | https://github.com/heripo-lab/heripo-engine |
| License | Apache-2.0 |
| 语言 | TypeScript |
收录时间:2026-05-22 · 更新时间:2026-05-22 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。