GraphQL Reference
Comprehensive reference for our GraphQL API with type definitions, queries, and examples.

API Schema
Types & Queries
Component
type Component {
id: ID!
name: String!
version: String!
description: String
lastModified: String
supportedThemes: [String!]
dependencies: [String!]
}
Base type representing a UI component in the registry.
Query Example
query {
component(id: "btn-123") {
name
version
dependencies
}
}
Retrieve details for a component by ID.
Mutations
Mutation
type Mutation {
createComponent(input: ComponentInput!): Component
updateComponent(id: ID!, input: ComponentInput!): Component
deleteComponent(id: ID!): Boolean
}
Available operations for component management.
Mutation Example
mutation {
createComponent(input: {
name: "Button",
version: "2.4.1"
}) {
id
name
}
}
Add a new component to the registry.
Subscriptions
Real-time Updates
subscription {
componentUpdated(id: "btn-123") {
id
name
version
}
}
Receive real-time updates when a component is modified.
Connection Requirements
- Secure WebSocket
wss://api.eseniiaia.com/graphql
- JWT authentication token in headers
- Persistent connection with keep-alive
Example Response
Query
query {
component(id: "card-456") {
name
version
dependencies
description
supportedThemes
}
}
Response
{
"data": {
"component": {
"name": "Card",
"version": "2.1.0",
"dependencies": ["Base", "Button"],
"description": "Reusible content container with hover effects",
"supportedThemes": ["light", "dark", "glass"]
}
}
}
Try the API
Access our live GraphQL playground to test queries and mutations: Open Playground