NHacker Next
login
▲Show HN: Doxx – Terminal .docx viewer inspired by Glowgithub.com
179 points by w108bmg 13 hours ago | 48 comments
Loading comments...
zvr 1 hours ago [-]
Wonderful project; loved the speed and responsiveness.

But a humble request: please make sure that the planned "AI integration" is completely optional, not compiled-in, or, even better, a sister project ("aidoxx"?).

Having the functionality of sending the contents of a Word document to any external service will be a red flag and block adoption of this tool in many environments.

piker 29 minutes ago [-]
Hey this looks really awesome. Super helpful for those of us who are building in the document space for debugging if nothing else. Here are a couple of other projects for you to develop with / on if you aren't already using them:

- https://github.com/mikeebowen/OOXML-Validator (if you plan on making edits, you'll want to ensure they're renderable by other Word users)

- https://marketplace.visualstudio.com/items?itemName=yuenm18.... (incredible VS code extension for debugging OOXML files)

One thing that will surprise a lot of users is how common old-style Word (.doc) files are still. For that you might consider integrating Antiword (https://github.com/grobian/antiword) if you can get comfortable with the licensing.

Be aware that styles play an important role in numbering that doesn't seem to be picked up here. So you'll want to apply the styles before calculating the numbering levels.

Over all really cool. Hit me up if you ever want to swap notes on Docx and Rust. My email is in my profile.

Keep it up!

_def 20 minutes ago [-]
Far tangent: does anyone else feel pressured when viewing a document in google docs and it's visible that a coworker is (or could) also viewing it, and seeing your cursor etc?
ashton314 5 hours ago [-]
Very cool!

I did something like this with pandoc:

    pandoc -s -t man "$1" | groff -T utf8 -man | ${PAGER:-less}
Keeps a lot or formatting. My favorite way to read a README file in the terminal
treetalker 13 hours ago [-]
Great project! Looking forward to trying it out in my law practice.

The name causes miscues and carries negative connotations, though, on account of its homonym verb (doxxing).

w108bmg 8 hours ago [-]
It's 100% intentional wordplay! "Doxxing" documents by exposing their contents in the terminal instead of keeping them locked in Microsoft Word. The whole project is about "liberation from Office" so the pun felt perfect. I'm honestly not too creative so I was bouncing around with Google Gemini on some "clever" names.
rafram 5 hours ago [-]
Some people may not want to have a tool called "doxx" installed on their work machines, FWIW.
KomoD 4 hours ago [-]
This is such a non-issue, it's just a name.

If someone asks about it "It's a tool to view docx files", end of conversation

8organicbits 3 hours ago [-]
We've got `git` (an insult), `kill` (violent), `slack` (not doing work) and `fsck` (looks like fuck). Doxx seems ok to me too.
paavope 55 minutes ago [-]
I've seen the `itsdangerous` [1] package (which is a dependency for lot of Python projects) raise some eyebrows several times.

[1] https://itsdangerous.palletsprojects.com/en/stable/

jahsome 3 hours ago [-]
I get the sense you've never worked under the oppresive thumb of dashboard-driven enterprise IT, heh
ThreatSystems 10 hours ago [-]
I am genuinely curious, as to how this would be a solution for a law practice? How many lawyers are SSH'd into servers? Or am I being ignorant?
btown 8 hours ago [-]
As a non-lawyer who’s nonetheless been asked to help to review internal documents en masse - the idea of a fully scriptable <50ms switch time between documents is quite appealing. AI can help with initial screening, but there are many situations where humans are asked or required to do review at scale.
treetalker 8 hours ago [-]
I hate Word but sometimes have to deal with it when I would rather just have plain text. (Among other reasons, Word is notorious for making it difficult to select text to copy and paste, especially when dealing with legal citations and quotations.) Furthermore, the structure of documents is important to understanding them, especially in the law. So it seems like it would be useful to work with the text of the documents without locking horns with M$.

Scripting uses interest me too. Perhaps pandoc will still be a better option, but I'm also a sucker for TUIs and _Charm projects!

albertgoeswoof 2 hours ago [-]
This is what you’re looking for: https://tritium.legal/
w108bmg 8 hours ago [-]
I'm working to improve the copy/paste. Right now, you can copy everything, but not select snippets to copy/paste (ways around this, though). Hopefully have it working in the next week!
Eldt 9 hours ago [-]
It doesn't have to be used over SSH, some lawyers might be comfortable using the terminal for local work
Tmpod 10 hours ago [-]
Was thinking the same. Might be worth looking into renaming the project, to prevent situations like that for both maintainers and users.
nine_k 9 hours ago [-]
The name could rather be docc, along the lines of thicc,
Imustaskforhelp 2 hours ago [-]
Yea I like this one, I feel like they should change the name but maybe that's just my opinion and the author is free to do what they want with the project's name.

But still doxx feels like it would just get some unwarranted attention when its unnecessary and docc seems a nice enough name too.

I mean, the project seems fantastic but still the project seems quite new and I don't think that it would suffer anything from a name change.

politelemon 2 hours ago [-]
It would be very nice if this were in a Docker image, so we don't need a go install.
majkinetor 2 hours ago [-]
This looks great, I hope we will have releases for Windows soon. It really does going to my nerves to install MS Office on new machine, and recently I stopped doing that and use Office 365 free version to view and edit docs instead, which is way worst regarding efficiency and privacy, but at least I don't have it on my machine. Its a shame there is no stripped down version of Word that lets me just view docx files and do most basic editing and commenting, that can be installed with winget in seconds. I use markdown for everything, but in enterprise environment when I send markdown to people they convert it to Word and return it back...

BTW, 8 seconds to start Word? What kind of computer are you using? Word is not performance beast but its not that slow either.

jbgt 2 minutes ago [-]
LibreOffice is a food alternative if you just want simple Word management.

Of course it's a big install on the other hand.

3eb7988a1663 3 hours ago [-]
Can this interact with Track Changes at all? Reviews+Comments? Probably a rat's nest of complexity, but that is something which might interest me every once and a while.

The other thing which was not obvious - can you extract document metadata and/or hidden text elements?

BrouteMinou 8 hours ago [-]
It looks fantastic! That's going into my toolbox that's for sure.

It's refreshing to see something that isn't another chatbot.

g0ran 50 minutes ago [-]
What an unfortunate name.
angrydingo 59 minutes ago [-]
very cool, just discovered glow so I would like to build something similar too :)
zipping1549 8 hours ago [-]
Great project. I love anything TUI.

Not so good of a name.

goku12 4 hours ago [-]
True on both accounts. Doxxing is a traumatic experience for those who have been at its receiving end. A good project like this shouldn't be marred by a name like that.
agnishom 8 hours ago [-]
Agree on the second part.

https://www.urbandictionary.com/define.php?term=doxx

w108bmg 7 hours ago [-]
I honestly don't get the name hate? It's 100% intentional wordplay! "Exposing" word documents in the CLI.
mionhe 6 hours ago [-]
Doxing is more than exposure. It's exposing someone's real world identity online, often with the intent to harm them. It's the harming portion that I think most people are objecting to. While I doubt most of us have enough online notoriety for us to be targeted in this kind of attack, the idea is still very uncomfortable personally.
rafram 5 hours ago [-]
If you keep having to explain why the name isn’t offensive/distasteful, it probably is (at least to a meaningful portion of the population).
leptons 3 hours ago [-]
Out of all the names this could have had, "doxx" is probably the absolute worst. "Wordplay" doesn't excuse bad taste. I'm not sure how many comments about it will convince you of that.

>"Exposing" word documents in the CLI.

You're trying way too hard.

16bytes 5 hours ago [-]
It's a very pejorative term that is used with malicious intent. You don't understand why folk find it off-putting?

What about something like mdocx?

porridgeraisin 3 hours ago [-]
Is there no image support? You can use the kitty image protocol or sixel to display them inline no?
greazy 10 hours ago [-]
Very cool project. I wish something like this for pdf files.
ivanjermakov 9 hours ago [-]
You can always use pandoc to convert pdf to md/plaintext and print it to console.
zvr 1 hours ago [-]
Pandoc can convert to PDF, but not from PDF.

https://pandoc.org/faqs.html#how-can-i-convert-pdfs-to-other...

jamatui 10 hours ago [-]
[dead]
firesteelrain 7 hours ago [-]
Can you use this to basically cat the output and then you can grep the docx?

pandoc can do this

w108bmg 7 hours ago [-]
Maybe? I don't use Pandoc directly (fantastic program, but I only use it thorugh Quarto and Rmarkdown), but something like `doxx document.docx --export text | grep "search term"` should work just like `cat`+`grep`, but with better table structure and no intermediate conversion needed like pandoc.
firesteelrain 7 hours ago [-]
With pandoc you can do this I think

pandoc -t plain file.docx | grep "pattern"

koolba 7 hours ago [-]
Even better you can have pandoc output markdown.
acedTrex 7 hours ago [-]
> claude.md in the repo

Very unfortunate

btbuildem 6 hours ago [-]
And why is that? Because the logs were not hand-hewn? Source code was not crafted by the honest, simple, hard-working indigenous peoples of... wherever?

If you read through that claude.md, it's a well-organized summary of the project, touching on design, architecture, enumerating the functionality implemented so far, future goals, and more. It makes for a pretty great onboarding document for collaborators, tbh.

Have jetpack, will fly.

mikepurvis 5 hours ago [-]
I noticed this too recently, that the copilot instructions I had written up were just as suitable for importing a human.
10 hours ago [-]
Hilift 2 hours ago [-]
> Working on servers over SSH, I constantly hit Word docs

What?

11 hours ago [-]
pylotlight 6 hours ago [-]
Install from source with git surely cannot be your only deployment plan here?