{"id":15175643,"url":"https://github.com/rxdi/ui-registry","last_synced_at":"2026-01-19T11:01:21.022Z","repository":{"id":36065072,"uuid":"208453079","full_name":"rxdi/ui-registry","owner":"rxdi","description":"IPFS Decentralized Web Components registry","archived":false,"fork":false,"pushed_at":"2023-01-04T10:24:49.000Z","size":684,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T13:58:27.131Z","etag":null,"topics":["components","decentralized","gapi","ipfs","lit-html","rxdi","web-components"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rxdi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-14T14:37:42.000Z","updated_at":"2020-04-29T11:50:31.000Z","dependencies_parsed_at":"2023-01-16T12:45:56.476Z","dependency_job_id":null,"html_url":"https://github.com/rxdi/ui-registry","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rxdi/ui-registry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxdi%2Fui-registry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxdi%2Fui-registry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxdi%2Fui-registry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxdi%2Fui-registry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rxdi","download_url":"https://codeload.github.com/rxdi/ui-registry/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxdi%2Fui-registry/sbom","scorecard":{"id":791533,"data":{"date":"2025-08-11","repo":{"name":"github.com/rxdi/ui-registry","commit":"a226b119475eef7250a54b5343e330085a6eb6f5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/13 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T07:41:27.446Z","repository_id":36065072,"created_at":"2025-08-23T07:41:27.446Z","updated_at":"2025-08-23T07:41:27.446Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28565873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["components","decentralized","gapi","ipfs","lit-html","rxdi","web-components"],"created_at":"2024-09-27T12:39:49.108Z","updated_at":"2026-01-19T11:01:20.992Z","avatar_url":"https://github.com/rxdi.png","language":"TypeScript","readme":"# @rxdi/ui-registry\n\n* Reusability of components\n* IPFS Components registry\n* Decentralized future\n\n## Setup\n\n## Local machine\n\nInstall `@rxdi/deploy` global\n\n```bash\nnpm i -g @rxdi/deploy\n```\n\nExecute command:\n```bash\nrxdi-deploy --graphiql-playground --webui --browser --ipfs-api-gateway 8080 --ipfs-api-port 5001\n```\n\nCurrent working directory will be used for serving files throught Web user interface \n\nThis setup will create following directories inide current user folder `~/` `~/.jsipfs`, `~/.rxdi`, `~/.packages` \n\n### Docker\n\nCreate `my-project` directory\n\n```\nmkdir my-project\n```\n\n#### Spawn `ipfs node` for Web and components bundling\n```bash\ndocker run \\\n  -p 8957:8957 \\\n  -p 5001:5001 \\\n  -p 8080:8080 \\\n  -p 9300:9300 \\\n  -v $(pwd)/my-project:/usr/src/app/files \\\n  -v $(pwd)/packages:/usr/src/app/packages \\\n  -v $(pwd)/.rxdi:/root/.rxdi \\\n  -v $(pwd)/.jsipfs:/root/.jsipfs \\\n  -i \\\n  -t \\\n  rxdi/deploy:latest \\\n  --graphiql-playground \\\n  --webui\n  --browser\n```\n\n#### Spawn `ipfs node` for Backend bundling\n\n```bash\ndocker run \\\n  -p 8957:8957 \\\n  -p 5001:5001 \\\n  -p 8080:8080 \\\n  -p 9300:9300 \\\n  -v $(pwd)/my-project:/usr/src/app/files \\\n  -v $(pwd)/packages:/usr/src/app/packages \\\n  -v $(pwd)/.rxdi:/root/.rxdi \\\n  -v $(pwd)/.jsipfs:/root/.jsipfs \\\n  -i \\\n  -t \\\n  rxdi/deploy:latest \\\n  --graphiql-playground \\\n  --webui\n```\n\n\n## Open WebUI\n\nManaging your deployment processes\n```bash\nhttp://localhost:9300/webui/\n```\n\n## Creating your first component\n\n```bash\ncd my-project \u0026\u0026 mkdir trello\n```\n\n```typescript\nimport { Component, html } from '@rxdi/lit-html';\n\n/**\n * @customElement inject-tailwind\n */\n@Component({\n  selector: 'inject-tailwind',\n  template: () =\u003e html`\n    \u003clink\n      href=\"https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css\"\n      rel=\"stylesheet\"\n    /\u003e\n  `,\n})\nexport class TailWindComponent extends HTMLElement {}\n```\n\n## Trigger build for component\n```graphql\nmutation {\n  triggerBuild(\n    buildFolder: \"./trello-component/build\"\n    file: \"trello.component.ts\"\n    folder: \"./trello-component/\"\n    message: \"Init trello component\"\n    namespace: \"@my-project/trello\"\n  ) {\n    status\n    file {\n      hash\n    }\n  }\n}\n```\n\nThis will give you `ipfs` hash `QmQGKFj9pF8pcdffdnRZJ5rLg1rs8xiNh2D974ZG9FQsgU`\n\nDefault provider is `http://127.0.0.1:8080/ipfs/` so we can access our transpiled file at address http://127.0.0.1:8080/ipfs/QmQGKFj9pF8pcdffdnRZJ5rLg1rs8xiNh2D974ZG9FQsgU\n\n\n## Mapping to `@rxdi/graphqj` configuration\n\n```yml\n$views:\n  home:\n    components:\n      - link: http://127.0.0.1:8080/ipfs/QmQGKFj9pF8pcdffdnRZJ5rLg1rs8xiNh2D974ZG9FQsgU\n        selector: trello-component\n    html: |\n      \u003ctrello-component\u003e\u003c/trello-component\u003e\n\n```\n\n\n#### Modify Authentication logic\n\nAdd inside the working directory file with name `interceptor.ts` and add following content;\nif using `docker` place `interceptor.ts` inside `my-project` or mount it at with custom folder `-v $(pwd)/files:/usr/src/app/files`\nas long as `interceptor.ts` present inside `/usr/src/app/files` it will be loaded.\n\nWorking with this approach you need to set `--interceptor ./interceptor.ts` argument\n\n```typescript\nimport { Request } from 'hapi';\nimport { errorUnauthorized, GenericGapiResolversType } from '@gapi/core';\n\ninterface Context {\n  user: { type: string };\n}\n\ninterface Resolver extends GenericGapiResolversType {\n  scope?: string[];\n  public?: boolean;\n}\n\nfunction canAccess(resolverScope: string[], context: Context) {\n  return context \u0026\u0026 context.user \u0026\u0026 resolverScope.filter(scope =\u003e scope === context.user.type).length\n    ? true\n    : errorUnauthorized();\n}\nfunction AuthenticationHooks(resolver: Resolver, context: Context) {\n  canAccess(resolver.scope, context);\n}\nfunction ResolverHooks(resolver: Resolver, root, args, context: Context, info) {\n  if (resolver \u0026\u0026 !resolver.public) {\n    AuthenticationHooks(resolver, context);\n  }\n}\n\n\nexport async function OnRequestHook(request: Request) {\n  return { user: { type: 'ADMIN' } };\n}\n\nexport async function ResolverHook(resolver: Resolver, root, args, context: Context, info) {\n    return ResolverHooks(resolver, root, args, context, info);\n}\n\n\n```\n\nImportant part is that we export 2 methods `OnRequestHook` and `ResolverHook`\nThese are named for convenience the script internally will take UP to 2 methods\n\n1. Request handler function - will populate `context` variable for resolver\n2. Resolver hook function - on every request apply some authentication logic\n3. By default every resolver scope is predefined with `ADMIN` to change it set Environment variable `APP_DEFAULT_SCOPE`\n\n```typescript\nexport async function MyMethodWhichWillPopulateContext(request: Request) {\n  return { user: { type: 'ADMIN' } };\n}\n\nexport async function MyMethodThatWillBeRunnedOnEveryRequest(resolver: Resolver, root, args, context: Context, info) {\n    console.log(context);\n    return ResolverHooks(resolver, root, args, context, info);\n}\n```\n\n\n\n#### Advanced technique\n\nCreate `import.ts` file and pass argument `--import ./import.ts` with the following format\n\n```typescript\nimport {\n  Module,\n  ON_REQUEST_HANDLER,\n  GRAPHQL_PLUGIN_CONFIG,\n  Boom,\n  RESOLVER_HOOK,\n  GenericGapiResolversType\n} from '@gapi/core';\nimport { ResponseToolkit } from 'hapi';\n\n@Module({\n  providers: [\n    {\n      provide: ON_REQUEST_HANDLER,\n      deps: [GRAPHQL_PLUGIN_CONFIG],\n      useFactory: (config: GRAPHQL_PLUGIN_CONFIG) =\u003e async (\n        next,\n        request: Request,\n        h: ResponseToolkit,\n        err: Error\n      ) =\u003e {\n        if (request.headers['authorization']) {\n          try {\n            config.graphqlOptions.context = {};\n          } catch (e) {\n            Boom.unauthorized();\n          }\n        } else {\n          config.graphqlOptions.context = null;\n        }\n        return next();\n      }\n    },\n    {\n      provide: RESOLVER_HOOK,\n      useFactory: () =\u003e (resolver: GenericGapiResolversType) =\u003e {\n        const resolve = resolver.resolve.bind(resolver.target);\n        resolver.resolve = async function(root, args, context, info, ...a) {\n          // Do something with resolver\n          return resolve(root, args, context, info, ...a);\n        };\n        return resolver;\n      }\n    }\n  ]\n})\nexport class TestImport {}\n\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxdi%2Fui-registry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frxdi%2Fui-registry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxdi%2Fui-registry/lists"}