TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Printercow – Turn any thermal printer into an API endpoint

150 点作者 lionpixel4 个月前
I&#x27;ve always been fascinated by thermal printers – there&#x27;s something magical about seeing text and images materialize on paper in seconds. But I found that working with them programmatically was always a pain. You either had to deal with ancient printer protocols or use clunky vendor-specific SDKs. So I built Printercow (<a href="https:&#x2F;&#x2F;printercow.com" rel="nofollow">https:&#x2F;&#x2F;printercow.com</a>) – it turns any thermal printer into an HTTP endpoint with just one command.<p>Technical details: - Supports any ESC&#x2F;POS compatible printer (Epson, Star Micronics, etc.) - Handles paper widths from 58mm to 120mm - Automatic image dithering and scaling - Built-in failover protection for high-volume scenarios<p>Don&#x27;t have a printer yet but want to try it out? I&#x27;ve got you covered! When you sign-up you get 300 free prints and you can watch your creations come to life on my printer via Twitch live stream (<a href="https:&#x2F;&#x2F;twitch.tv&#x2F;printercow" rel="nofollow">https:&#x2F;&#x2F;twitch.tv&#x2F;printercow</a>). Perfect for testing your integration before committing to hardware.<p>I&#x27;m particularly excited about the AI integration possibilities. Instead of yet another chat interface, you can have AI generate content that exists in the physical world – artwork, poems, todo lists, custom receipts, etc.<p>Would love to hear your thoughts, feature requests, or creative use cases you can think of! Also happy to answer any technical questions about the implementation.

31 条评论

black_puppydog4 个月前
I can see the value in this, but I don&#x27;t get why it needs to be a SaaS. Don&#x27;t get me wrong; a revenue stream for something this obviously useful is great! But why not just make it dual licensing; non-commercial projects get it under AGPL or some custom license that prevents them from using it commercially. Everyone else gets a bog-standard yearly license or such... Why not?
评论 #42784201 未加载
评论 #42781126 未加载
评论 #42788478 未加载
mrtksn4 个月前
Okay, the question is: Can it print with a Cat Printer?<p>You know, the cheap toy-like printers? Like this: <a href="https:&#x2F;&#x2F;www.amazon.co.uk&#x2F;Portable-Instant-Bluetooth-Wireless-Students&#x2F;dp&#x2F;B08NCLFPTV" rel="nofollow">https:&#x2F;&#x2F;www.amazon.co.uk&#x2F;Portable-Instant-Bluetooth-Wireless...</a><p>I was trying to hack mine to use it with an app I want to create for personal use. Currently only prints using the official Fun Print app over a bluetooth connection.<p>There are projects[0]that are supposed to work with a cat printer but mine specifically isn’t. It identifies itself as “MXW01” , which is different that the printers tested.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;NaitLee&#x2F;Cat-Printer">https:&#x2F;&#x2F;github.com&#x2F;NaitLee&#x2F;Cat-Printer</a> <a href="https:&#x2F;&#x2F;github.com&#x2F;bitbank2&#x2F;Print2BLE">https:&#x2F;&#x2F;github.com&#x2F;bitbank2&#x2F;Print2BLE</a>
评论 #42784412 未加载
评论 #42785154 未加载
freedomben4 个月前
This is a great idea, and it looks like you&#x27;ve done a great job! I share your enthusiasm for these printers. I have a Rongta receipt printer sitting on my desk that I like to play with :-)<p>I have a business usecase for something like this (now that Chrome doesn&#x27;t allow printing to ESC&#x2F;POS), and exposing the printer interface as an HTTP API is a clever and great solution! But, sending the data through a third party is a complete no-go for us for reasons of compliance. For this architecture to work for us we would have to host it on our VPN and serve it from our own domain as our customers have a strict whitelist.<p>As cool an idea as this is, honestly though I don&#x27;t think this should be a SaaS. Certainly it doesn&#x27;t fit the typical mold of SaaS where there&#x27;s nothing to install because it&#x27;s all delivered through the web. Given you have to install a local Pi or other, you lose all the benefits of SaaS and also incur all the downsides of SaaS. It feels like it was shoehorned into a SaaS because otherwise it would be very hard to monetize. I don&#x27;t blame you for that because it is indeed a hard problem to figure out how to get paid (in fact I&#x27;ve abandoned good ideas prevously because it was either SaaSify something that shouldn&#x27;t be a SaaS or else face huge obstacles getting paid), but I wanted to share my thoughts honestly.
评论 #42789872 未加载
RadiozRadioz4 个月前
Interestingly I made this same exact thing a few years ago for a company I worked at.<p>Raspberry pi connects to the printer, pi runs a daemon, Daemon connects to a central server and downloads stuff to print, server runs an API with a friendly endpoint.<p>Difference with mine is that I used CUPS on the pi and generated PDFs for it. I supplied a custom PPD to make the printouts extra crisp, but other than that the OS handled it for me. What I wrote was little more than a PDF generator and a basic spooler.<p>I can attest that this method is very reliable, if you&#x27;re looking for confirmation that this architecture can be used in production.<p>I do question whether it&#x27;s worth paying for this as a SaaS though. Speaking as someone who has built this, I&#x27;d probably build it again and it doesn&#x27;t take long to get &quot;good enough&quot;. The bulk of my time was spent on improving the printout quality from the built-in driver. Which was fun but unnecessary.
smokeydoe4 个月前
This is really cool. I used to enjoy toying with thermal printers until I found out the paper is coated with a very fine dust of BPA. Still they sell thermal printer cameras on Amazon marketed for children
评论 #42782757 未加载
评论 #42780359 未加载
评论 #42781493 未加载
codazoda4 个月前
Inspired by other receipt printer projects on HN, I just purchased a MUNBYN P075 printer last week. I thought it was going to be a lot more complex than it was. I thought I&#x27;d have to write ESC&#x2F;POS codes manually to generate images, for example. But, it&#x27;s actually quite simple, since there is a printer driver.<p>I also decided to make a text file for my daily progress report and shoot that over to the printer with `nc`. The only ESC&#x2F;POS code I&#x27;m using is to send the cut command.<p>I&#x27;m also surprised how FAST these printers are now.<p>Everyone I told I was buying a thermal receipt printer gives me an inquisitive look. I expected that from a lot of people but I was surprised to get the same response from the tech people I work with.<p>Anyway, they are lovely little devices.
评论 #42783330 未加载
jauntywundrkind4 个月前
Reminds me of BERG&#x27;s Little Printer (2012). Someone updated the software stack for em! Nice app, great system, lots of sweet social features &amp; good tools.<p>Alas it seems built around a specific thermal printer, isn&#x27;t generic.<p><a href="https:&#x2F;&#x2F;nordprojects.co&#x2F;projects&#x2F;littleprinters" rel="nofollow">https:&#x2F;&#x2F;nordprojects.co&#x2F;projects&#x2F;littleprinters</a> <a href="https:&#x2F;&#x2F;github.com&#x2F;nordprojects&#x2F;sirius?tab=readme-ov-file">https:&#x2F;&#x2F;github.com&#x2F;nordprojects&#x2F;sirius?tab=readme-ov-file</a> <a href="https:&#x2F;&#x2F;github.com&#x2F;nordprojects&#x2F;littleprinters-ios-app">https:&#x2F;&#x2F;github.com&#x2F;nordprojects&#x2F;littleprinters-ios-app</a>
评论 #42797473 未加载
sometinsome4 个月前
Nice! you&#x27;ve built a whole product around and the Twitch demo is great.<p>In case you need a very basic version of this, I&#x27;ve created a project some time ago, where you can print text over a template, also trough an API and using ESC&#x2F;POS compatible printers:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;emi420&#x2F;esc-pos-server-print">https:&#x2F;&#x2F;github.com&#x2F;emi420&#x2F;esc-pos-server-print</a>
lionpixel4 个月前
In case you don&#x27;t want to create an account, you can just comment with your prompts and I will enter them myself. You can watch let it print on <a href="https:&#x2F;&#x2F;twitch.tv&#x2F;printercow" rel="nofollow">https:&#x2F;&#x2F;twitch.tv&#x2F;printercow</a> then. :)
评论 #42780298 未加载
avgDev4 个月前
Interesting project. I am assuming this is not geared towards business clients who print thousands of labels a day, but more of a fun things to print to thermal printers for individuals? Correct me if I am wrong.<p>I like the twitch stream, fun approach.<p>I&#x27;ve wrote quite a few labels in ZPL, which is used for Zebra printers. The reason I&#x27;ve used ZPL code is that serialization happens on the printer itself. Therefore, it is an easy fire and forget.<p>Can this integrate with a zebra printer? Can this handle large number of prints? Serialization?
评论 #42789883 未加载
voidUpdate4 个月前
Aww, I was hoping you&#x27;d done something fun with the actual firmware of the printer to turn it into something that can receive requests, but its just printing from a pi
irs4 个月前
This is nice! Was looking for exactly a similar feature in a previous HN discussion [0]. Want something that I can integrate with IFTTT&#x2F;Zapier.<p>I was looking to buy one of ESC&#x2F;POS compatible printer but none of the official sites seem to sell directly on the site and have to contact their sales to get a quote. I see a few on ebay and from third party sellers in Amazon.<p>Does anyone have a recommendation on where to buy an official &#x2F; new one without going through the sales call hassle? Or buying from 3rd parties is the only option?<p>[0] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=42599784">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=42599784</a>
评论 #42788031 未加载
评论 #42788141 未加载
Toxygene4 个月前
Very cool. I created a thermal printer project a few years back that prints (low quality) proxies of Magic: the Gathering cards based on the rules for &quot;Momir Basic&quot;. It was a fun project, though formatting images to work with the various ESC&#x2F;POS image formats was quite a challenge.<p><a href="https:&#x2F;&#x2F;magic.wizards.com&#x2F;en&#x2F;formats&#x2F;momir-basic" rel="nofollow">https:&#x2F;&#x2F;magic.wizards.com&#x2F;en&#x2F;formats&#x2F;momir-basic</a> <a href="https:&#x2F;&#x2F;imgur.com&#x2F;gallery&#x2F;momir-basic-irl-g2S3hJT" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;gallery&#x2F;momir-basic-irl-g2S3hJT</a>
评论 #42786511 未加载
rounce4 个月前
What&#x27;s the story if you want to self-host?
评论 #42780918 未加载
JJOmeo4 个月前
This could be plain software on any computer with network and a serial port. Not sure if the product is tied to RP hardware but it certainly wouldn&#x27;t have to be. I work with thermal printers controlled by significantly less powerful hardware still running Linux, and still easily hit physical speed limits. I&#x27;d rather see this as a pure software daemon that can run anywhere.
solarkraft4 个月前
300 free prints? Signing up? AI integration? What?<p>You may be building something cool, I don’t know, but it clearly looks to be different from just providing printer integration. That should be running locally, as a simple application, on an ESP32 or Raspberry Pi.<p>Trying to SaaS an infra utility is crazy.
heeton4 个月前
This is awesome! I have a very hacky prototype doing something similar, you&#x27;ve put way more effort into PrinterCow and it looks great.<p>What&#x27;s the tech? (I&#x27;m crossing my fingers for Elixir&#x2F;Nerves but I suspect that&#x27;s still a bit niche)<p>Edit, I&#x27;m now signed up - though I&#x27;m struggling to find the install instructions for the RPi.
评论 #42780496 未加载
gurveer_singh294 个月前
I work with restaurants— i think this could be quite usefull for them and for our product.<p>Do you have an email i can reach out on, ideally would like to have a quick chat. The sooner the better. I think i have some people who could use this right now
Dromadie4 个月前
Interesting concept. I&#x27;m assuming since this is being done as a SaaS (which I understand, want to be compensated for your time), there&#x27;s no way to run a server locally over wifi without allowing external internet access?
nexus_six4 个月前
I&#x27;m not sure what the point of this really is. Many of those printers and POS systems have OpenCUPS support already, which is more or less &quot;one command&quot;. If it requires a Raspberry Pi I have no idea what you are selling. Can you please elaborate on this?
评论 #42783458 未加载
评论 #42787335 未加载
RileyJames4 个月前
I know nothing about thermal printing.<p>Does it cost more to print more black? Or is the cost of printing baked into the paper?<p>In standard printing white is free. Is the opposite (or cost neutral) true for thermal printing?
评论 #42791860 未加载
e28eta4 个月前
long shot: I’ve got a USB-based ESC&#x2F;POS printer, but couldn’t get my mac nor RPI to recognize it as a printer through CUPS.<p>The printer shows up in the USB tree, but (maybe?) needs a driver to be recognized as a “printer”? I was trying to follow tutorials that treated it as a line printer, but unsuccessfully.<p>Any idea how much luck I will have if I try this out? Does this project rely on working drivers? Or does it handle the raw USB communication?<p>It’s an IBM-branded Type 4610 Model TF6.
评论 #42787303 未加载
maalber4 个月前
Love the idea about a demo on twitch. Simple yet effective! Next up, develop a twitch bot interface so you can handle everything directly there
评论 #42780639 未加载
dougi34 个月前
I do not have a Raspberry Pi laying around, but I do have an Ubuntu computer. Can the Printercow code be executed on my Ubuntu computer?
ksdme94 个月前
The whole twitch demo thing is genius and fun. Do printer companies usually not provide a first party apps or integrations?
评论 #42780259 未加载
ricenb4 个月前
The demo is great, would give a try asap.
dmd4 个月前
&gt; I&#x27;m particularly excited about the AI integration possibilities. Instead of yet another chat interface, you can have AI generate content that exists in the physical world – artwork, poems, todo lists, custom receipts, etc.<p>Incredible. Instead of just creating online trash that nobody wants to read, it can create physical trash too! For maximum art, it can feed directly into a shredder.
评论 #42780559 未加载
评论 #42780463 未加载
评论 #42780735 未加载
评论 #42780502 未加载
评论 #42780749 未加载
评论 #42780514 未加载
评论 #42781258 未加载
corytheboyd4 个月前
Is there something out there like this that is self-hosted? It’s ridiculous that this isn’t, and it’s going to become a pay-per-print model?! I don’t care about the AI nonsense, it’s a printer.<p>I could see myself using something like this to print recipes. I’d like to avoid getting my fancy cook book dirty, but have still have recipe in the kitchen to reference. Phone works okay until you have to scroll with dirty&#x2F;wet hands.
评论 #42781137 未加载
评论 #42781196 未加载
评论 #42781176 未加载
评论 #42781210 未加载
评论 #42781082 未加载
评论 #42781256 未加载
xorcist4 个月前
&gt; everyone gets 300 free prints per month during our beta<p>Ah, printer drivers. One of the things we do not yet rent. Makes sense.
评论 #42780889 未加载
评论 #42781263 未加载
pavel_lishin4 个月前
I&#x27;m going to be the party pooper and point out that thermal paper isn&#x27;t great for your health: <a href="https:&#x2F;&#x2F;pmc.ncbi.nlm.nih.gov&#x2F;articles&#x2F;PMC5453537&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pmc.ncbi.nlm.nih.gov&#x2F;articles&#x2F;PMC5453537&#x2F;</a>
评论 #42781264 未加载
rescripting4 个月前
The &quot;Delete Account&quot; button does nothing. Very clever user retention technique.
评论 #42781498 未加载
评论 #42781272 未加载