How baybaris/jimg works
JSON Imager is a local Windows desktop application for turning JSON documents into explorable tables, images, charts, and exports. The main workflow is opening a document, discovering table-shaped datasets, flattening a selected dataset for display, and arranging or exporting the result. Editing, image viewing, charting, and the optional Agent are distinct product branches. Relationships are included only where the README or supplied excerpts and SOURCE INDEX support them; unsampled implementation details are not inferred.
Main entry points: app.py Desktop bridge · api_export.py Export operations · flatten.py Table flattening · api_agent.py Agent operations
Components 34
Desktop interface
- Desktop bridge
src/jsonimager/app.py - Table and tree UI
src/jsonimager/web/js/table.js - Interface shell
src/jsonimager/web/js/shell.js - Export format selection
src/jsonimager/web/js/chart.js
Document and tables
- Document API
src/jsonimager/api_docs.py - Dataset discovery
src/jsonimager/discover.py - Table flattening
src/jsonimager/flatten.py - Column classification
src/jsonimager/columns.py - Schema variants
src/jsonimager/schema.py - Table operations
src/jsonimager/api_table.py
Images and charts
- Document images
src/jsonimager/images.py - Remote image loading
src/jsonimager/remote_images.py - Chart operations
src/jsonimager/api_chart.py - Chart data
src/jsonimager/chart_data.py - Chart rendering
src/jsonimager/img_chart.py
Editing and export
- Editing operations
src/jsonimager/api_edit.py - Edit mapping
src/jsonimager/edit_map.py - Text exports
src/jsonimager/export_text.py - Export operations
src/jsonimager/api_export.py - Table rendering
src/jsonimager/img_table.py - Tree rendering
src/jsonimager/img_tree.py - SVG and PDF output
src/jsonimager/vector.py - JSON writer
src/jsonimager/json_write.py - Drawing primitives
src/jsonimager/draw.py
Preferences and Agent
- Settings operations
src/jsonimager/api_settings.py - Persistent preferences
src/jsonimager/settings.py - Localization
src/jsonimager/i18n.py - Themes and metrics
src/jsonimager/theme.py - Agent operations
src/jsonimager/api_agent.py - Model providers
src/jsonimager/providers.py - Runtime paths
src/jsonimager/paths.py - Encrypted keys
src/jsonimager/keys.py
Other components
- User
- Selected model service
Connections 45
- User → Desktop bridge: opens documents
README.md - Desktop bridge → Document API: routes requests
src/jsonimager/app.py - Desktop bridge → Table operations: routes requests
src/jsonimager/app.py - Desktop bridge → Chart operations: routes requests
src/jsonimager/app.py - Desktop bridge → Editing operations: routes requests
src/jsonimager/app.py - Desktop bridge → Export operations: routes requests
src/jsonimager/app.py - Desktop bridge → Settings operations: routes requests
src/jsonimager/app.py - Desktop bridge → Agent operations: routes requests
src/jsonimager/app.py - Desktop bridge → Persistent preferences: loads preferences
src/jsonimager/app.py - Desktop bridge → Runtime paths: resolves assets
src/jsonimager/app.py - Document API → Dataset discovery: discovers datasets
src/jsonimager/api_docs.py - Table operations → Table flattening: builds tables
- Table flattening → Dataset discovery: uses dataset definitions
src/jsonimager/flatten.py - Table flattening → Column classification: classifies columns
src/jsonimager/flatten.py - Dataset discovery → Schema variants: records variants
- Table flattening → Document images: resolves image cells
src/jsonimager/flatten.py - Document images → Remote image loading: loads allowed URLs
src/jsonimager/images.py - Chart operations → Chart data: prepares chart data
src/jsonimager/api_chart.py - Chart operations → Chart rendering: renders charts
src/jsonimager/api_chart.py - Chart rendering → Chart data: uses chart data
src/jsonimager/img_chart.py - Chart rendering → Drawing primitives: builds drawing
src/jsonimager/img_chart.py - Chart rendering → SVG and PDF output: outputs vector formats
src/jsonimager/img_chart.py - Editing operations → Edit mapping: maps edits
- Editing operations → JSON writer: saves changed JSON
- Export operations → Text exports: creates text formats
src/jsonimager/api_export.py - Export operations → Table rendering: renders table images
src/jsonimager/api_export.py - Export operations → Tree rendering: renders schema images
src/jsonimager/api_export.py - Export operations → Chart operations: exports chart
src/jsonimager/api_export.py - Table rendering → Table flattening: renders table data
src/jsonimager/img_table.py - Table rendering → Drawing primitives: builds drawing
src/jsonimager/img_table.py - Table rendering → SVG and PDF output: outputs vector formats
src/jsonimager/img_table.py - Tree rendering → Drawing primitives: builds drawing
src/jsonimager/img_tree.py - Tree rendering → SVG and PDF output: outputs vector formats
src/jsonimager/img_tree.py - SVG and PDF output → Themes and metrics: uses theme
src/jsonimager/vector.py - Settings operations → Persistent preferences: updates preferences
src/jsonimager/api_settings.py - Settings operations → Themes and metrics: sets appearance
src/jsonimager/api_settings.py - Settings operations → Localization: sets language
src/jsonimager/api_settings.py - Agent operations → Model providers: selects provider
src/jsonimager/api_agent.py - Agent operations → Persistent preferences: reads agent settings
src/jsonimager/api_agent.py - Agent operations → Encrypted keys: uses stored keys
src/jsonimager/api_agent.py - Model providers → Selected model service: sends question
- Desktop bridge → Interface shell: hosts interface
- Table and tree UI → Desktop bridge: calls bridge
- User → Table and tree UI: arranges tables
README.md - User → Agent operations: asks questions
README.md