Skip to content

About

🖨️ Desktop app and Rust library for Star Micronics receipt printers. Print task cards, note slips, QR codes and pictures over Ethernet.

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Starprint logo

starprint

A desktop app and Rust library for Star Micronics receipt printers.

Download the latest release View CI checks

Starprint desktop app with a high-priority task card and its print preview
Task card

Get started

Download the latest release for Windows, macOS on Apple silicon or Linux. Windows has an installer and a portable executable, Linux a .deb for Ubuntu 22.04 or newer. The builds are unsigned; the release page has installation instructions.

Connect your printer over Ethernet, then open Profile actions beside the profile picker and choose New profile… to enter its IP address. Choose a job, check the preview and press Print.

Tested on the TSP700II, TSP800II and SP700. Other thermal printers using Star Line Mode may work. StarPRNT, USB and serial connections are not supported.

Print jobs

The desktop app and HTTP API support task cards, text, note slips, QR codes, pictures and test pages. The app previews each job before you print.

Starprint window with a dotted note slip preview
Note slip
Starprint window with a dithered preview of Hokusai's The Great Wave
Picture

Picture artwork: Hokusai, The Great Wave, public domain.

starprint-printing-demo.mp4

Task card and picture printing

Automate printing

Turn Linear issues into printed task cards. Connect with a personal API key, then enable auto-print for issues newly assigned to you while the app runs.

Press Schedule on a job tab to choose a preset or cron expression. Manage schedules with the clock button in the header. They run on the server's clock while it runs: this computer's while the app is open, or another machine's if the app prints through it. Task-card due dates follow the chosen rule. Pictures cannot be scheduled.

The app runs the HTTP API while it is open, so scripts and AI agents can print through your saved profiles. The API button shows the URL and the token every request needs, and can put the server on your LAN at an address and port you choose. It can also point the app at another machine's Starprint server by URL and token, so a laptop prints through a box that is always on: profiles, schedules and previews are then that server's, and the laptop's own schedules wait until you switch back. With the server on the LAN, the button also shows a QR code: scan it with a phone to print or fax a task card or a picture from there.

An agent needs nothing installed. The server speaks MCP at /mcp, and the API button's copy menu beside that address gives the config to paste into your agent's MCP settings, token included, with a form for Claude Desktop. The agent then has tools to list your printers, print and preview jobs, keep schedules and send faxes. See the API reference for every route, field and tool, including running the server on its own.

Fax

Send any job to someone else's receipt printer by their number, like *star1en2su3z68yscvky0n3j3l2qwny4dkq7s. Open the phone button in the header, activate your line and add a relay by its address; it tells you its name, like LONRELAY01. Then press Fax beside Print, paste a number or pick someone from your fax book, and send. To give someone your number, press the QR button beside it and print the card. The phone page keeps the same fax book, and shows your number as a QR code to scan off its screen.

Every fax sent to you prints on your fax printer while the app runs. Its header gives the time, the sender's number and, if they are in your fax book, the name you gave them. The fax book also lists recent numbers, so you can add one afterwards. Faxes are sealed end to end with post-quantum keys, so the relay cannot read them.

A relay is a small public server anyone can run: cargo run --release -p starprint-relay -- --name LONRELAY01, behind a TLS proxy. See its README.

Rust library

Build print jobs in your own code and send them over Ethernet.

[dependencies]
starprint = { git = "https://github.com/bcsongor/starprint-rs" }

For a Star Line Mode thermal printer:

use starprint::{Cut, transport::TcpTransport};

fn main() -> Result<(), starprint::Error> {
	let document = starprint::starline()
		.line("Hello, paper.")
		.cut(Cut::FeedThenPartial)
		.build();

	TcpTransport::connect("192.168.1.60")?.print(&document)
}

Use your printer's IP address. Add features = ["image"] for photos. See the library reference and examples.

Build the app from source

Install Rust, Bun and the Tauri prerequisites, then run these commands from the repository root:

bun run gui-setup
bun run gui

gui is the development build. To leave the app running, use bun run app, which builds it for release and starts it. Build an installer with bun --cwd apps/starprint-gui tauri build. See CONTRIBUTING.md for development and printer reports.

Licence

MIT or Apache-2.0, at your option.

Starprint is an independent project, not affiliated with or endorsed by Star Micronics. Star Micronics and its printer names are Star's marks, used here to identify compatible hardware. The Star manuals the code implements are Star's copyright and are not included.

About

🖨️ Desktop app and Rust library for Star Micronics receipt printers. Print task cards, note slips, QR codes and pictures over Ethernet.

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages