← Catalog

JavaScript (Node.js) source code: 7 .js modules + a sample .env and setup instructions in the README

AI Content Factory: Autonomous Content Generation & Publishing System

Version 1.0.0 Updated: 2026-09-30 Quality: 78/100

A ready-to-use Node.js application that plans a month's worth of content, generates posts and visuals tailored to your tone of voice, and automatically publishes them to Telegram, VK, and Instagram on a schedule.

📁 What is inside (ZIP, 8 files)
  • 01_content_planner.js
  • 02_post_generator.js
  • 03_visual_generator.js
  • 04_scheduler.js
  • 05_publisher.js
  • 06_storage.js
  • 07_main.js
  • README.md

Problem

Manual content production eats up 20+ hours a month: you have to come up with a plan, write posts for each platform, find or generate visuals, and remember to publish at the right time. ChatGPT helps with the text, but it can't publish, doesn't keep a history, and has no scheduler — you still end up copying everything by hand and setting reminders.

Solution

The app automates the entire cycle: 01_content_planner.js builds a monthly content calendar, 02_post_generator.js writes posts for Telegram, VK, and Instagram tailored to your tone of voice, 03_visual_generator.js creates images via DALL-E or Stable Diffusion, 04_scheduler.js queues publications and triggers them on schedule, 05_publisher.js publishes through the Telegram Bot API, VK API, and Instagram Graph API, while 06_storage.js saves the full history to JSON and SQLite. 07_main.js ties it all together into a single CLI command.

More details

The AI Content Factory isn't a set of prompts or a guide — it's a fully working Node.js application that covers the entire content production cycle, from idea to publication. You run a single command and get a 30-day content plan with dates, topics, formats, and hashtags, generated for your niche and tone of voice. Then the system writes post copy for each platform on its own, tailored to its specifics — length, emojis, calls to action, hashtags. After the copy, the visuals module generates images via the DALL-E or Stable Diffusion API, checks file size and format, and if the external API is unavailable, inserts a placeholder so the pipeline never stops. Everything then flows into a publishing queue managed by a built-in node-cron scheduler: it checks the queue every minute, supports pause and resume, and logs every step. The publishing module works directly with the Telegram Bot API, VK API, and Instagram Graph API: it authenticates, uploads media, schedules posts, and retries on failures, returning the ID of the published post. The full history — copy, visuals, statuses — is saved to JSON files and SQLite, so you can search, filter, and restore content after failures, as well as reuse your best-performing posts. Setup takes a single evening: you fill in the .env with your OpenAI keys and Telegram/VK/Instagram tokens and launch the entry point 07_main.js. From there, the system runs autonomously: the scheduler sends tasks to publishing on schedule

What you get

  • 01_content_planner.js — monthly content plan generation with caching
  • 02_post_generator.js — post copy generation for Telegram, VK, and Instagram
  • 03_visual_generator.js — image creation via DALL-E/Stable Diffusion with fallback
  • 04_scheduler.js — publishing scheduler on node-cron with pause and logs
  • 05_publisher.js — publishing to Telegram, VK, and Instagram via API
  • 06_storage.js — history storage in JSON and SQLite with search and filtering
  • 07_main.js — entry point with CLI commands and graceful shutdown

Installation guide

1. Install Node.js 18+ and download the product files. 2. Run npm install to install dependencies (openai, node-cron, axios, better-sqlite3, and others). 3. Fill in the .env file: OpenAI key, Telegram Bot, VK, and Instagram Graph API tokens, channel/group IDs. 4. Run node 07_main.js plan --niche "your niche" --freq 5 --tone "friendly" --platforms telegram,vk,instagram to create a content plan. 5. Run node 07_main.js generate to generate posts and visuals. 6. Run node 07_main.js schedule to start the publishing scheduler. 7. To pause, use node 07_main.js pause; to resume, use resume.

Requirements

Node.js 18+, npm, OpenAI API key, Telegram bot and its token, VK app with access token, Instagram Business account and Graph API token, write permissions to a local folder for JSON and SQLite, a server or computer running continuously for the scheduler to operate.

Options and pricing

Choose the level that suits you:

  • Basic — $29 · Основной набор файлов продукта.
  • Standard — $49 · Полный набор + инструкция по внедрению.
  • Extended — $78 · Всё из Стандарта + расширенные материалы и обновления.

Frequently asked questions

What is included?

A ready-to-use Node.js application that plans a month's worth of content, generates posts and visuals tailored to your tone of voice, and automatically publishes them to Telegram, VK, and Instagram on a schedule.

In what format will I receive the files?

After payment you get a secure link and a ZIP archive with all materials. The link is shown on the order page and available via the Telegram bot.

How long is the download link valid?

The link is active for 24 hours, up to 5 downloads.

Do I need special skills?

The product is designed for entrepreneurs and specialists. A step-by-step guide is included; no programming skills required.

Can I get a refund?

For refunds, contact support: [email protected].

See also