A web-based visualization tool for AtomSpace contents. Provides statistics and the ability to visualize structures held in the AtomSpace. Meant to be an aid in understanding AtomSpace contents.
Try it here. You must have a CogServer running somewhere; you will need to type the URL into the connection box.
This visualizer connects to a running CogServer to get at the AtomSpace contents held there. Therefore you need, as a minimum, the following installed:
- The AtomSpace
- The Storage component
- The CogServer
- Data in your AtomSpace. Up to you to generate this for yourself.
Version 1.0.0 -- Performs basic visualization. Works. Nothing fancy.
Start the CogServer using one of these methods:
/usr/local/bin/cogserver(use-modules (opencog) (opencog cogserver))
(start-cogserver)import opencog, opencog.cogserver
opencog.cogserver.startCogserver()- Open
index.htmlin a web browser. Try it here. - Enter the WebSocket URL of your CogServer (default:
ws://localhost:18080/) - Click "Connect" (the JSON endpoint will be automatically appended)
- Once connected, the visualizer will automatically fetch and display AtomSpace statistics
The visualizer was written entirely by Anthropic's Claude Code. Although attempts have been made to keep the code-base relatively clean and maintainable, the reality is that more or less everything here is going to be LLM slop. You should not try to hand-edit the code here; you should work with an LLM coding tool to make changes and updates here.
- Verify the CogServer is running and accessible
- Check the WebSocket URL format (should be
ws://host:port/) - The visualizer will automatically append
/jsonto connect to the JSON endpoint - Ensure no firewall is blocking the WebSocket port
- Check browser console for detailed error messages
- Try the ../websockets/json-test.html page and check for errors.
- Confirm the CogServer has JSON endpoint enabled
- Use the debug console to test JSON commands
- Check that the AtomSpace contains atoms to display
Potential improvements for future versions:
- Graph visualization of atom relationships
- Real-time atom creation/deletion monitoring
- Atom type distribution charts
- Search and filter capabilities
- Export functionality for statistics
- Multi-server connection support
Part of the OpenCog project. See the main project license for details.