Open source  /  Implementation guide

Open-source implementation · Content Marketing & Copywriting

Run a content operation on open source

What this is. A build-it-yourself path to the same outcome, made from open-source parts you host. It does not publish 5 Kings’ internal method, client data, or any third party’s confidential information — and it says plainly where the open-source path is weaker than a specialist service.

In one paragraph

A content operation is a pipeline: idea intake, brief, draft, edit, publish, distribute, update. Every stage has an open-source tool, and the publishing half is the part most teams overpay for. This guide builds the pipeline so the constraint becomes editorial judgement instead of software licences.

What you end up with

  • A CMS you own, with content modelled so it can be reused rather than trapped in one layout
  • A brief template that a writer or a model can follow, with an explicit acceptance bar
  • An automated prose lint pass that catches the defects editors keep fixing by hand
  • A publication and update schedule that is data-driven, not calendar-driven

The reference stack

Every project below is open source and self-hostable. Licences are the ones the project publishes today; check them against your own distribution model before you ship, because a licence can change and an AGPL project has obligations a MIT project does not.

LayerOpen-source projectLicenceWhat it does for you
CMSWordPressGPL-2.0Publishing, revisions, editorial roles, and a REST API for everything else.
Static alternativeAstroMITContent collections with typed frontmatter when the site does not need a database.
Prose lintingValeMITEnforces a style guide mechanically: banned words, passive voice, reading level, terminology, em dashes.
Readability + structuretextstat (Python)MITFlesch reading ease, sentence length distribution, and a check that headings exist.
Drafting aidLocal LLM via Ollama + LiteLLMMITDrafting and rewriting with a model you host, so unpublished client material never leaves your infrastructure.
Content QAHTMLProofer / lycheeMIT / Apache-2.0Broken links, missing alt text and duplicate URLs caught before publish, not after.
PlanningPostgreSQL + MetabaseAGPL-3.0A content inventory with status, owner, target query, last-updated and traffic, so pruning is a query.

Build it

1. Model the content, not the page

Separate the durable pieces — claim, evidence, source, audience, intent, next action — from the layout that renders them. When the model is right, a page can be rebuilt in a new design without rewriting the copy, and the same block can serve a landing page and an email.

2. Write the brief as an acceptance test

A brief that says ‘write about X’ produces filler. A brief that names the reader, the decision they are making, the claim, the evidence required, the word budget and three sources produces something editable. This is the highest-leverage document in the operation.

3. Automate the mechanical edit

Set up Vale with your own style rules and run it in CI on every draft. The rules should encode your house decisions: banned marketing filler, required unit formatting, terminology, and reading level per content type.

# .vale.ini
StylesPath = styles
MinAlertLevel = warning
[*.md]
BasedOnStyles = Vale, 5kings

# CI
vale --output=JSON content/**/*.md > vale-report.json

4. Keep the drafting model on your own hardware

If drafts involve client material, a hosted model is a data-sharing decision. Ollama plus LiteLLM gives you a local endpoint with a familiar OpenAI-compatible API, and LiteLLM adds per-key budget and logging so you can see what the drafting actually costs.

5. Publish through an API, not a clipboard

WordPress’s REST API (or a static build) means publishing is a script: create draft, set meta, set schema fields, attach the source list, schedule. That is what makes a 50-page programme possible without a human doing 50 uploads.

6. Schedule updates from data

Rank the library by impressions without clicks, position drift and age. A quarterly update pass driven by that query beats a content calendar driven by optimism.

7. Prune honestly

Decide explicitly, per URL: keep, refresh, consolidate, noindex or delete, with a redirect target for anything deleted. Record the decision and the date. A library nobody prunes becomes a liability that outranks the good pages.

Acceptance checks

If you cannot verify a claim, it is not a finding. These are the checks that close the work; each one can be run by somebody who did not build it.

Acceptance checkHow to verify it
Every published piece passes the style rulesVale exit code 0 in CI; warnings reviewed, not silently ignored.
Every piece has a named intent, audience and next actionCMS fields are required, not optional.
No dead internal links or missing alt textlychee run over the built site, failing the build.
Reading level within the content-type targettextstat score stored with the draft and compared to the target.
Claims carry a sourceA required sources field; rendering fails if empty for a factual claim block.
Update queue is generated, not rememberedMetabase question returns the next 20 URLs to refresh with the reason.

Effort and cost

Estimate
Skill neededBeginner to intermediate for the CMS and linting; intermediate for the API publishing and the data layer
Build time1 day for CMS + Vale, 1–2 days for the publishing script, 1 day for the inventory dashboard
Running costMinutes per publish once automated; a local model needs a GPU or accepts slow CPU drafting
What you must hostOne small VPS for the site; the drafting model needs 8–16 GB RAM (or a GPU) if run locally.

What open source does not give you

The honest half of the comparison. Each of these is a reason somebody buys the service instead of building it, and pretending otherwise would make the rest of this page worthless.

  • No open-source tool decides what to write about. Topic selection is customer research, and a model asked to invent topics will produce plausible, unoriginal ones.
  • Local models draft worse than the best hosted models on long-form structure. If you use one, budget an editing pass that is longer, not shorter.
  • Style linting catches mechanics, not truth. A perfectly linted page can still be wrong, and automated checks create false confidence if taken as editorial sign-off.
  • Publishing automation makes it easy to produce volume. That is a risk, not a benefit — thin pages compete with your good ones.

Scope only, stated so you can compare it with the build above.

  • Topic selection and the brief, tied to the sales conversation rather than to a keyword list
  • Editorial judgement on what to consolidate and what to delete, with the redirect plan
  • The update pass executed against your analytics rather than a generic calendar

Sources and further reading

What this page does not include. This guide documents an open-source implementation of the same outcome. It deliberately leaves out 5 Kings’ internal playbooks, client data, vendor terms and unpublished method: we publish what any competent team can reproduce, and we do not publish what belongs to a client or to a contract. Where a step depends on a decision only your business can make, the guide says so instead of guessing.

Take it with you

Run a content operation on open source

The full guide as an A4 PDF: the reference stack with licences, the build steps, the acceptance checks and the honest limits — in one file you can hand to an engineer or print for a planning session.

PDF · A4 · no email required · free to redistribute with attribution

Open-source Guides & PDFs