Skip to content

About

A collection of UVerify templates with user restrictions

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

UVerify Additional Templates

This repository contains external UI certificate templates for UVerify that have been outsourced from the main uverify-ui repository due to user-specific or use-case-specific restrictions — for example, templates that include proprietary logos, custom branding, or designs tailored to a particular organization or event that are not suitable for the general-purpose template library.

What are UVerify Templates?

UVerify templates define how a certificate is rendered in the browser when someone verifies a hash on the Cardano blockchain. Each template is a React component that extends the Template base class from @uverify/core and implements a render() method.

Templates can be scoped to specific issuer addresses via a whitelist, carry their own theme configuration, and declare custom metadata fields that they expect to receive alongside a certificate.

Creating a Custom Template

Templates are scaffolded and registered using the UVerify CLI. Refer to the documentation for a step-by-step guide:

A minimal template looks like this:

import { Template, type UVerifyConfig, type UVerifyCertificate, type UVerifyMetadata, type UVerifyCertificateExtraData } from '@uverify/core';
import type { JSX } from 'react';

class MyTemplate extends Template {
  public name = 'MyTemplate';

  constructor(uverifyConfig: UVerifyConfig) {
    super(uverifyConfig);
  }

  public render(
    hash: string,
    metadata: UVerifyMetadata,
    certificate: UVerifyCertificate | undefined,
    _pagination: JSX.Element,
    extra: UVerifyCertificateExtraData,
  ): JSX.Element {
    return <div>Certificate hash: {hash}</div>;
  }
}

export default MyTemplate;

Templates in this Repository

Template Description
cardano-academy-certificate Cardano Academy badge issued by the Cardano Foundation, with privacy-protected recipient names and issuer identity (vLEI) binding
food-analysis-report Food analysis laboratory report
social-hub Connected-goods social profile page, built for the Cardano Buidler Fest 2025 t-shirt experience
tadamon CSO certificate template for the UNDP Tadamon programme

Integrating Templates into UVerify UI

Templates in this repository are consumed by uverify-ui via the additional-templates.json file. You can reference a template either as a local file path or by pinning a specific commit from a Git repository:

[
  {
    "type": "file",
    "name": "MyTemplate",
    "path": "../uverify-additional-templates/my-template/src/Certificate.tsx"
  },
  {
    "type": "repository",
    "name": "MyTemplate",
    "url": "https://github.com/UVerify-io/uverify-additional-templates",
    "commit": "abc1234",
    "path": "my-template/src/Certificate.tsx"
  }
]

See the Custom Templates documentation for full configuration details.

Links

License

The templates in this repository are licensed under the Apache License 2.0.

About

A collection of UVerify templates with user restrictions

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages