frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

I reverse-engineered a thermal pocket printer to print without the app

https://github.com/ChiaraCannolee/thermal-pocket-printer-basic
5•ChiaraCannolee•1h ago

Comments

ChiaraCannolee•1h ago
I recently picked up a small thermal pocket printer for printing labels, stickers, and lists. It's a rebranded DP-L1S; several brands sell variants of the same hardware under different names.

Fun little device, but the companion app ("Luck Jingle") demands location permissions, a forced internet connection, and a bunch of other stuff that has no business being on a printer that just needs to receive an image over Bluetooth from 30 cm away.

So I decompiled the APK with JADX, reverse-engineered the BLE protocol, and built something that lets you print directly from your browser or the command line. No app, no account, no cloud. Fully free to use and the entire project is open source.

Web app (no install, just open in Chrome/Edge/Opera): https://chiaracannolee.github.io/thermal-pocket-printer-basi... GitHub repo: https://github.com/ChiaraCannolee/thermal-pocket-printer-bas...

What it does - Print images, text, and test patterns - Live preview of what comes out of the printer - Three density levels - Floyd-Steinberg dithering for photos - Invert mode (swap black and white) - Label mode for sticker paper with gap detection - Battery indicator via BLE notifications Optional: Python CLI for automation and batch jobs (pip install bleak Pillow)

How it works (for the curious) The printer runs on the LuckPrinter SDK, which is used by 159+ printer models. The BLE protocol is an ESC/POS variant: you open service ff00, write to characteristic ff02, listen on ff01, send a few enable commands, then a GS v 0 raster image (1-bit, 384px wide, MSB-first), and feed/stop commands. Full command reference is in PROTOCOL.md. The web version uses 100-byte chunks with 50ms delays because of Web Bluetooth's MTU limits. The Python CLI uses 512-byte chunks with 10ms delays, which is significantly faster.

Coming soon I'm working on an expanded web version with: - Adjustable label sizes with presets (29×12mm, 40×12mm, 50×30mm, 40×30mm, 48mm round, and custom sizes) - Save and load templates locally in the browser - Drag text directly on the preview for free positioning - Undo/redo - A print preview screen with adjustable: -- Threshold -- Number of prints -- Density override -- Feed after print (extra paper feed in mm)

The basics in the web-app above work and are stable, so I'm already posting this version. I'll share the expanded version once it's ready.

Compatibility macOS and Linux. Windows is waiting on better Web Bluetooth support. Other printers in the LuckPrinter family (DP-/LuckP-/MiniPocketPrinter series) will probably also work, possibly with a different print width.

Based on the same approach as the fichero-printer reverse-engineered web-app, which does the same for the Fichero D11s (different device class, same SDK) https://github.com/0xMH/fichero-printer

Questions about the protocol, the reverse-engineering process, or adapting this for other LuckPrinter models: ask away :)

Infinite Image Grids Are Flat Toruses

https://seththompson.com/articles/infinite-image-grids
1•s3th•44s ago•0 comments

Individual knowledge wikis need a sharing system, here is an example

https://github.com/dpetryshchuk/atrium-init
1•dimapetryshchuk•45s ago•1 comments

Apple Plans to Let Users Build Their Own Passes in iOS 27 Wallet App

https://www.bloomberg.com/news/articles/2026-05-04/ios-27-features-apple-plans-to-let-users-build...
1•helsinkiandrew•3m ago•0 comments

Drawy, KDE's first infinite whiteboard app

https://prayag2.github.io/posts/meet-drawy/
2•p4bl0•3m ago•0 comments

A Dark-Money Campaign Is Paying Influencers to Frame Chinese AI as a Threat

https://www.wired.com/story/super-pac-backed-by-openai-and-palantir-is-paying-tiktok-influencers-...
4•thm•4m ago•0 comments

Retail Investors Keep Getting Burned in the Stock Market.They're Piling in Again

https://www.barrons.com/articles/retail-investors-stocks-railroads-wall-street-4df3b7b1
1•laxmena•6m ago•0 comments

Offenders sentenced up to 10 years for spying on TSMC

https://www.taipeitimes.com/News/front/archives/2026/04/28/2003856358
4•ironyman•7m ago•0 comments

Toyota built a $10B private utopia–what's going on in there?

https://arstechnica.com/cars/2026/05/inside-toyotas-10b-private-utopia-big-ideas-few-people-camer...
1•rbanffy•7m ago•0 comments

CNC Adhesive Applicator

https://blog.rahix.de/cnc-adhesive-applicator/
1•pillars•8m ago•0 comments

Software Is Not Sentient

https://karlbode.com/your-software-is-not-sentient/
1•cdrnsf•8m ago•1 comments

Cayman reinsurance growth raises oversight concerns

https://www.insurancebusinessmag.com/reinsurance/news/breaking-news/cayman-reinsurance-growth-rai...
1•petethomas•8m ago•0 comments

QueryShield – secure SQL proxy for AI agents (NL→SQL, AST safety, RLS)

https://queryshield.dev/
1•bch12•10m ago•0 comments

Never Trust What You See or Hear on the Internet (2022)

https://zaradar.substack.com/p/deepfakes-almost-ruined-my-life-never
1•anticensor•11m ago•0 comments

Claude-Find – Pull Deep Memory from Across Your Claude Code Sessions

https://github.com/Cavinooo/claude-find
1•cavino•11m ago•3 comments

Gabe Newell casually reminds us he's filthy rich in promo for new yacht company [video]

https://www.youtube.com/watch?v=CxY1OJk9sS8
1•HelloUsername•11m ago•0 comments

I built this because people upload sensitive documents to random AI tools

https://www.understanddocs.com
1•Nencheff•12m ago•0 comments

Audit Logs Wall of Shame

https://audit-logs.tax/
2•skeptrune•13m ago•0 comments

Voice Cloning on xAI

https://x.ai/news/grok-custom-voices
1•apwheele•13m ago•0 comments

37x Speedup in Lattice Boltzmann Cylinder Flow

https://github.com/alikamp/Parks-KPBM-Scaling
1•kauai1•14m ago•0 comments

Repair and restoration of a table clock with a verge escapement

https://artifex-babel.de/en/werkstatt/werkstatt_en.html
1•pillars•16m ago•0 comments

Darwinian Specialization in AI

https://tomtunguz.com/inference-market-segmentation/
1•gmays•18m ago•0 comments

Losing Skills

https://noahbogart.com/posts/2026-05-03-losing-skills/
1•speckx•18m ago•0 comments

AI slop video is being used as an attack ad in a contentious Kentucky primary

https://twitter.com/MassieforKY/status/2051347166505881864
1•jjordan•18m ago•1 comments

A new way to create a digital wardrobe from your Google Photos

https://blog.google/products-and-platforms/products/photos/google-photos-wardrobe-feature/
1•h43k3r•19m ago•0 comments

Aube, a fast NPM package manager which is faster than bun(made by jdx aka mise)

https://aube.en.dev/
2•Imustaskforhelp•20m ago•0 comments

Exploring LLM biases to manipulate AI search overview

https://arxiv.org/abs/2605.00012
1•Brajeshwar•22m ago•0 comments

Dating App Sued for Targeting Men in Her Dormitory with Her Tiktoks

https://cyberscoop.com/meete-dating-app-lawsuit-geofencing-tiktok-misappropriation/
4•lschueller•23m ago•0 comments

Code Agents are bad at Software Architecture – for now

https://blog.cohix.network/code-agents-are-bad-at-software-architecture-for-now/
1•cohix•23m ago•0 comments

HPC Intelligence Platform Market Diagnostic

https://www.notion.so/Sediman-Intelligence-HPC-Intelligence-Platform-Market-Diagnostic-356f76e07c...
1•JasonHEIN•25m ago•0 comments

A thermodynamic trust layer cutting LLM hallucinations by 52%

https://github.com/Dan23RR/snc-core
2•Dan23RR•25m ago•0 comments