TE
테크에코
홈24시간 인기최신베스트질문쇼채용
GitHubTwitter
홈

테크에코

Next.js로 구축된 기술 뉴스 플랫폼으로 글로벌 기술 뉴스와 토론을 제공합니다.

GitHubTwitter

홈

홈최신베스트질문쇼채용

리소스

HackerNews API원본 HackerNewsNext.js

© 2025 테크에코. 모든 권리 보유.

Display any CSV file as a searchable, filterable, pretty HTML table

265 포인트작성자: indigodaddy4일 전
I combined this with a simple API to update a CSV file using Deno/deno-csv library, allowing an Ansible job to easily update a CSV file via the API with Ansible URI module, and then have that same CSV file viewable/downloadable in a simple and easy/dashboardy way (with CSV-to-html-table). Copilot created the Deno/deno-csv CSV API code and then with a little back and forth I added static website functionality (to serve the CSV table), and I had a /view and a /update route. I'm just a sysadmin but I love piecing together stuff like this. Thanks Derek!

25 comments

waltbosz3일 전
&gt; I&#x27;m just a sysadmin but I love piecing together stuff like this.<p>I&#x27;m a developer and piecing stuff together is my favorite part of the job. The joy is in the design, the actual coding is just a means to an end.<p>I&#x27;ve written similar browser tools for handing tabular data. One neat thing I&#x27;ve learned is if you copy and paste from Excel into an html `textarea`, you get the data as tab delimited text. Add a `paste` event handler to the `textarea` then parse the data in code.
szszrk4일 전
I know PowerShell is surrounded with polarized opinions, but that&#x27;s one of the things it&#x27;s amazing for. Import-Csv with Out-GridView gives nice results and it can be just a one-liner wrote from memory.<p>Just a reminder that it&#x27;s possible and often built into our work environments, while we pretend it&#x27;s not there.
评论 #44063755 未加载
评论 #44063081 未加载
评论 #44062650 未加载
评论 #44065253 未加载
34f34f34일 전
Alternatively, feed your spreadsheet file (CSV, XLS, whatever) to Google Sheets and then select File &gt; Download &gt; Web Page (.html) – especially when you have a ton of formatting (font, colors, borders, whatnot)... the result looks great!
评论 #44062217 未加载
评论 #44063327 未加载
评论 #44060027 未加载
ederderek3일 전
hey all - I&#x27;m the creator of this tool. very cool to see a project I wrote 10 years ago get some recognition. Sorry about the jQuery. Pull Requests welcome!
评论 #44083627 未加载
1vuio0pswjnm73일 전
I use sqlite3 for this task because I use a text-only browser to read HTML. It has no Javascript engine. The HTML tables prooduced by sqlite3 do not require Javascript.
评论 #44068603 未加载
RUnconcerned3일 전
This is neat. I had a recent need to do something similar, but ended up using Grist CSV Viewer[1], which I think is a bit more feature complete. I had ChatGPT create an HTML file that would let me paste the CSV instead of loading a specific file and it worked pretty well while being more convenient than loading the CSV into Google Sheets or whatever.<p>[1] <a href="https:&#x2F;&#x2F;www.getgrist.com&#x2F;csv-viewer&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.getgrist.com&#x2F;csv-viewer&#x2F;</a>
评论 #44064752 未加载
indigodaddy4일 전
I combined this with a simple API to update a CSV file using Deno&#x2F;deno-csv library, allowing an Ansible job to easily update a CSV file via the API with Ansible URI module, and then have that same CSV file viewable&#x2F;downloadable in a simple and easy&#x2F;dashboardy way (with CSV-to-html-table). Copilot created the Deno&#x2F;deno-csv CSV API code and then with a little back and forth I added static website functionality (to serve the CSV table), and I had a &#x2F;view and a &#x2F;update route. I&#x27;m just a sysadmin but I love piecing together stuff like this. Thanks Derek!
hk13373일 전
I kind of want to fork it and work out the jQuery dependency.<p>*EDIT* Would probably be easier to start a new one and maybe use PapaParse to parse the CSV.
评论 #44062281 未加载
评论 #44062180 未加载
65104일 전
I wrote this long ago. Looking at it I&#x27;m really a master spaghetti coder.<p><a href="https:&#x2F;&#x2F;jsfiddle.net&#x2F;ypfr98su&#x2F;5&#x2F;" rel="nofollow">https:&#x2F;&#x2F;jsfiddle.net&#x2F;ypfr98su&#x2F;5&#x2F;</a>
评论 #44060389 未加载
mattsouth3일 전
Nice. Its interesting to me that searching and filtering isnt something that <a href="http:&#x2F;&#x2F;csvbase.com" rel="nofollow">http:&#x2F;&#x2F;csvbase.com</a> has.
评论 #44062708 未加载
cbeach3일 전
Datasette (open source project by @simonw, 10K stars on GitHub) excels at this: <a href="https:&#x2F;&#x2F;datasette.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;datasette.io&#x2F;</a><p>Plugins like datasette-extract (AI powered data extraction) are amazing: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=g3NtJatmQR0" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=g3NtJatmQR0</a>
评论 #44065313 未加载
strunz4일 전
Love this idea, wish I could pipe a CSV right to the tool though!
评论 #44059277 未加载
promiseofbeans4일 전
How does this handle CSV&#x27;s with no headers, or data that&#x27;s offset from the top? (e.g. a row for title and subtitle, before the table headers &amp; data)
评论 #44057988 未加载
评论 #44057954 未加载
sn0n4일 전
This is amazing!! I finally have an excuse to use spreadsheets again! I&#x27;ve been avoiding them for years, Legitimately.
评论 #44058801 未加载
neilv4일 전
Obligatory suggestion to developers who use this: Don&#x27;t copy&amp;paste reuse that custom formatting code from the demo for arbitrary CSV, since the code inserts arbitrary strings into both HTML attribute value and CDATA contexts, without escaping special characters.<p><pre><code> return &quot;&lt;a href=&#x27;&quot; + link + &quot;&#x27; target=&#x27;_blank&#x27;&gt;&quot; + link + &quot;&lt;&#x2F;a&gt;&quot;;</code></pre>
评论 #44059427 未加载
pphysch4일 전
I was wondering why this wasn&#x27;t expressed as a webcomponent, then saw it&#x27;s a decade old. Nice.
评论 #44060398 未加载
654일 전
Pretty cool. I&#x27;m wondering how large of a CSV you could feasibly load with this. I always have to manually open CSVs in text editors if they&#x27;re too large for Excel, so if this is a better UI for it that can handle large files I will definitely use this.
评论 #44058620 未加载
bryanhogan3일 전
I was actually looking for something like this! It seems to be a bit old though, does it work well? Also I can&#x27;t seem to filter columns?<p>Are there other tools like it?<p>Got a collection of larger CSV files that I wanted to include on a Astro Starlight project of mine.
nashashmi3일 전
Custom formatting should be called js column wrapper.<p>I thought custom formatting would be changing colors and widths text wrappings.<p>And maybe add a head wrapper?
davidcollantes3일 전
If the author is here, I would love a JSON to pretty HTML table too (with all the features this one has)!
magesh_magi14일 전
Ha, I&#x27;m working on a similar utility with some extra features also enabling WASM that might help in case of larger files.
CommenterPerson3일 전
Nice work! Immediately usable.
joseangel_sc4일 전
i’m gonna test this on a 52k rows document, very curious if it can handle that
评论 #44058605 未加载
indigodaddy4일 전
Dang, I&#x27;m not the author, so do not think this should be a show HN, at least not with me remaining as the submitter. I did not submit it as such, and then later an admin edited it to a show HN, and put my comment (that I added for context later for how I made use of the tool) as the description. That blurb currently as the description should probably be returned to a plain comment. All I did was stumble upon Derek&#x27;s repo when I was looking for something to stitch together for a particular use-case.
评论 #44061474 未加载
评论 #44058960 未加载
评论 #44058108 未加载
datax23일 전
Not for nothing, you could do this with Streamlit and 30 seconds of vibe coding.<p>you can also use Kanaries if you are looking for some more detailed &quot;Tableau&quot; like analytics platform.
评论 #44062448 未加载