Skip to content

Conversation

@BigBlueHat
Copy link
Contributor

  • Export examples for use in other projects.
  • Use build instead of publish; add watch.
  • Add credentials/index.json for remote listing.

Also fix `repository.url` in package.json.
Useful for projects that want to use the list of VC Examples in their own UX/tooling.
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Nov 25, 2025

Deploying vc-examples with  Cloudflare Pages  Cloudflare Pages

Latest commit: 13b837e
Status:🚫  Build failed.

View logs

@BigBlueHat
Copy link
Contributor Author

The build on Cloudflare is breaking because this also switches from npm run publish (which conflicts with npm publish) to npm run build.

@davidlehn
Copy link
Contributor

  • This process seems a bit strange. Why generate JSON with a template? Wouldn't it be easier to make what you want directly in the js file? Then the template would be a one liner {{ examples | json }}? (maybe with some pretty indentation mode)
  • I assume this is being exposed as consumable data so other UIs can more dynamically read it. Great! (Had been my wish to see that since this repo began!)
  • I think the data should be a bit more self describing. Obviously it should be in JSON-LD. :-) If that's a step too far at the moment, then at least put in some type and/or version marker in there so future tools can more easily tell what they are dealing with as this evolves.
  • I hope all the examples all grow a index.json or meta.json or similar and that gets pulled in here too. Credential name, description, vcdm version, tags, etc.

@BigBlueHat
Copy link
Contributor Author

  • This process seems a bit strange. Why generate JSON with a template? Wouldn't it be easier to make what you want directly in the js file? Then the template would be a one liner {{ examples | json }}? (maybe with some pretty indentation mode)

Agreed. I was just in that mode so did it there...but this could definitely be consolidated and code reduced across the various things (lib/index.js, src/_data/examples.js, and this Liquid template). I'll clean it up. Thanks.

  • I assume this is being exposed as consumable data so other UIs can more dynamically read it. Great! (Had been my wish to see that since this repo began!)

Yep! It's first use is in digitalbazaar/vc-viewer#10

  • I think the data should be a bit more self describing. Obviously it should be in JSON-LD. :-) If that's a step too far at the moment, then at least put in some type and/or version marker in there so future tools can more easily tell what they are dealing with as this evolves.

Decidedly! 😁 Happy to take it that way (and a bit embarrassed that I didn't in the first place 😝).

  • I hope all the examples all grow a index.json or meta.json or similar and that gets pulled in here too. Credential name, description, vcdm version, tags, etc.

Great idea. Some of that's started happening in the docs/ area, but that could go much further for sure. That would likely be a separate PR/effort, but let's see how this goes.

Thanks for the feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants