framework

ccmjs Framework

version License Docs Build Runtime Declarative Versioning

Buildless. Composable. Runtime.
No installation. No build. Just include and start.

ccmjs is a lightweight JavaScript framework that implements the Client-side Component Model (CCM) — an architecture for building modular, reusable, and dynamically composed web apps.

Components are loaded, configured, and instantiated dynamically at runtime — even across different framework and component versions.

🚀 Quick Start

Include ccmjs:

<script src="https://ccmjs.github.io/framework/ccm.js"></script>

Start a component:

ccm.start(component, config, area);

💡 Quick Example

<!doctype html>
<script src="https://ccmjs.github.io/framework/ccm.js"></script>
<script type="module">
  const component = "https://cdn.jsdelivr.net/gh/ccmjs/quiz@v1.0.0/ccm.quiz-1.0.0.mjs";
  const config = {
    questions: [
      {
        text: "Does this example work?",
        type: "radio",
        answers: [
          { text: "Yes", correct: true },
          { text: "No" }
        ]
      }
    ]
  };
  const area = document.body;
  ccm.start(component, config, area);
</script>
<body></body>

This loads the quiz component dynamically, instantiates it, and renders it into the page.

✨ Beyond the Basics

ccmjs also provides:

On top of that, ccmjs can be used to build:

📚 Documentation

Full documentation is available in the ccmjs Wiki.

See the changelog for changes in each version.

📌 Use a specific version

To pin your app to a specific framework release, load it from jsDelivr:

<script src="https://cdn.jsdelivr.net/gh/ccmjs/framework@v29.1.0/ccm-29.1.0.min.js"></script>

This URL selects version 29.1.0. For another release, replace the version in both the tag (@v29.1.0) and the filename (ccm-29.1.0.min.js). You can also use this URL as the ccm dependency in a component.

Optional: Verify integrity with SRI Subresource Integrity (SRI) lets the browser verify that the downloaded file matches the expected contents: ```html ``` This hash applies to the minified **29.1.0** file. When changing versions, update both the URL and the integrity hash.

📄 License

ccmjs is released under the MIT License.