Skip to content

About

Browser-based pen plotter controller: convert PDF, SVG, image and Office documents into safe G-code for an Anycubic i3 Mega S or any OctoPrint printer.

Topics

Resources

Stars

7 stars

Watchers

0 watching

Forks

Repository files navigation

GCodeScribe – a handwritten G with a pen and blue vector paths

GCodeScribe

Your ideas. Your handwriting. Your pen plotter.
Create drawings, documents and custom stroke fonts, then bring them to paper with G-code.

Download the latest release Release build status Linux desktop USB or OctoPrint connection

Installation · Features · Print files & materials · Screenshot gallery · New in v0.6.4

Drawing editor with a custom stroke font, a rosette, waves and a geometric study
Draw and compose
Arrange objects, custom lettering and patterns on a precise drawing area.
Font editor with the Workshop demo font, an editable character and three variants
Develop your handwriting
Build characters from real pen strokes and refine their variants.
Botanical drawing split into black, green, blue and red pen layers
Prepare colour layers
Split a drawing across multiple pen colours.
STL importer showing the v2 printer mount as a 3D model and a technical line drawing
Turn 3D into line art
Orient an STL, choose its edges and inspect the plot preview.
Visual profile editor with paper corners, drawing bounds and saved special positions
Set up paper and pen
Keep paper corners, drawing bounds and pen positions in view.

All app screenshots use an isolated demo environment with neutral English content. Import the editable Workshop demo font to try it yourself. Explore more views in the screenshot gallery.

What you can do

  • Design pages: Arrange drawings, text and imported artwork. Projects group related pages and use their own calibration profile.
  • Edit handwriting: Create custom stroke fonts with multiple character variants, try them in the writing test, and import or export .gcsfont files.
  • Convert files: Import SVG, images, PDF, Office documents and native Xournal++ pen strokes. Larger imports run as background tasks.
  • Generate templates: Create games, mazes, Sudoku, patterns, maps and technical line drawings from STL files.
  • Prepare plots: Inspect tool paths in 3D, display paper and profile outlines, separate colour layers and export G-code.
  • Manage multiple printers: Switch between saved USB/serial and OctoPrint connections and test each connection separately.
  • Calibrate and control: Define paper using four corners or two diagonal corners, calibrate pen heights, and save insertion and parking positions.
  • Use optional AI tools: Generate and improve images using an OpenAI API key or a Codex/ChatGPT account. The selected provider's limits apply; the app does not automatically switch to API billing.
  • Connect through MCP: The running desktop app also provides a local, token-protected MCP endpoint with a persistent port.

Installation

Linux desktop

Download the appropriate package from the release page. Use the Flatpak for the standalone GTK/WebKit desktop app:

flatpak install --user ./GCodeScribe-v0.6.4.flatpak
flatpak run info.noweck.gcodescribe

The first launch opens the setup guide. The app can follow your system theme; the small button in the top-right corner switches between light and dark. Printer selection, language and Settings are directly accessible in the header.

Debian, RPM and AppImage

Releases also include packages for the web application. On Debian/Ubuntu:

sudo apt install ./gcodescribe_0.6.4_amd64.deb
gcodescribe-web

Then open http://localhost:8000. The Python application requires Python 3.12 or later. RPM and AppImage downloads are available on the same release page.

Docker Compose

cp .env.example .env
docker compose up --build

The web interface is available at http://localhost:8000 by default. Configure connections, optional AI features and the published port in .env. Set PLOTTER_HOST_PORT to use a different host port.

To use the prebuilt container image:

docker compose -f compose.yml -f compose.prod.yml up -d

From first launch to first plot

  1. Choose a profile and project. Set bed dimensions, paper size and drawing bounds to match your machine.
  2. Connect a printer. Configure USB/serial or OctoPrint and run the connection test.
  3. Calibrate paper and pen. Follow the guided steps for homing, paper corners, the insertion position and pen heights. Entering the paper view raises the pen.
  4. Design a page. Add an example file, template or drawing and arrange it within the drawing area.
  5. Preview and plot. Check tool paths, profile outlines and colour layers, then generate G-code or start plotting.

Switching printers invalidates the previously known position. Home the selected printer again and check its profile. Printer switching is locked during running or paused plots.

Build your pen holder

The included hardware is designed for the Anycubic i3 Mega S (Ai3MS). Software version v0.6.4 and hardware revision v2 are independent.

Printed magnetic pen holder fitted to the printer's toolhead
The pen holder on the toolhead. This existing assembly photo illustrates the mechanism; the v2 CAD files define the current design.
The current v2 print part in the STL editor
The current v2 model as a 3D view and projected line drawing.

Example: a plotted construction drawing

What you need

Material Quantity
Small magnets, 5 mm diameter 10
M3 threaded inserts 2
M3 screws 2
Filament for the three printed parts As required by your print profile
Medium-sized rubber band 1
Liquid superglue As needed

Tools: a matching hex key and, optionally, a small hammer for inserting the magnets. Check magnet thickness, insert dimensions and screw length against the v2 design and your actual components before assembly.

Download print parts and CAD

File Purpose
All three v2 STLs as a ZIP Download all print parts together
Printer mount · mount.stl Attachment to the machine
Pen holder · pen.stl Pen attachment
Plate · plate.stl Matching plate for the assembly
v2 STEP model Editing in other CAD systems
v2 Fusion design Native design file

See the model overview for dimensions, assembly steps and file descriptions. Earlier designs are archived under media/models/old/.

AI, MCP and notifications

AI access: Open Settings → AI Designer → Access to choose between an API key and Codex. The Flatpak includes the Codex CLI. Other installations require the official Codex CLI on the backend machine. Sign in using the displayed one-time code and official login link. Account credentials are stored separately in the app's private data directory.

MCP: Enable MCP under Settings → MCP, create a token and copy the displayed URL into your client. Keep the app running for desktop connections. Desktop MCP and connection test details.

Notifications: Enable notifications through Tools → Notify and run the test. Browsers require localhost or HTTPS and notification permission; the desktop app uses system notifications. Keep the application open; it can be minimised. The small task bell shows background work and results.

Development

make setup
make dev

Use make dev-plain for a non-interactive start. The frontend development server watches files using polling; run CHOKIDAR_USEPOLLING=false make dev to use native file watching.

uv run pytest
uv run ruff check .
npm --prefix frontend test
npm --prefix frontend run build

make deb, make rpm, make appimage and make packages build installation packages. See the release notes for the current changes.

About

Browser-based pen plotter controller: convert PDF, SVG, image and Office documents into safe G-code for an Anycubic i3 Mega S or any OctoPrint printer.

Topics

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages