A visual interface for exploring and interacting with graph-based data through a RESTful API.
- Interactive API Explorer: Select and execute different API endpoints
- Graph Visualization: Visual representation of nodes and relationships
- JSON Response Viewer: Pretty-printed JSON output with syntax highlighting
- Export Functionality: Copy or download API responses
- Accessible Interface: Full keyboard navigation and screen reader support
Open index.html in a web browser to start using PinkSync. No build process or server required for the demo.
The interface demonstrates the following endpoints:
- GET /nodes - Retrieve all nodes in the graph
- GET /edges - Retrieve all edges (connections) in the graph
- GET /graph - Retrieve the complete graph structure
- POST /query - Execute custom graph queries
- Select an endpoint from the dropdown
- Click "Execute Request"
- View the visualization and JSON response
- Click "Copy JSON" to copy the response to your clipboard
- Click "Download JSON" to save the response as a file
The sample graph demonstrates a simple data model:
- Nodes: Entities in the graph (users, resources, groups)
- Edges: Relationships between nodes (access, ownership, membership)
Replace the simulated executeRequest() function in script.js with actual API calls:
async function executeRequest(endpoint) {
const response = await fetch(`https://your-api.com/${endpoint}`);
const data = await response.json();
displayData(data);
visualizeGraph(data);
}Modify the CSS variables in styles.css:
:root {
--primary-color: #9370db;
--secondary-color: #8a2be2;
/* ... more variables */
}The visualizeGraph() function can be replaced with a more sophisticated library like D3.js or vis.js for advanced graph layouts and interactions.
All API responses follow this structure:
{
"status": "success",
"data": { ... },
"timestamp": "2024-01-01T00:00:00Z"
}- Semantic HTML structure
- ARIA labels for all interactive elements
- Keyboard navigation support
- Screen reader announcements
- Focus indicators
- High contrast support
PinkSync is part of a larger accessible web ecosystem:
- PinkFlow: Accessibility query interface
- PinkSync: Graph API (this component)
- DeafAuth: Authentication system
- FibronRose: Trust dashboard
- Agents: AI agent status page
- DAO: Governance interface
Open source - use and modify as needed for your projects.