Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Build Status


Competency and Skills Service -- Competency Framework Editor

Create, edit, modify CASS frameworks and competencies using an easy to use, embeddable iframe.


  • View and edit public or permissioned competency frameworks on a CASS instance.
  • Concurrent editing - Changes are shown on multiple people's screens concurrently.
  • Import - Import frameworks of competencies from several formats.
  • Embeddable - Put the cass-editor in your website with a few lines of HTML.
  • Customizable - Change the default behavior of the cass-editor via URL parameters.
  • Inherits your style - If it can, uses the CSS from the embedding website to style the internals.
  • Open source

New in 1.3

  • User and group management - Add users/groups as owners of frameworks, granting them admin or view access.
  • Configuration management - Select the data properties, relationship types, and value types of properties to display on frameworks and competencies.
  • Crosswalk frameworks - Add alignments between competencies in two frameworks in a side-by-side view.

Try it out

The (unbranded) experimental new version of cass-editor is available for use at and is found on the master branch. References to 1.3 in this README refer to this branch.

To try the previous, stable version of the editor, check out branch 1.2.


Integrate the cass-editor into your website by nesting it into an iframe on your website.

<iframe id="iframe" width="100%" height="800" frameborder="0"></iframe>
    document.getElementsByTagName("iframe")[0].setAttribute("src", "");

CSS Inheritance

The cass-editor attempts to read the stylesheets of the parent page and import them into the website if they have inherit="true" as an attribute. It may not be able to do this without your help.

An error message when headers are not set:
    ...Styles/Webfonts/Gibson/Gibson-Regular-webfont.woff2' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '' is therefore not allowed access. The response had HTTP status code 404.

To remedy this, your web server needs to allow cross-origin requests to the cassproject site, or you can clone this repository and host it locally.


Finally, to import a CSS file using a URL parameter, use css=<url>.

URL Parameters

The cass-editor has many modes and options that can be enabled or disabled based on desired functionality. These options are passed as URL parameters.

Setting the server

By default, the cass-editor operates on the CASS instance. This should instead be your server. To do this, use server=protocol://


View mode

By default, the cass-editor provides a framework browser to select and edit frameworks. To instead be restricted to only viewing frameworks, use view=true.


Concept mode

By default, the cass-editor prior to version 1.3 edits competency frameworks. To instead edit concept schemes, use concepts=true. Starting in version 1.3, you can select Concepts from the menu in the sidebar to edit concept schemes. If you want to bypass the welcome page and link directly to the list of concept schemes, this parameter can be used in conjunction with frameworksPage=true.


Select competencies in frameworks

If your app needs the ability to select competencies from a framework, use select=label where 'label' is the tag you want the select button to have. ex: Add, Select, Import. Best used with view=true. Clicking the select button will send a post message with the selected items to the parent application.


Select verbose

If your app needs to have the entire competency or relation returned as part of the selection, or the framework that the competencies were selected from use selectVerbose=true.


Change schema for selected postMessage

If your app needs to receive CTDL-ASN fields in the postMessage when selecting competencies to add or link to, use selectExport=ctdlasn.


Select single competencies in frameworks

If your app needs the ability to select a single competency from a framework, use singleSelect=label where 'label' is the tag you want the select button to have. ex: Add, Select, Import. Best used with view=true.


Select relations and competencies in frameworks

If your app needs the ability to select a single competency and the relations associated, use selectRelations=true along with select.


Trigger select functionality from the parent frame

If your app needs the ability trigger the select action from outside of the cass-editor iframe, send the iframe the postMessage {"message":"select"}. Additionally, if you wish to hide the select button and use one on your page instead, use select= without a value.


Add new framework

By default, the cass-editor provides a framework browser to select and edit frameworks. To start with a workflow of creating a framework, use action=add. This will expose the framework creation and import pages (1.2) or take you to a newly created framework (1.3).


Import new framework

To jump directly to the import option of the above add menu, use action=import. This will expose the import page.


Edit a specific framework

If you have a specific framework you are directing your users to edit or view, you can force the cass-editor to only show that framework by using frameworkId=<url identifier of framework>


Select a specific competency (1.2 and earlier)

If you have a specific competency you are directing your users to edit or view, you can force the cass-editor to select that competency using competencyId=<url identifier of competency>. Must be used in conjunction with frameworkId=<url identifier of framework>


Highlighting one or more specific competencies

If you wish to highlight one or more competencies, you can force the cass-editor to highlight that competency using a postMessage. It is suggested this be used in conjunction with frameworkId=<url identifier of framework>

	"message": "highlightedCompetencies",
	"competencies": ["@id of competency", "@id of competency", "@id of competency"]
}, window.location.origin);

or ex:

Expose URL links (1.2 and earlier)

If your users need the URLs for each framework or resource they are editing, you can enable link-showing by using link=true


Filtering frameworks by an additional search query.

If you are limiting users to seeing only a set of frameworks that can be described by a search query, you can add an additional search query to the initial framework search by using filter=<search query>.


Generate and manage a local user.

CASS can create and manage a local user that owns the frameworks and competencies they create. The user credentials will be stored in HTML5 LocalStorage and unique per individual. To enable this functionality, use user=self.

Note: This method is risky, as a user that clears their localstorage will lose access to their frameworks and competencies.

Operate using a provided set of user credentials.

CASS can operate using credentials provided by the parent site. These credentials are passed into the iframe via a message, in order to avoid transmitting them over HTTP. Use user=wait, and pass a RSA-OAEP 2048 bit PEM private key in via:


Provide templates for frameworks and competencies.

The cass-editor can be populated with templates that set initial properties of new competencies and frameworks. These templates are passed into the iframe via a message. To specify:

    action: "template",
    competency: {
        "http://bogus/property": "woo"
    framework: {
    	"http://bogus/property": "woo"
    conceptScheme: {
        "http://bogus/property": "woo"
    concept: {
        "http://bogus/property": "woo"

Only show frameworks that individual owns.

Along with user credentials, the cass-editor can be configured to not show others' frameworks. This functionality can be enabled by the URL parameters show=mine or ownedByMe=true.

Only show concept schemes that individual owns.

When linking a concept to a competency, the cass-editor can be configured to not show others' concept schemes. This functionality can be enabled by the URL parameter conceptShow=mine.

Private frameworks and concept schemes by default.

Users can make a framework or concept scheme private by clicking the checkbox in the edit pane (1.2) or clicking the user management button within a framework (1.3). This checkbox can be selected by default with the URL parameter private=true. Note that this will not change existing frameworks and concept schemes but will apply to newly created ones.

When selecting a concept to link to, allow editing (1.2 and earlier)

When linking a concept to a competency or another concept, the cass-editor can be configured to allow the user to edit concepts or concept schemes. This functionality can be enabled by the URL parameter editIframe=true.

Use canonical identifiers.

CASS supports the storage of objects where the @id parameter does not refer to the object in CASS.

cass-editor can be configured via the newObjectEndpoint to create and edit objects with @id URIs or objects located outside of CASS.

As an example, if newObjectEndpoint= and a new framework is created, the @id of the framework will be<generated UUID>.


  • This disables access to versioned objects, as versions will not be exposed (though versions are being stored).
  • This option operates across imports where canonical @ids are not defined, CSV imports, etc.

Bypass the welcome page and go directly to the frameworks list (1.3 and up)

The base URL for version 1.3 takes the user to a welcome page. If you wish to bypass this page and have the framework list be the first thing your users see, use the URL parameter frameworksPage=true. If you want to go directly to the concept scheme list, this parameter can be used in conjunction with concepts=true.

Alternate Schema

The cass-editor can orient towards either a basic CASS schema or a Credential Engine CTDL-ASN schema.

  • ceasnDataFields=true enables and renames fields to accompany the CTDL-ASN fields. Many of these fields map to properties, but some map only to CTDL-ASN properties. In 1.3, this parameter also hides some components from view, such as configuration management and user/group management.

Disable Assertion Management

The cass-editor can be configured to hide the assertion management functionality if it is not needed.

  • disableAssertions=true will hide the assertion timeline, assertion sharing, and assertion creation/edititing features.


The cass-editor can be overridden to assist in cross domain, iframe, and web socket connection issues.

  • editorRoot=<relative or absolute path> helps any recursive iframes locate the root of the cass-editor. Examples include '/cass-editor/' or ''
  • webSocketOverride helps the cass-editor connect to the websocket of CASS in case a reverse proxy is misbehaving when handling websockets (Looking at you, IIS.)


The cass-editor can send events when various operations occur.

To bind the cass-editor from the parent page, use the following code:

window.addEventListener('message', iframeMessage, false);

function iframeMessage(event) {
	//check the origin, to make sure it comes from a trusted source.
	if (false && event.origin !== window.location.origin)
	alert("I got " + + " selected items from the iframe");

To ensure the iframe is passing the correct origin, pass the origin into the iframe using a URL parameter, origin=originUrl.

On Selected (select=Add): == "selected" == [uri,uri,uri]
or, if selectVerbose is on, == [{Competency},{Competency},{Competency}] and == {Framework}

On Clicked, On Changed, View Changes:

Changes when frameworks or competencies are clicked, changed, or the internal editor view changes are passed to the parent page. The message types are `viewChanged`, `frameworkChanged`, `frameworkClicked`, `competencyChanged`, `competencyClicked`. See the console for additional fields that are passed.


To export, send the iframe a message to export using a particular format.


You will receive in the parent page an event: ~= {
    action: "response",
    message: "export",
    schema: "<schema>",
    format: "<format mimetype>",
    data: "<data in JSON if JSON-compatible, string if not JSON compatible."

Acceptable schemas are: "cass","cassn4","cass","cassrdfjson","cassrdfxml","cassturtle","ctdlasn","asn","case".

Set Data Helper:

To set some data in an object:

   id:"https://id of the object to set",

A response event will be sent: "setOk","setFail" after the save is attempted.



Most fields are not validated beyond the input type assigned to them. URLs, drop downs, datetimes and selectors all have inbuilt validation. The datetime format being used is ISO 8601. The user is prevented from saving invalid date. To change the behavior to warn the user if they are saving invalid data, set allowValidationBypass=true.


Validation can be accomplished through the configuration manager. Here you can set which fields are required, the type of value accepted, whether the field is limited to one value or can have multiple values, etc.

Keyboard Shortcuts

  • ↑ & ↓ - Navigate up and down the list of frameworks and competencies.
  • ← & → - Expand and contract nested competencies.
  • Enter - Select the current element. (1.2 and earlier)
  • Shift + Enter - Select all. (1.2 and earlier)
  • Backspace - Go back. (1.2 and earlier)
  • Tab - Switch focus between elements on the page.
  • Space - Select the element currently in focus. (1.3)
  • Escape - Return to list navigation. (1.2 and earlier)
  • Shift + X - Drag competency
  • Shift + C - Drag and copy competency
  • Shift + V - Drop competency
  • Shift + U - Unlink competency (1.2 and earlier)
  • Shift + ↑ & Shift + ↓ - Move competency up and down in the list.
  • Shift + ← & Shift + → - Move competency indent and outdent in the list (1.3)

Development Environment Setup


Setting up

  • Clone cass-editor to local repository.

  • Install dependencies and submodule.

cd cass-editor
git submodule init
git submodule update
npm install
  • Enable HTTPS using the ca.pem file. With Windows/Chrome:

    • Save the ca.pem file as ca.crt
    • Import the crt file through Chrome
      • browser settings -> privacy & security -> security -> manage certificates -> trusted root certification authorities -> import
      • Select the crt file
  • Create an .env.local file in the project root directory. Its contents should be:

  • Start cass-editor.
npm run serve

Release Process

  • npm install cassproject
  • npm audit --production and address any dependencies with vulnerabilities
  • Increment version in package.json
  • npm run test:unit
  • Document code coverage output by the previous step.
  • Push to master branch on github

After github finishes deploying to the gh-pages branch, the cass-editor pointer can be updated in the CaSS repository.