{"id":22421804,"url":"https://github.com/ringecosystem/xapi-ceramic","last_synced_at":"2026-02-14T01:03:23.778Z","repository":{"id":255522847,"uuid":"804187627","full_name":"ringecosystem/xapi-ceramic","owner":"ringecosystem","description":"Ceramic for xAPI","archived":false,"fork":false,"pushed_at":"2024-05-22T05:58:49.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T10:26:44.401Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/ringecosystem.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-22T05:54:58.000Z","updated_at":"2024-05-22T05:58:52.000Z","dependencies_parsed_at":"2024-09-05T23:09:11.590Z","dependency_job_id":"3f24be57-bbb5-4b83-89e7-8e5fb9c238b0","html_url":"https://github.com/ringecosystem/xapi-ceramic","commit_stats":null,"previous_names":["ringecosystem/xapi-ceramic"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ringecosystem%2Fxapi-ceramic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ringecosystem%2Fxapi-ceramic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ringecosystem%2Fxapi-ceramic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ringecosystem%2Fxapi-ceramic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ringecosystem","download_url":"https://codeload.github.com/ringecosystem/xapi-ceramic/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245785805,"owners_count":20671634,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-12-05T17:09:35.641Z","updated_at":"2026-02-14T01:03:18.748Z","avatar_url":"https://github.com/ringecosystem.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# XAPI Ceramic\n\n## Init\n\n```bash\nnpm install --location=global @ceramicnetwork/cli\nnpm install --location=global @composedb/cli\nnpm install # in the project dir\n```\n\n## Start Ceramic db\n\n```bash\nnpx @ceramicnetwork/cli daemon\n```\n\n## Using your account\n\n```bash\n# Generate private key\ncomposedb did:generate-private-key\nexport CERAMIC_PRIVATE_KEY=\u003cyour private key\u003e\n# Generate DID\ncomposedb did:from-private-key your-private-key\ncd ~/.ceramic\nvim daemon.config.json\n# put your did in \"admin-dids\"\n# Restart ceramic\nceramic daemon --network=testnet-clay\n```\n\n## Composites\n\n```bash\n# Edit xapi-schema.graphql ondemand\n# Generate composites\ncomposedb composite:create xapi-schema.graphql --output=xapi-composite.json --did-private-key=$CERAMIC_PRIVATE_KEY\n# Deploying composites\ncomposedb composite:deploy xapi-composite.json --ceramic-url=http://localhost:7007 --did-private-key=$CERAMIC_PRIVATE_KEY\n```\n\n## GraphQL\n\n```bash\n# Compiling composites\ncomposedb composite:compile xapi-composite.json xapi-runtime-composite.json\n# Start graphql server\ncomposedb graphql:server --ceramic-url=http://localhost:7007 --graphiql xapi-runtime-composite.json --did-private-key=$CERAMIC_PRIVATE_KEY --port=5005\n```\n\n### Create OrmpSignature Example\n\n```graphql\nmutation MyMutation($i: CreateOrmpSignatureInput!) {\n  createOrmpSignature(input: $i) {\n    document {\n      channel\n      executionCall\n      id\n      msgIndex\n      signature\n      signer\n      srcChainId\n      timestamp\n    }\n  }\n}\n\n{\n  \"i\": {\n    \"content\": {\n      \"channel\": \"0xdf7b91c92ac62447ccb92bd39f41727466534043\",\n      \"executionCall\": \"0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000665aad4c00000000000000000000000000000000000000000000000000000000000000840a863e6c0000000000000000000000000000000000000000000000000000000000aa36a7000000000000000000000000df7b91c92ac62447ccb92bd39f41727466534043000000000000000000000000000000000000000000000000000000000000007096812becb8254f71302001436ee1d63bccb28a3154e0e47893d2691b74e47f9800000000000000000000000000000000000000000000000000000000\",\n      \"msgIndex\": \"112\",\n      \"signature\": \"0xdb161c24ca3756cd174e5a0122caead0ec6411d82f6ca6a2867cd2c1b4282d0027c8e459ce180e012e0ce8bf9e74345d51f7cb01d572f0cff9972e495e1917d11b\",\n      \"signer\": \"0x0b001c95e86d64c1ad6e43944c568a6c31b53887\",\n      \"srcChainId\": \"11155111\",\n      \"timestamp\": \"1716355836\"\n    }\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fringecosystem%2Fxapi-ceramic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fringecosystem%2Fxapi-ceramic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fringecosystem%2Fxapi-ceramic/lists"}