Run a Hackster Arduino project in the browser
Give Mokxi the link to a Hackster project and the Hackster Arduino project code comes out of the page and into a running simulation.
Drop it here, or paste it
The tabs of its Code section, any code block in the story, the sketch files it attaches, and failing those the GitHub repository it points to. You read the write-up on hackster.io; the code runs here, on a simulated board.
Drop a Hackster file above, or paste its text, and it opens in the editor.
Paste from ChatGPT or ClaudeCopy a prompt, say what to build, paste the answer.
- 1Copy the promptIt teaches your AI how to write a Mokxi project.
- 2Say what to buildPaste the prompt into ChatGPT, Claude, Gemini or Cursor and add what you want, like "a night light with a light sensor".
- 3Paste its answer hereThe whole reply is fine. It opens wired and ready to run.
Only have a photo or a screenshot of the circuit? Give your AI the picture with this prompt instead.
Your AI app supports MCP? Add the Mokxi server and it builds the link for you. How
From Tinkercad? Three stepsBring a circuit across wired, with its code.
- 1Export the circuitIn Tinkercad, open the circuit, press Export and download the .brd file. It has every part and wire.
- 2Download the codeOpen Code, switch to Text and press the download button for the .ino.
- 3Drop both hereChoose or drop the .brd and the .ino together: it opens wired, with the code on the board. No .brd? Paste the Component List with the code under it.
What Mokxi reads from Hackster
hackster.io/<user>/<project-slug>, with or without www. and whatever follows the slug (?ref=feed, #code).
The same link with mokxi.com/ typed in front of it, which opens the editor with the project read.
Not hackster.io/projects, /contests, /channels, /news or another site section: a first segment from that list is a listing, not a person, and the link is turned down.
What comes across
The Code section, tab by tab
Hackster shows code in widgets, each with a title above a listing. Mokxi finds every code-widget pane in the page, takes its title and the text of its listing, and turns the set into sketch files: the first with setup() is the sketch, named for the project slug, and the rest are its tabs under their own titles (a pane called config.h stays config.h). An untitled pane is named code-N, .cpp if it has function bodies and .h if not.
Code blocks in the story
A <pre><code> block in the story is read as well, since some authors paste the sketch into the write-up rather than the Code section. One that is a second complete sketch is kept as a .txt tab so the project still builds; one that is a shell command or a pip install has no setup() or #include and is dropped.
Attachments on Hackster’s file host
Links to hacksterio.s3.amazonaws.com/uploads/attachments/ that end in .ino, .pde, .zip, .fzz, .txt, .cpp or .h are fetched, eight files and 8 MB at most for the page. A firmware .zip is opened like a dropped zip; a .txt is kept only when it is code, not a read-me.
The GitHub link, and the hardware rows
GitHub addresses are gathered from the Code section first (a story also links libraries, which are not the project), then from the rest of the page, six at most. The rows under "Hardware components" in the things table become the report line "The page lists: ...", up to thirty names, so you know what the author built with.
What does not, and what happens instead
Wiring diagrams and the 3D print files
A wiring diagram is a picture and a print file is a .stl or a zip of them: neither is a sketch, so neither becomes a circuit. The hardware rows are written into the report as text, and you place the parts the code did not already wire.
A story with only commands and pictures
If a page offers no code pane, nothing attached that is a sketch, and no repository link, Mokxi stops and asks you to copy the code out of the Code section into the box yourself. A page whose only attachment is a zip of 3D models gets that zip fetched, and the import is then refused because nothing in it is a project.
Projects for boards Mokxi does not have
Hackster hosts projects for many platforms. The code still comes down, and the board is guessed from its includes and pins; code written for a board outside the list of twenty, or for a non-Arduino toolchain, opens on the nearest board and may not compile. The compiler’s message says where.
Anything off the two hosts
Only www.hackster.io and hacksterio.s3.amazonaws.com are read. A code pane that embeds a file from elsewhere, or an attachment on another host, is skipped, and a redirect that leaves those hosts is refused rather than followed.
From Hackster to Mokxi
Step 1
On the project page, copy its URL as the browser shows it; a #code anchor at the end does no harm.
Step 2
Paste that URL in the box here. The line under it says it looks like a Hackster project, and the fetch starts.
Step 3
The sketch and its tabs open in the editor on the board the code suggests, with the parts the code mentions wired up. The report shows the hardware rows from the page and, when the code came from GitHub, which repository was opened.
Step 4
Press Run, then add whatever the hardware rows name that the code did not place, and save.
Questions about importing from Hackster
Does Mokxi read the whole Hackster page, or just the code?
Just what is needed to build the project: the Code section’s panes, code blocks in the story, sketch attachments, GitHub links and the hardware rows. The page is searched with patterns and never run as a web page, and the story text, comments and images stay on Hackster.
The code is attached as a zip. Does that work?
Yes, when the zip is on Hackster’s attachment host and holds a sketch or a PlatformIO project. It is fetched and opened as a dropped zip would be, folder structure and all, within the 8 MB page limit.
What if the Code section only has a link to GitHub?
Then Mokxi follows that link, opens the repository, folder or gist it names, and notes in the report that the page had no code of its own. GitHub links in the Code section are tried before any in the story.
Why did a project page open as a bare board with no parts?
The code came down but named no parts Mokxi could wire: perhaps it drives a shield or a module over SPI or a serial protocol, or uses a library Mokxi does not know. The report says what was seen and skipped; place the parts from the hardware list yourself.
Can I give Mokxi a Hackster member page or a contest?
No. A member page, a search or a contest has no project code on it, and the line under the box asks for the project’s own link instead, in the form hackster.io/<user>/<project>.
