{"id":186,"date":"2026-11-23T10:20:06","date_gmt":"2026-11-23T01:20:06","guid":{"rendered":"https:\/\/mrben.net\/?p=186"},"modified":"2026-11-24T15:57:13","modified_gmt":"2026-11-24T06:57:13","slug":"i-built-packcms-one-engine-any-site","status":"publish","type":"post","link":"https:\/\/mrben.net\/index.php\/2026\/11\/23\/i-built-packcms-one-engine-any-site\/","title":{"rendered":"I Built PackCMS \u2014 One Engine, Any Site"},"content":{"rendered":"<p>Every website I run eventually becomes the same problem.<\/p>\n<p>My guesthouse site needs pages, news and room listings. The next site needs pages, news and job posts. The one after that will need something else again. Each time, I would build a fresh set of models, a fresh admin, a fresh set of templates \u2014 the same work, wearing different clothes.<\/p>\n<p>So this time I built the thing underneath instead: <strong>PackCMS<\/strong>, a small CMS where a content type is not code. It is a package you upload.<\/p>\n<h2>A content type is a zip file<\/h2>\n<p>A PackCMS template package is just a zip: a <code>template.json<\/code> that declares the fields, the HTML templates for list and detail pages, and whatever CSS and images they need.<\/p>\n<p>Upload the package to a content type in the admin, and the engine does the rest. It generates the editing form from your schema, stores each item&#8217;s content as JSON, and renders the frontend through your templates. No new models. No migrations. No code changes.<\/p>\n<p>The schema is built from sixteen element types \u2014 text, rich text, images, galleries, files, dates, links, key\u2013value lists, and one I lean on heavily: <strong>ref<\/strong>, an element that pulls in other content. A home page, for example, is mostly references \u2014 the latest products, the latest news \u2014 plus a hero gallery and a title. One ref mode even follows the navigation: pick a menu item in a dropdown, and the block renders that section&#8217;s newest entries, each block choosing its own.<\/p>\n<p>Galleries get a display switch \u2014 all images, the first one, a random one, or the first few \u2014 because a detail page hero and a card thumbnail want very different things from the same album.<\/p>\n<h2>Swap the package, swap the site<\/h2>\n<p>The test I set myself was unfair on purpose: reproduce my own guesthouse site, sizuya.net, exactly \u2014 same pages, same layout, same content \u2014 using nothing but template packages.<\/p>\n<p>It passed. Home, single pages, news, products and jobs are five packages; the engine underneath never changed. Hand the same engine a different set of packages and it becomes a different website \u2014 different fields, different templates, different languages.<\/p>\n<p>Multilingual support is built in rather than bolted on. Site settings, navigation names and even the static copy declared inside a package (&#8220;Read more&#8221;, section headings, button labels) are edited per language in the admin, with a fallback chain of current language, then default language, then the package&#8217;s own default. The admin&#8217;s content menu follows the navigation tree itself, so editors see the site the way visitors do.<\/p>\n<h2>One rule that kept it small<\/h2>\n<p>The design decision that mattered most was a refusal: <strong>if rich text can lay it out, it does not become an element.<\/strong><\/p>\n<p>Elements exist only for data a template genuinely needs to handle separately \u2014 a price, a date, a gallery, a reference. Everything else is writing, and writing belongs in the editor. That one rule kept the element list at sixteen and the engine boring, in the good way.<\/p>\n<h2>Under the hood<\/h2>\n<p>PackCMS is Django 6 and Python 3.12 on PostgreSQL, running in Docker. Content lives in a single JSON field per item; the admin forms are generated from the package schema; the test suite currently stands at 123 tests, all passing. The admin is Django&#8217;s own \u2014 I tried dressing it up with a popular admin theme and took it off again. Plain and fast beats pretty and slow, every time.<\/p>\n<p>It is not a WordPress killer, and it is not trying to be. It is the CMS I kept wishing existed while building small multilingual sites: one engine I trust, and a folder of packages per site.<\/p>\n<p>One engine, any site. That was the whole idea \u2014 and it works.<\/p>\n<p>\u2014 Ben<\/p>\n<p>Update, Nov 24, 2026: PackCMS is now open source under the MIT license. The code is on GitHub: <a href=\"https:\/\/github.com\/i-love-osaka\/PackCMS\">https:\/\/github.com\/i-love-osaka\/PackCMS<\/a> \u2014 the repo includes seven demo template packs (SORA), so you can see a full site built with it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Every website I run eventually becomes the same problem [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":187,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-186","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/posts\/186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/comments?post=186"}],"version-history":[{"count":2,"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/posts\/186\/revisions"}],"predecessor-version":[{"id":193,"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/posts\/186\/revisions\/193"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/media\/187"}],"wp:attachment":[{"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/media?parent=186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/categories?post=186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/tags?post=186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}