<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/difftastic-a-structural-diff-yvn6mppav" -->

---
title: Difftastic, a structural diff | daily.dev
description: Difftastic is a structural diff tool that compares files based on their syntax, not line-by-line. It can accurately show differences in code formatting and the...
canonical: https://daily.dev/posts/difftastic-a-structural-diff-yvn6mppav
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Difftastic, a structural diff | daily.dev
og:description: Difftastic is a structural diff tool that compares files based on their syntax, not line-by-line. It can accurately show differences in code formatting and the...
og:url: https://daily.dev/posts/difftastic-a-structural-diff-yvn6mppav
og:image: https://api.daily.dev/og/posts/yvn6mpPav.png
og:image:alt: Difftastic, a structural diff
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Difftastic, a structural diff

**[Hacker News](https://daily.dev/sources/hn)** · 1 min read · 71 upvotes · 4 comments

## Summary

Difftastic is a structural diff tool that compares files based on their syntax, not line-by-line. It can accurately show differences in code formatting and the addition of wrappers, and also provides actual line numbers from files before and after changes.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://difftastic.wilfred.me.uk/>

## Community discussion

Top comments from developers on daily.dev.

**@mykytanikitenko42** · 3 upvotes

> Oh, this is a really cool tool

**@alsageek** · 0 upvotes

> Using it for a month, it has changed my daily work, and in a good way

---

Tags: [#cli](https://daily.dev/tags/cli)

[View this post on daily.dev](https://daily.dev/posts/difftastic-a-structural-diff-yvn6mppav)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Difftastic, a structural diff","url":"https://daily.dev/posts/difftastic-a-structural-diff-yvn6mppav","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/difftastic-a-structural-diff-yvn6mppav"},"datePublished":"2024-03-22T00:34:21.652Z","dateModified":"2024-05-09T08:43:33.910Z","description":"Difftastic is a structural diff tool that compares files based on their syntax, not line-by-line. It can accurately show differences in code formatting and the...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/31e638967875ad34d8399e3bf90be0b2?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/31e638967875ad34d8399e3bf90be0b2?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":4,"discussionUrl":"https://daily.dev/posts/difftastic-a-structural-diff-yvn6mppav","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":71},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":4}],"keywords":"cli","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"Difftastic, a structural diff"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/difftastic-a-structural-diff-yvn6mppav","comment":[{"@type":"Comment","text":"Oh, this is a really cool tool","datePublished":"2024-03-22T12:25:41.416Z","url":"https://daily.dev/posts/yvn6mpPav#c-bTsIWAqOx","author":{"@type":"Person","name":"Mykyta Nikitenko","url":"https://daily.dev/mykytanikitenko42","image":"https://lh3.googleusercontent.com/a/AAcHTtfurSXqjGczJrC4WFT2LrMQYjGe-Qrau5HTeaP1=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}},{"@type":"Comment","text":"Using it for a month, it has changed my daily work, and in a good way","datePublished":"2024-04-18T13:57:03.907Z","url":"https://daily.dev/posts/yvn6mpPav#c-Vid7VkyZS","author":{"@type":"Person","name":"Nobody","url":"https://daily.dev/alsageek","image":"https://avatars.githubusercontent.com/u/2794898?v=4"}}]}
```

