Andor Kesselman
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    1
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # TBD Incubator Proposal 1c -- Display editor easing visual presentation of VCs, conforming to Wallet Rendering spec [![hackmd-github-sync-badge](https://hackmd.io/PCWVlYqsQhu8dLuoyKt_UA/badge)](https://hackmd.io/PCWVlYqsQhu8dLuoyKt_UA) <!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc-refresh-toc --> **Table of Contents** - [TBD Incubator Proposal 1c -- Display editor easing visual presentation of VCs, conforming to Wallet Rendering spec](#tbd-incubator-proposal-1c----display-editor-easing-visual-presentation-of-vcs-conforming-to-wallet-rendering-spec) - [Summary](#summary) - [Current Status](#current-status) - [Points of Contact](#points-of-contact) - [Mission and Scope](#mission-and-scope) - [Project Lifecycle](#project-lifecycle) - [Milestones](#milestones) - [Context](#context) - [Definitions](#definitions) - [Target Users](#target-users) - [Diagrams](#diagrams) - [Architecture](#architecture) - [Success Critieria](#success-critieria) - [Constraints and Considerations](#constraints-and-considerations) - [Design Goals](#design-goals) - [Resource Constraints](#resource-constraints) - [User Stories](#user-stories) - [Areas of Risk](#areas-of-risk) - [Testing](#testing) - [Code Monitoring](#code-monitoring) - [Metrics](#metrics) - [Engineering Metrics](#engineering-metrics) - [Product Metrics](#product-metrics) - [Appendix](#appendix) <!-- markdown-toc end --> ## Summary The following Product Requirements document describes the TBD Incubator Program requested by Benri Corporation, which we codename "Project Aibo (相棒)" in the spirit that we give all our projects a name to operate under. Aibo is the word for partner in japanese, and Benri would like to help accelerate TBD's Web5 efforts. This collaborative synergy with TBD will harness the power of Open Source and help with the widespread adoption of web 5. ## Current Status The current state is : **PROPOSAL**. Major changes to the status of this document are accepted. **Version Tag:** 0.0.1-SM ## Points of Contact This describes the main roles w.r.t to the project. | Name | Email | Role | | --------------- | --------------- | ---------------------- | | Andor Kesselman | andor@benri.io | Technical Lead | | Reuben Bailon | reuben@benri.io | UX and Business | | Dan Buchner | | TBD's POC for Benri | | ALR | | Incubator Program Lead | ## Mission and Scope The mission of this project is to help with the edification and adoption of web 5/SSI standards and with the Wallet Rendering specifications. As Benri is a small organization with limited resources, the scope of this particular project is to build a display editor easing visual presentation of VCs, conforming to Wallet Rendering spec. ## Project Lifecycle The following describes the phases of the project. 0. **TBD/Benri Open Source Incubator Alignment:** Benri invited into Open Source incubation program. 1. **Scoping and Planning:** Detailed PRD finalized. 2. **Initial Implementation:** Building the initial implementation (initial repo open or closed source? ) 4 weeks. 3. **Initial Release|Alpha: v1.0** If closed, open at this point 4. **Maintainence and Expansion:** Decide with TBD about maintence and expansion efforts After scoping and planning, Benri intends to give 4 weeks to the project. We will of course, also maintain the project, etc where required. ## Milestones - [ ] Acceptance into the TBD Incubator Program - [ ] Alpha PRD Designed - [ ] Building - [ ] Alpha release - [ ] Effort re-evaluation ```mermaid gantt title TBD Component Project dateFormat YYYY-MM-DD section Milestones Scoping Accepted :a1, 2022-12-30, 30d Acceptance into the TBD Incubator Program :milestone, 2022-12-30 d PRD and Roadmap Scoping : 21d Building : 30d Alpha Release :milestone, : 30d Re-evaluate Efforts :milestone, ``` ## Context [Discussion here](https://forums.tbd.website/t/incubator-proposal-shared-js-components/214/5) ## Definitions - [Verifiable Credential](https://www.w3.org/TR/vc-data-model/): Credentials are a part of our daily lives; driver's licenses are used to assert that we are capable of operating a motor vehicle, university degrees can be used to assert our level of education, and government-issued passports enable us to travel between countries. This specification provides a mechanism to express these sorts of credentials on the Web in a way that is cryptographically secure, privacy respecting, and machine-verifiable. - Widget: an application, or a component of an interface, that enables a user to perform a function or access a service. - library: a collection of software functions and software packages made generally available, with an intent on being reused across applications - [Wallet rendering](https://identity.foundation/wallet-rendering/) : A DIF specification. Styling the visual presentation of various entities types and data (e.g. credentials) is a common need that runs across many different use cases. In order to provide a predictable set of styling and data display hints to User Agents, Issuers, Verifiers, and other participants who render UI associated with entities and data, this specification endeavors to standardize a common data model to describe generic style and data display hints that can be used across any formulation of UI elements. ## Target Users - developers - TBD - Benri ## Diagrams **Sample 1** ![](https://i.imgur.com/Itje2vh.png) **Sample 2** ![](https://i.imgur.com/UbzKcbT.png) ## Architecture ```mermaid classDiagram class Editor { Renderer Render TextArea EditTextArea } class Renderer { Render(o RenderObjects) } class Validator { Validate(string text) List~ValidationError~ } class ValidationError { string Message int PositionStart int PositionEnd int Code } class RenderObjects { EntityStyleDescriptor EntityStyleDescriptor DMO DisplayMappingObject } class DisplayMappingObject { string label List~string~ Path Schema SchemaObject string Fallback } class JSONSchema { string schema string title string tyle Object properties Object definitions } class SchemaObject { string type string format string contentEncoding string contentMediaType } class EntityStyleDescriptor { Thumbnail Thumbnail HeroImage HeroImage Background Background Text Text } class Thumbnail { URIAltPair data } class HeroImage { URIAltPair data } class Background { string color } class Text { string color } class URIAltPair { string URI string Alt } RenderObjects "1" .. "1" EntityStyleDescriptor EntityStyleDescriptor "1" .. "n" Background EntityStyleDescriptor "1" .. "1" HeroImage EntityStyleDescriptor "1" .. "1" Thumbnail EntityStyleDescriptor "1" .. "1" Text Thumbnail "1" .. "1" URIAltPair HeroImage "1" .. "1" URIAltPair DisplayMappingObject "1" .. "1" SchemaObject JSONSchema "1" .. "1" DisplayMappingObject RenderObjects "1" .. "1" DisplayMappingObject Editor "1" .. "n" Renderer Renderer "1" .. "n" RenderObjects Editor "1" .. "1" Validator : runs in the background Validator "1" .. "many" ValidationError ``` ## Success Critieria 1. 1 npm compliant library for reusable web5 components - done in vanilla js/typescript to ensure reusability in different frameworks (vue, react, etc.) 2. A UI with two views: - An editor view - An render view ## Constraints and Considerations - Try to not use frameworks (i.e Vue and Javascript) - Should be able to be extended easily - Accepts that the WR specs may be able to change over time. Loosely coupled to the current specifications to function. ### Design Goals - Simple - Re-usable - Composability - Extendable - Customizable ### Resource Constraints - Benri is a small startup. We have limited resources so need to scope this right. We will probably hire someone to help with these efforts. ## User Stories - As a developer, I want to be able to render a VC using the wallet rendering specs. - As a developer, I want to modify and see how a render of a VC changes on the fly. I want to use this as a tool to learn how edit my own Verifiable Credentials. ## Areas of Risk - Making sure we can use things cross builds. - Duplication of efforts ## Testing Testing harnesses TBD later in scoping, but most likely the following two ways: 1. CICD with Github Actions 2. Test Suite (Jest/Yarn) etc. ## Code Monitoring We will probably have the following CICD services running on the repo. - FOSSA checks - CodeCov ( are minimum coverage metrics required for this project? ) - Possily some embedded contributor metrics on the README ## Metrics These metrics will be used to evaluate the progress of the repository. ### Engineering Metrics 1. \# of supported components 2. \# of commits 3. \# of contributors 4. \# of prs 5. average commit size 6. code coverage ### Product Metrics 1. \# of github stars 2. \# of downloads over npm ## Appendix [Identity Foundation](https://identity.foundation/wallet-rendering/#abstract) **Entity Style** ```json { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Entity Styles", "type": "object", "definitions": { "image": { "type": "object", "properties": { "uri": { "type": "string", "format": "uri" }, "alt": { "type": "string" } }, "required": ["uri", "alt"] }, "color": { "type": "object", "properties": { "color": { "type": "string", "pattern": "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$" } }, "required": ["color"] } }, "properties": { "thumbnail": { "$ref": "#/definitions/image" }, "hero": { "$ref": "#/definitions/image" }, "background": { "$ref": "#/definitions/color" }, "text": { "$ref": "#/definitions/color" } } } ``` **Path** ```json { "path": ["$.name", "$.vc.name"], "schema": { "type": "string" }, "fallback": "Washington State Driver License" } ``` **Label Display with Mapping Object** ```json { "label": "License Name", "path": ["$.name", "$.vc.name"], "schema": { "type": "string" }, "fallback": "Washington State Driver License" } ``` **Display Mapping Object** ```json { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Display Mapping Object", "oneOf": [ { "type": "object", "additionalProperties": false, "properties": { "path": { "type": "array", "items": { "type": "string" } }, "schema": { "oneOf": [ { "type": "object", "additionalProperties": false, "properties": { "type": { "type": "string", "enum": ["boolean", "number", "integer"] } }, "required": ["type"] }, { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "type": { "type": "string", "enum": ["string"] }, "format": { "type": "string", "enum": [ "date-time", "time", "date", "email", "idn-email", "hostname", "idn-hostname", "ipv4", "ipv6", "uri", "uri-reference", "iri", "iri-reference" ] } }, "required": ["type"] }, { "type": "object", "additionalProperties": false, "properties": { "type": { "type": "string", "enum": ["string"] }, "contentEncoding": { "type": "string", "enum": [ "7bit", "8bit", "binary", "quoted-printable", "base16", "base32", "base64" ] }, "contentMediaType": { "type": "string" } }, "required": ["type"] } ] } ] }, "fallback": { "type": "string" } }, "required": ["path", "schema"] }, { "type": "object", "additionalProperties": false, "properties": { "text": { "type": "string" } }, "required": ["text"] } ] } ``` **Labelled Display Mapping Object** ```json { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Labeled Display Mapping Object", "oneOf": [ { "type": "object", "additionalProperties": false, "properties": { "path": { "type": "array", "items": { "type": "string" } }, "schema": { "oneOf": [ { "type": "object", "additionalProperties": false, "properties": { "type": { "type": "string", "enum": ["boolean", "number", "integer"] } }, "required": ["type"] }, { "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "type": { "type": "string", "enum": ["string"] }, "format": { "type": "string", "enum": [ "date-time", "time", "date", "email", "idn-email", "hostname", "idn-hostname", "ipv4", "ipv6", "uri", "uri-reference", "iri", "iri-reference" ] } }, "required": ["type"] }, { "type": "object", "additionalProperties": false, "properties": { "type": { "type": "string", "enum": ["string"] }, "contentEncoding": { "type": "string", "enum": [ "7bit", "8bit", "binary", "quoted-printable", "base16", "base32", "base64" ] }, "contentMediaType": { "type": "string" } }, "required": ["type"] } ] } ] }, "fallback": { "type": "string" }, "label": { "type": "string" } }, "required": ["path", "schema", "label"] }, { "type": "object", "additionalProperties": false, "properties": { "text": { "type": "string" }, "label": { "type": "string" } }, "required": ["text", "label"] } ] } ```

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully