This is a submission for the GitHub Copilot CLI Challenge
DeltaView is a powerful web-based JSON diff viewer that showcases AI-driven development using GitHub Copilot. The application parses JSON inputs, generates structural diffs, and displays them with beautiful syntax highlighting and side-by-side comparison views.
- Intelligent JSON Diff Engine - Recursively compares JSON structures and categorizes changes (added, removed, modified)
- Real-time Diff Visualization - Side-by-side comparison with color-coded changes
- Syntax Highlighting - Professional code display with proper formatting
- Error Handling - Graceful handling of invalid JSON and edge cases
- Type-Safe Implementation - Built with TypeScript for reliability
- Responsive UI - Modern, clean interface built with React, TailwindCSS, and shadcn/ui
- Frontend: React + TypeScript
- Styling: TailwindCSS + shadcn/ui components
- Build Tool: Bun (ultra-fast JavaScript runtime)
- Development Methodology: AI-driven architecture with markdown specifications
Live demo available at: https://deltaview.refactorroom.com
Easily input two JSON objects to compare. The interface features:
- Side-by-side JSON input panels
- Format buttons to validate and beautify JSON
- Load example data for quick testing
- Real-time error validation
- Support for large JSON structures
Get detailed, line-by-line diff visualization:
- Orange highlights - Removed or old values
- Purple highlights - Added or new values
- Character-level precision - See exactly what changed within each line
- Copy buttons - Easily copy individual sides
- Expandable view - Toggle between split and fullscreen modes
- Line numbers for easy reference
Key Comparison Features:
- Recursive diff of nested objects
- Array element tracking
- Property addition/removal detection
- Value modification detection
- Type change detection
Visualize JSON structure as an interactive graph:
- Node-based representation of objects and arrays
- Visual relationship mapping
- Interactive node exploration
- Zoom and pan controls
- Perfect for understanding complex JSON hierarchies
Graph Features:
- Auto-layout for clarity
- Color-coded node types
- Expandable/collapsible nodes
- Connection visualization
- Ideal for API responses and config files
Convert JSON data into structured table format:
- Automatic table generation from JSON objects
- Column headers from object keys
- Clean, organized data presentation
- Sortable columns
- Perfect for data-driven JSON
Table Features:
- Auto-detect and format columns
- Handle nested objects gracefully
- Array data visualization
- Easy copy and export functionality
- Responsive column sizing
Format, validate, and beautify JSON with professional formatting:
- One-click JSON formatting
- Automatic indentation (2 spaces)
- Syntax highlighting
- Error detection with line numbers
- Copy formatted output
Formatter Capabilities:
- Validate JSON syntax
- Detect and report errors
- Pretty-print with proper indentation
- Remove unnecessary whitespace
- Support for large files
- Instant Validation - Real-time error checking
- Responsive Design - Works perfectly on desktop, tablet, and mobile
- Dark/Light Mode - Comfortable viewing in any lighting
- Fast Processing - Handles large JSON files efficiently
- Type-Safe - Built with TypeScript for reliability
-
Architecture Definition - Used natural language in
docs/architecture.mdto define the diff engine specifications, component structure, and data contracts. GitHub Copilot CLI helped generate detailed TypeScript interfaces. -
Component Generation - Leveraged
gh copilotin the terminal to:- Generate React component scaffolds with proper TypeScript types
- Create utility functions following project conventions
- Generate UI component wrappers for shadcn/ui integration
-
Complex Logic Implementation - Used Copilot Chat for:
- Implementing the recursive JSON diff algorithm
- Handling edge cases and data type comparisons
- Creating proper error handling patterns
-
Code Quality & Consistency - Copilot CLI suggested:
- Linting fixes and TypeScript improvements
- Best practice patterns for React hooks and state management
- Proper accessibility attributes for UI components
Productivity Gains:
- โก 60-80% faster development - Boilerplate and repetitive code generation done by AI
- ๐ฏ Consistency - All components follow the same patterns defined in agent markdown files
- ๐ Better Documentation - Architecture markdown files serve as both specs and living documentation
- ๐ Fewer Bugs - Type-safe implementations and consistent error handling patterns
Developer Experience:
- Natural language to code conversion eliminated context switching
- AI understood project conventions and applied them automatically
- Focus shifted from syntax to architecture and user experience
- Iterative refinement became faster with AI assistance
- Markdown-First Development - Well-structured architecture docs enable AI to maintain consistency across large codebases
- Context is King - Providing clear specifications in agent files dramatically improves code quality
- Collaboration Model - Human architects design system, AI implements details, humans review and refine
- Scalability - This methodology scales better than traditional development for complex projects
This project demonstrates that modern web applications can be built faster, with higher quality, and better maintainability when humans and AI work together with clear architectural specifications.
GitHub Copilot transforms your coding experience into a productive conversation with AI! Whether you're building new features, debugging code, or learning new frameworks, Copilot is your 24/7 coding companion that makes development easier, faster, and more enjoyable.
- ๐ฏ Easy to Use - Just install and start coding! Copilot understands natural language and suggests code as you type
- โก Boost Productivity - Cut development time in half by letting AI handle boilerplate, repetitive tasks, and scaffolding
- ๐ก Learn While You Code - Discover best practices, new APIs, and coding patterns through intelligent suggestions
- ๐จ Focus on Creativity - Spend less time on syntax, more time on solving problems and building amazing features
- ๐ค CLI Power - Use
gh copilotin your terminal for instant help, command suggestions, and code generation
Getting started with GitHub Copilot is as easy as 1-2-3:
- Install the Extension - One click in VS Code or your favorite IDE
- Sign In - Connect with your GitHub account
- Start Coding - That's it! Copilot is ready to assist you
"Instead of manually writing everything from scratch, I just describe what I want and Copilot generates it. This cuts out boilerplate and lets me focus on the actual logic and user experience."
Key Features That Make Coding Fun:
- Natural Language โ Code: Describe what you want in comments, get working code instantly
- Context-Aware: Understands your project structure and adapts to your coding style
- Multi-Language: Works seamlessly with dozens of programming languages
- Terminal Integration: GitHub Copilot CLI for command suggestions and explanations right in your terminal
- Real-Time Assistance: Get suggestions as you type, no interruptions to your flow
- Generate entire functions from a single comment
- Convert ideas into working code in seconds
- Automate repetitive coding tasks
- Get instant code explanations and documentation
- Fix bugs faster with AI-powered suggestions
Ready to supercharge your coding? Get GitHub Copilot today!
This project demonstrates a powerful AI-first development methodology using structured markdown documentation to guide AI coding agents. Instead of traditional specification documents, we use agent-optimized markdown files that serve as both documentation and instruction sets for AI assistants like GitHub Copilot.
Our docs/ folder contains markdown files specifically designed for AI agents:
docs/
โโโ agent.md # Core agent instructions & principles
โโโ architecture.md # System architecture & structure
โโโ coding-standards.md # Code quality rules
โโโ prompt.md # Initial project prompt
โโโ ui-guidelines.md # UI/UX specifications
โโโ vision.md # Project scope & constraints
โโโ tasks/ # Task breakdown
Traditional Development:
- Write specs โ Translate to code โ Review โ Refactor
- High cognitive load on developers
- Specs often become outdated
- Inconsistent implementation
AI-Driven Development:
- Write clear markdown requirements โ AI generates code โ Human reviews
- AI maintains consistency across codebase
- Documentation stays synchronized with code
- Faster iteration cycles
1. Architecture as Code (architecture.md)
Defines the entire system structure, component responsibilities, and technical constraints:
- Tech stack decisions (React, TypeScript, shadcn/ui)
- File organization and structure
- Data contracts and interfaces
- Performance constraints
- Non-goals and boundaries
AI Agent Benefit: Understands the full context and makes consistent architectural decisions.
2. Agent Instructions (agent.md)
Core principles and rules for the AI coding agent:
- Code style preferences
- Component patterns to follow
- JSON handling rules
- UI tone and approach
- Error handling standards
AI Agent Benefit: Maintains code quality and follows project conventions automatically.
3. Project Prompt (prompt.md)
The initial project specification in natural language:
- Feature requirements
- Component structure
- UX guidelines
- API contracts
AI Agent Benefit: Can regenerate or extend features while staying aligned with original vision.
4. Vision Document (vision.md)
Clear boundaries and constraints:
- What the project IS
- What the project IS NOT
- Scope limitations
AI Agent Benefit: Prevents scope creep and keeps AI focused on core functionality.
- Generate entire components from markdown specifications
- Boilerplate elimination โ AI handles repetitive code
- Parallel development โ AI works on multiple files simultaneously
- Architectural alignment โ AI follows defined patterns
- Code style uniformity โ Automatic adherence to standards
- No drift โ Documentation and code stay in sync
- Markdown files are human-readable project docs
- AI references them for every code generation
- Easy to update and maintain
- New team members read markdown files
- AI onboards instantly with same context
- Reduces tribal knowledge problems
Before leveraging GitHub Copilot, we start with a basic project setup. This project was initialized using Bun:
bun initAfter running bun init, your project structure is ready:
This creates the initial project structure with:
- Basic
package.json - TypeScript configuration
- Entry point files
Why manual first? This establishes the foundation and project structure that Copilot will then enhance and build upon. You control the tech stack decisions, and AI handles the implementation details.
When you open your project folder in VS Code, you'll need to trust the workspace to enable all features:
Click "Yes, I trust the authors" to allow VS Code and GitHub Copilot to:
- Access your project files
- Provide context-aware suggestions
- Run scripts and tools
- Enable full extension functionality
This is a one-time security step that ensures you're comfortable with the code in your workspace.
Now you're ready to start working with GitHub Copilot! Open the Copilot chat and start describing what you want to build:
Simply describe your requirements in natural language:
- "Create a JSON formatter component following docs/architecture.md"
- "Build a diff viewer with syntax highlighting"
- "Add error handling for invalid JSON input"
Copilot understands your project context and generates code that fits your architecture!
Once the foundation is set, GitHub Copilot accelerates development:
Scenario: Add a new "Export to CSV" feature
Traditional Approach:
- Write feature spec
- Manually code the export logic
- Create UI components
- Write tests
- Update documentation
- Code review
- Refactor
AI-Driven Approach:
- Update
docs/architecture.mdwith CSV export requirements - Ask Copilot: "Implement CSV export feature following docs/architecture.md"
- AI generates:
- Export logic in
lib/export/csv.ts - UI button component
- Integration with existing panels
- Error handling
- TypeScript types
- Export logic in
- Human reviews and refines
- Documentation already updated (step 1)
Time saved: 60-80% reduction in implementation time
Our architecture.md specifies:
## Diff Engine
Must be:
- Structural (parse JSON first)
- Recursive
- Deterministic
- Library-free
type DiffEntry = {
path: string
type: "added" | "removed" | "modified"
oldValue?: unknown
newValue?: unknown
}AI Agent reads this and generates:
- Complete recursive diff algorithm
- Type-safe implementation
- Proper error handling
- Exact data contract adherence
Developer role: Review logic, test edge cases, refine algorithm
-
Be Specific, Not Vague
- โ "Make it look nice"
- โ "Use monospace font, 2-space indentation, subtle colors (green for added, red for removed)"
-
Define Data Contracts
- Include TypeScript types in markdown
- Specify exact field names and types
- Show example inputs/outputs
-
Set Boundaries
- Explicitly state what NOT to do
- Define scope limitations
- Prevent feature creep
-
Keep It Organized
- One concern per file
- Cross-reference related files
- Use clear headings
-
Write for Both AI and Humans
- Natural language that humans can read
- Structured format AI can parse
- Examples and counterexamples
- Create a
docs/folder in your project - Write an architecture.md โ Define your system structure
- Add agent.md โ Specify coding principles and patterns
- Create vision.md โ Set clear boundaries
- Reference these files when working with GitHub Copilot
- Iterate โ Update markdown files as requirements evolve
AI-driven development with agent markdown files represents a paradigm shift:
- Documentation-first development
- AI as implementation partner
- Human as architect and reviewer
- Faster, more consistent codebases
This project (deltaview.refactorroom.com) was built almost entirely using this methodology, demonstrating that complex applications can be developed with AI assistance while maintaining high code quality and clear architecture.
DeltaView is deployed to Cloudflare Pages for fast, global distribution. Here's how to deploy:
- Cloudflare Account - Sign up at cloudflare.com
- Wrangler CLI - Install with:
npm install -g wrangler
- Authentication - Run
wrangler loginto connect your account
Your project is configured for Cloudflare Pages with:
- Project name:
deltaview - Build output:
dist/ - Build command:
bun run build.ts
wrangler loginbun run build.tsThis generates the dist/ folder with your static assets.
wrangler pages deploy distOr deploy to a specific environment:
wrangler pages deploy dist --branch=production
wrangler pages deploy dist --branch=preview- Go to Cloudflare Dashboard
- Select deltaview project
- Navigate to Settings โ Custom domains
- Add your domain (e.g.,
deltaview.refactorroom.com)
We've provided convenient npm scripts in package.json:
bun run pages:build # Build the project
bun run pages:deploy # Deploy to Pages
bun run pages:dev # Local Pages previewFor automatic deployments on every push:
- Go to Cloudflare Dashboard
- Select deltaview project โ Settings โ Build and deployment
- Connect your GitHub repository
- Configure:
- Build command:
bun run build.ts - Build output directory:
dist
- Build command:
- Push to main branch - deployment happens automatically!
Your site is live at:
- Pages domain:
https://deltaview-ap7.pages.dev - Custom domain:
https://deltaview.refactorroom.com(once configured)
To install dependencies:
bun installTo start a development server:
bun devTo run for production:
bun startThis project was created using bun init in bun v1.2.19. Bun is a fast all-in-one JavaScript runtime.










