← Documentation Home

Doc Engine Developer Guide

Overview

Package: @bluefly/doc-engine Version: 1.0.0 License: MIT

Production-ready API documentation engine for LLM Platform services with OpenAPI-first architecture and Apidog integration.

Key Features

Installation

npm install

Quick Start

Development

npm run dev

Server starts on http://localhost:4100

Production

npm run build
npm start

API Endpoints

Base URL: http://localhost:4100

Documentation

Apidog Integration

Apidog Integration

Setup

  1. Get Apidog API token from apidog.com
  2. Save token: bash echo "your-token" > ~/.tokens/apidog.token chmod 600 ~/.tokens/apidog.token

Usage

# Test connection
curl http://localhost:4100/api/v1/apidog/connection

# Sync all services
curl -X POST http://localhost:4100/api/v1/apidog/sync \
  -H "Content-Type: application/json" \
  -d '{"projectPrefix": "LLM", "groupByProject": true}'

# Pull latest spec
npm run apidog:pull -- --service agent-chat --output ../agent-chat/specs/openapi/agent-chat-api.yaml

Testing

npm test
npm run test:unit
npm run test:integration
npm run test:e2e

Tech Stack

Documentation