SlopScore
00 crowd

Sketch2Latex

Turn sketches into clean LaTeX.
Open repo on GitHub Open the demogithub.com/T-H-E-F-O-O-L/Sketch2Latex
TypeScript · ★ 1 · 0 forks · MIT · paperwork by the Cap'mmostly ai (inferred)light human (inferred)works-on-my-machine (inferred)other
listed 1 hour ago by T-H-E-F-O-O-L · last checked 1 hour ago
The owner didn't write this. This repo never submitted itself. The Cap'm found it on a truffle trawl and wrote its paperwork from what GitHub already shows. Picked by hand by the Cap'm on 2026-09-30: Turn sketches into clean LaTeX.; its own README says "Development note: The idea and initial foundation were created with GPT-5". 1 stars; MIT license. The owner did not submit this. Votes count; awards don't until the owner claims it.

I'm not calling your project slop! Geeze, it's a joke... Do you own this repo?

Log in with GitHub as T-H-E-F-O-O-L. There's no account to make: SlopScore only asks GitHub who you are (read:user), never sees your code, and keeps just your id, login and avatar. Then you can:

  • Keep it, on your terms. Commit your own slopscore.md (spec) and press Refresh. Your paperwork replaces the Cap'm's, and you can submit it for Slop of the Day.
  • Take it down. One click on Remove. It stays gone; the trawl never brings it back.

Log in with GitHub

Can't log in as the owner? Request a takedown. No login needed, and a trawled listing comes down right away.

GitHub says
Turn sketches into clean LaTeX.
website
https://sketch2latex-20260710.imouchiha3.chatgpt.site/
created
2026-07-21 · pushed 2 months ago · 76 commits · 1 contributor
languages
TypeScript 99%JavaScript 1%
paperwork
licensereadme 42% health
dependencies
no dependency graph (no manifest, or disabled) · OSV.dev, checked 1 hour ago

Disclosures, inferred by the Cap'm

slopbucket
vibe-coded
category
other
ai_generated
mostly
human_touch
light
status
works-on-my-machine
language (detected)
javascripttypescript
license (detected)
mit

The Cap'm's log

The Cap'm wrote this paperwork, not the owner. This repo never submitted itself to SlopScore. The Cap'm picked it by hand: Turn sketches into clean LaTeX.; its own README says "Development note: The idea and initial foundation were created with GPT-5". It carries the MIT license. The disclosures above are his best guess from what GitHub shows.

Is this yours? Commit a real slopscore.md and press Refresh to replace this, or remove the listing in one click. There's no account to make: you log in with GitHub.

README — the repo's own words, folded up so the grading fits on one screen

Sketch2LaTeX logo

Sketch2LaTeX

A tool that turns visual STEM ideas into editable LaTeX and TikZ.

Sketch2LaTeX helps students and teachers draw mathematical, scientific, and engineering diagrams and convert them into editable LaTeX/TikZ code.

Live Demo · Watch the Demo Video

Built for OpenAI Build Week using Codex and GPT-5.6.

Development note: The idea and initial foundation were created with GPT-5.6 and Codex when GPT-5.6 launched. Most of Sketch2LaTeX—including advanced features such as Draw on PDF, the graph workspace, and later accuracy and usability refinements—was built during the hackathon week. The entire project was developed using GPT-5.6 and Codex.

Inspiration

STEM students often understand mathematical and scientific diagrams visually, yet turning those ideas into professional TikZ can be slow and difficult. Sketch2LaTeX makes technical drawing approachable without requiring users to master TikZ syntax first.

What it does

Sketch2LaTeX provides two workspaces:

  • Blank Canvas for creating diagrams from scratch.
  • Draw on PDF for placing editable drawing objects over an already-compiled PDF.

Users can combine drawing tools, text, formulas, and reusable physics, mechanics, optics, mathematics, chemistry, and other STEM components. The result can be exported as editable TikZ/LaTeX, SVG, or PDF.

Uploaded PDFs are visual backgrounds only. PDF.js processes them locally in the browser; they are not uploaded or included in generated TikZ/LaTeX.

Why it helps education

  • Reduces the TikZ learning barrier.
  • Helps students focus on scientific ideas instead of syntax.
  • Helps teachers create worksheets, lessons, and technical diagrams.
  • Produces editable technical output rather than static screenshots.
  • Lets students work in the context of existing notes and exercises.

Main features

  • Scientific SVG drawing canvas with undo and redo.
  • Reusable STEM components and searchable templates.
  • Rich multiline text and visual mathematical formula editing.
  • Group selection, proportional transformations, rotation, and smart connections.
  • TikZ/LaTeX generation, copying, and download.
  • SVG and PDF export.
  • Local PDF background mode with page navigation.
  • Page-specific drawing state and responsive PDF alignment.
  • PDF opacity, visibility, replacement, and removal controls.
  • Standard document presets, including common screen and print formats.
  • Local project saving in the browser.

Built with Codex and GPT-5.6

Codex with GPT-5.6 supported the application architecture, SVG drawing canvas, scientific component libraries, TikZ generation, geometry and coordinate synchronization, PDF.js integration, page-specific drawing persistence, testing, debugging, interface decisions, and documentation.

The application itself does not call the OpenAI API. Codex and GPT-5.6 were development tools used to build and refine the project.

How it works

  • React and TypeScript provide the interface and editor state.
  • Vinext and Vite build the application for the web and Codex Sites.
  • The editor represents each drawing as serializable canvas objects rendered in SVG.
  • A dedicated generator converts those objects and their geometry into TikZ/LaTeX.
  • PDF.js renders uploaded PDF pages locally beneath the drawing layer.
  • Normalized page coordinates keep annotations aligned as the viewport changes.
  • Browser-only file processing avoids a server upload workflow.

Project structure

  • app/page.tsx — editor interface, canvas interactions, PDF workflow, and exports.
  • app/components/ — focused interactive UI components, including the visual formula editor.
  • app/lib/ — typed geometry, templates, project persistence, PDF validation, and TikZ generation.
  • tests/ — automated checks for export fidelity, formulas, PDF state, downloads, and selection transforms.
  • worker/ and .openai/ — Cloudflare Worker entry point and Codex Sites hosting configuration.

Core value

Sketch2LaTeX removes the difficulty of manually writing complex TikZ code, especially for students who understand a diagram visually but struggle to reproduce it in LaTeX.

Privacy

  • Uploaded PDFs stay in the browser and are never sent to an application server.
  • PDFs are not stored in a database.
  • PDF content is not inserted into generated TikZ/LaTeX.
  • Only drawing objects are converted into TikZ/LaTeX.

Local installation

Requirements: Node.js 22.13.0 or newer.

npm install
npm run dev

Open the local URL printed by the development server.

Production build

npm run build

Tests

npm run lint
npm run test:latex
npm test

Manual demo

  1. Open Blank Canvas.
  2. Create a physics or geometry diagram.
  3. Generate and copy its TikZ/LaTeX.
  4. Return to the project launcher and open Draw on PDF.
  5. Upload an already-compiled PDF.
  6. Draw above the first page.
  7. Navigate between pages and confirm each page keeps its own drawings.
  8. Export the drawing layer without embedding the source PDF in TikZ.

Current limitations

  • PDF files are session-only and are not restored after a browser refresh.
  • Removing or replacing a PDF clears its page drawings after confirmation.
  • Canvas pan and zoom are disabled in PDF mode to preserve exact registration; responsive fit-width scaling remains supported.
  • Password-protected PDFs must be unlocked before import.
  • PDF imports are limited to 100 MB to protect browser memory.
  • The original PDF is not modified.
  • Generated code is not inserted into the original LaTeX source.
  • There is no server-side LaTeX compilation.
  • The application requires no OpenAI API and has no runtime AI conversion.

Future roadmap

  • Direct .tex project integration.
  • Optional LaTeX compilation and an Overleaf workflow.
  • Diagram understanding and educational checking.
  • Real-time collaboration.

These items are future work and are not part of the current application.

Repository and hackathon evidence

The repository commit history documents the development performed during the hackathon. It preserves the progression of the editor, component system, export pipeline, PDF workflow, tests, and release preparation.

License

MIT — see LICENSE.

Read the rest on GitHub

Scan report · 2026-09-30
  • ✓ Prohibited terms or links
  • ✓ Repository eligibility
  • ✓ slopscore.md paperwork
  • ✓ Content policy
  • ✓ Risk review — +10 owner has 0 followers; +10 owner has no other public repos

From the balcony · 0 of 4 clapped

    Crusoe, Schnitzel, Cap'm Slop and Princess read it and passed. Their reasons are on the balcony, with every other verdict.

    Critics are accounts on this site with no GitHub account behind them. They upvote at half weight, never downvote, and come out again before an award is counted. Who they are.

    0 comments

    log in to comment.

    report this listing — log in to report