Configuration

The system is controlled by a single JSON file: content.json.

Structure Overview

The file contains a clients array. Each client object defines the platform, credentials, and a list of posts to publish.

content.json
{
  "clients": [
    {
      "client_id": "client_a",
      "platform": "wordpress",
      "config": { ... },
      "posts": [ ... ]
    },
    {
      "client_id": "client_b",
      "platform": "shopify",
      "config": { ... },
      "posts": [ ... ]
    }
  ]
}

Post Object Fields

FieldTypeRequired
titleStringYes
content_htmlStringYes
statusStringNo (default: publish)
publish_dateISO DateNo
tagsArrayNo
categoriesArrayNo
featured_image_urlURL StringNo

Full Example

{
  "clients": [
    {
      "client_id": "tech_blog",
      "platform": "wordpress",
      "config": {
        "site_url": "https://techblog.com",
        "username": "admin",
        "application_password": "xxxx-xxxx-xxxx-xxxx"
      },
      "posts": [
        {
          "title": "The Future of AI",
          "content_html": "<h1>AI is changing everything...</h1>",
          "tags": ["AI", "Tech"],
          "categories": ["Opinion"],
          "featured_image_url": "https://example.com/image.jpg",
          "status": "draft"
        }
      ]
    }
  ]
}