r/ForgeYourProject • • 15h ago

I’ve been building Break for Five (BF5), a free browser gaming platform, alongside my full-time job in IT.

2 Upvotes

Hey everyone! I was recommended this community by IncomeOk7237 after sharing my project in r/buildinpublic.

The idea is to give people a little escape from their daily routine through Chess, Sudoku, word games, quizzes and interactive mystery adventures.

This week, I’ve been working on:

  • A festive Christmas edition of the website.

  • Improving gameplay and marketing analytics.

  • Introducing Byte & Patch, two original animated characters representing the brand.

  • Finding ways to attract our first genuine audience.

My biggest challenge right now isn’t development, it’s getting people to discover the platform and encouraging them to return.

I’d really appreciate some honest feedback on the website, games and overall user experience. Would this be something you’d personally come back to?

https://breakforfive.com/?src=reddit&utm_campaign=forgeyourproject

Happy to check out other people’s projects and share feedback too!


r/ForgeYourProject • • 17h ago

I built an open-source offline Python tool to clean messy Excel files and generate PDF/HTML reports

2 Upvotes

I kept running into messy Excel exports (shifted headers, merged cells, weird date formats, broken totals) and couldn't upload sensitive files to random web tools, so I built an offline Python app to clean them up and generate reports locally.

Repo: https://github.com/onur18/Excel-Master-Pro

Sample HTML report output: https://onur18.github.io/Excel-Master-Pro/demo.html

Main things it does:

- Detects shifted or multi-row headers without losing the first data row

- Checks for 13 common issues (bad emails/phones, negative prices/stock, duplicates, outliers, and math mismatches like Qty * Price != Total)

- Previews changes before applying them and logs edits in a local SQLite DB so you can undo anything

- Merges multiple Excel/CSV files even if the column names don't match

- Exports a PDF report, a standalone interactive HTML dashboard, and a cleaned .xlsx file

Since it's meant to handle untrusted spreadsheets locally, I avoided eval() completely and wrote an allow-listed ast.parse evaluator for custom formulas, locked down DuckDB external access, and added magic-byte + zip-bomb checks on upload.

Built with Python, Streamlit, Pandas, DuckDB, and Plotly. Let me know if you spot any edge cases or have ideas for the next version.


r/ForgeYourProject • • 18h ago

nimbo: A Jupyter-style notebook for JavaScript and TypeScript: server code and browser code in one document, calling each other. Local, with a CLI, an MCP server and a debugger.

Thumbnail
github.com
2 Upvotes

The problem: trying an idea in JS means juggling a script, a REPL, a throwaway app and a database client. Python people have Jupyter; I wanted that for JS, with the browser included.

What nimbo does:

  • 🧩 One notebook with server cells (Node) and client cells (browser) that call each other

  • 🔎 Explore and query any output with JSONPath, jq or SQL

  • 🌐 Turn a cell into an API endpoint

  • 🐞 Built-in debugger

  • 🤖 Works with coding agents through a CLI and an MCP server, with edits you review

  • ⚡ One-line install, runs entirely on your machine

Where it is: version 0.1, open source (Apache-2.0), macOS and Linux.


r/ForgeYourProject • • 15h ago

WIP My V web app template now runs with one docker command, since the server itself only works on Linux

1 Upvotes

Small update on full-stack-viltrum-template, the little teaching app for my V web framework viltrum (inspired by FastAPI's full-stack template, not a port).

Viltrum's engine is epoll, so actually serving the app needs Linux. Kind of annoying if you're on Windows or macOS and just want to click around. So now it's one line:

docker run --rm -p 8080:8080 ghcr.io/tuntii/full-stack-viltrum-template

open localhost:8080, log in with [email protected] / changethis.

It's a two stage Dockerfile. V 0.5.2 + Viltrum 2.0.3 build the app and run the tests, then a slim Debian image runs it as nobody. CI builds the image and smoke tests the container.

Other thing from the same day: V master removed the old json module ("use json2 instead"), so the template stopped building on master. Switched request body decoding to x.json2 and tests pass on both 0.5.2 and master. The landing and dashboard are also the same ones running on v.rustapi.cloud now, plus a /blog/.

Repo: https://github.com/Tuntii/full-stack-viltrum-template

Question for anyone shipping a dev tool that only runs on one OS: did a docker image actually get people to try it, or do they bounce anyway?


r/ForgeYourProject • • 1d ago

I kept running out of AI tokens, so I built an open-source tool that uses fewer tokens without silently throwing away context

3 Upvotes

I use AI coding agents for almost all my side projects and I kept running into usage limits.

At some point, I started to look at what my tokens were actually being used for. A surprising amount was just passing tests, repetitive logs, huge JSON responses and terminal output that the agent didn't actually need.

I tried some existing tools that address this problem. Although it helped reduce token consumption, I wasn't very satisfied with their reliability in my own testing.

My biggest concern was that: what happens when the information being removed is the exact information the agent needs?

So I started building Pithio.

It's an open-source tool that runs locally and compresses the output that AI agents read. The difference I wanted was that the agent should know when something has been omitted and be able to retrieve the original details when needed.

While benchmarking , I noticed something interesting. In some workloads, reducing the amount of context actually improved answer accuracy.

Here are some of my initial results using Claude Haiku:

**Developer tool outputs (171 questions):**

- 29% fewer input tokens

- Accuracy went from 86.5% to 91.8%

**System logs (54 questions):**

- 60% fewer input tokens

- Accuracy went from 57.4% to 74.1%

These are initial benchmark results, not a claim that compression always improves accuracy. I've made the methodology publicly available in my website so others can check it out.

Pithio supports terminal output, logs, JSON, CSV, web pages and MCP tools, with integration options for Claude Code, Codex and custom agents.

I first built it for myself as a simple terminal application, but decided to open-source it since I believe other developers might be facing this same problem.

GitHub: https://github.com/allenjoseph05/pithio

Website: https://pithio.dev/

I'm still in the early stages and would really appreciate technical feedback especially from people who have used similar tools.

What would make you trust a context compression tool enough to use it in your daily coding workflow?

And if you've encountered such cases where existing tools removed important information, I'd love to hear about them and use those cases to improve Pithio. I know the application might not be perfect and there is always a room for improvement, hence I don't want to make any guaranteed claim and would really appreciate feedbacks and improve it. Thank you in advance.


r/ForgeYourProject • • 1d ago

Launch I built Fleck, an open-source, local-first Markdown workspace in the macOS menu bar (v1.13.0)

3 Upvotes

I built Fleck, a native, local-first, open-source Markdown workspace that lives in the macOS menu bar, and just put out 1.13.0—its first official release.

It started as a personal tool for school to-dos, catching passing feature ideas, and coordinating AI agents on a closed-source project where it was easy to lose track of what they were doing. You can pull it up from the menu bar to jot something down, dismiss it, or pin a note beside your work—like a checklist—without switching apps.

1.13.0 ships with an expansive MCP system built around privacy-first permissions so you can customize exactly what your agents see, along with MCP event subscriptions so they stay in sync as your notes change.

One thing I held back: a big part of Fleck is using local models to dictate, clean up, and auto-file spoken thoughts into notes. I have the foundations and a solid prototype working, but I’m keeping them out of this release while I improve accuracy and speed without using so much Mac memory. Dictation is still in 1.13.0 via the toolbar mic using Apple’s on-device speech recognition.

Attached are a few renders of the app. I put a lot of work into the main UIs, though some smaller ones might still look a bit sloppy or potentially buggy (hopefully none) since I’m a solo dev.

Website: https://tryfleck.app

Download (v1.13.0): https://github.com/elevatesoft/Fleck/releases/tag/v1.13.0


r/ForgeYourProject • • 1d ago

Feedback Explain your project in one sentence and I'll tell you what's unclear

1 Upvotes

Most READMEs and landing pages I see (mine included) take three paragraphs before I get what the thing actually does.

So drop one sentence about what you're building. No link needed, but add one if you want.

I'll reply with what I think it does and what confused me. Feel free to do the same for other people in the thread, that's the useful part.

I'll go first: viltrum is a web framework for V that tries to be fast without making you think about it.


r/ForgeYourProject • • 1d ago

New: Project of the Week + a small guide

1 Upvotes

Quick update. Starting this week I'll pick one project posted here every week and feature it as Project of the Week. It gets pinned here and I'll share it on my X and LinkedIn too.

Nothing to apply for. Just post your stuff and talk to people.

Also put together a short guide for posts and one new soft rule: if you share yours, try to leave a real comment on someone else's. Guide is here: /r/ForgeYourProject/wiki/index

What would you want from this sub that it doesn't do yet?


r/ForgeYourProject • • 2d ago

WIP viltrum v1.18.7: c.json returned 500 on V master because of a type alias with the same name as its struct

2 Upvotes

Someone opened an issue on viltrum (my V web framework): c.json() returned 500 internal error while c.text() on the same app worked fine. Really good repro too, it even broke on the repo's own examples/rest.

Turns out they were on a V master build, not the 0.5.2 release. On master, V copies the receiver when you call a generic method through an alias that has the same short name as its struct (vlang/v#32402). viltrum.Ctx was an alias of http1.Ctx. json is generic, text isn't. So c.json wrote the response into a temp copy, the real context never got answered, and the engine sent its default 500.

Fix in v1.18.7: the struct is now http1.Context and Ctx stays as an alias, so nobody's handler code changes. I also added a test that goes through app.handle_raw with c.json, because that path had zero coverage, and the V master CI job stopped skipping the example tests.

Rule I added to the README: don't alias a struct under its own name.

Anyone else building on a language that moves fast? Do you test against the nightly/master compiler or just pin the release and hope?

https://github.com/Tuntii/viltrum


r/ForgeYourProject • • 3d ago

Five days of posting videos got my daily trivia game zero players. Ten minutes on a directory form tripled it today

2 Upvotes

Checkhook is a daily trivia game for MMA fans. Seven questions, 30 seconds each, and every question has loads of right answers ("name a UFC middleweight champion"). The fewer people who gave your answer, the more it scores. Free, no sign-up, runs in the browser.

https://www.playcheckhook.com/?s=rd-p2-1202

It launched last Saturday. For the first four days the daily card sat at 11 to 14 games started a day, whatever I did. I made a short video every day for TikTok, YouTube, X and Facebook. Roughly 1,300 views, zero players.

This morning I spent about ten minutes filling in submit forms on a few "daily games like Wordle" directories. One of them listed it the same day. So far today: 40 games started on the daily card, 24 of them from that one listing, and 22 of those 24 played all seven rounds.

What I should have worked out sooner: I was trying to turn MMA fans into people who play a daily game. The directory sent people who already play one every day and just needed a new one. Much shorter trip.

The thing I haven't cracked: 81 finished games today across everything on the site, and not one share. Tonight I changed "Share score" to "Challenge a friend". If you have a share button people actually press, I'd love to know what it says.

How it's made: solo side project, built with a lot of help from an AI coding assistant. The answer lists come from Wikipedia's UFC records.

You don't need to know MMA to tell me whether the first screen makes sense. That's the feedback I'm after most.


r/ForgeYourProject • • 3d ago

Launch I built one self-hosted app to replace the five tools freelancers juggle for each client

Thumbnail
github.com
2 Upvotes

I'm a freelance developer in France. Every client goes through the same loop: first contact, brief, quote, signature, project, time, invoice, payment. I was doing it with a CRM, a quote tool, a project tracker, a timesheet and an invoicing app, each with its own subscription and its own copy of the client.

So I built Nolvi for myself first, then cleaned it up and open-sourced it because other freelancers pay for the same stack. One app for the whole loop:

- CRM with a deal pipeline and CSV import

- proposals with a pricing grid, a public link and e-signature (signing marks the deal as won)

- a signed proposal becomes a project with a frozen budget

- time tracking with a timer, weekly timesheet and approval

- invoices from the budget, from billable time or free lines, with deposits and credit notes

- a client portal where the client sees proposals, payments and project status

The hard part was French e-invoicing. From September 2027 small businesses in France have to issue e-invoices, so invoices come out as Factur-X (a PDF/A-3 with an EN 16931 XML inside). Every invoice has to pass the XSD and the EN 16931 schematron before the file is created, and in CI I also run veraPDF on a set of test invoices. That caught more bugs than I'd like to admit.

What it isn't yet: it's a solo project, there's no mobile app, and sending invoices through the official French platforms is tested but not yet run with live accounts.

It's open source (AGPL-3.0) and runs with Docker Compose. There's a demo linked in the README.

https://github.com/nolvihq/nolvi

I'd love feedback from anyone running a small agency: what would stop you from switching?


r/ForgeYourProject • • 3d ago

Discussion What's the dumbest bug you lost way too much time on this week?

1 Upvotes

Doesn't have to be impressive, the dumber the better. Typo in a config key, wrong env var, a cache that wasn't actually cleared, whatever.

Drop the bug, how long it took you to find it, and what you're building. Link the project if you want, that's what this sub is for.


r/ForgeYourProject • • 4d ago

Discussion What are you cutting from your v1 just to get it out the door?

2 Upvotes

I always end up adding "just one more thing" before I ship anything, and it's how stuff sits half done for months. Trying to be stricter about it now.

So what's on your cut list for v1? A feature, a platform, the settings page, dark mode, whatever.

Bonus points if you already shipped without it and nobody even noticed. And drop a link to the project if you want, I'll take a look.


r/ForgeYourProject • • 4d ago

Launch I built an open-source terminal roguelike where RAM is your health

2 Upvotes

r/ForgeYourProject • • 5d ago

WIP kilim update: undo/redo in text fields, and a keystroke in a 750 KB text area went from 7 ms to 0.12 ms

1 Upvotes

Small update on kilim, the retained-mode GUI library I'm writing for the iyi language (a Crystal fork). Two things landed on main this morning. They're not in a tagged release yet, v0.3.0 is still the latest.

Undo and redo

Text fields and the text area now have Ctrl/Cmd+Z to undo, and Ctrl+Y or Ctrl/Cmd+Shift+Z to redo.

I didn't want to copy the whole text on every step, because that gets ugly fast with long notes. So each change is stored as a diff: where it happened, what was removed, what was added, and the caret and selection from before.

Grouping was the part I thought about most:

  • typing merges into one step per word

  • a run of Backspace or Delete is one step

  • moving the caret ends the group

  • typing over a selection is one step, and undo brings the selection back

  • setting the text from code clears the history

  • it keeps at most 200 steps

Rewrapping only what changed

Before this, every keystroke in a TextArea joined, split and hashed the whole text and rewrapped all of it. Fine for a short note, not fine for a big one.

Now TextEdit keeps a version counter and remembers the last edit as {from, old length, new length}. The text area rewraps only the paragraphs around that range and shifts the lines after it. A full rewrap still happens when you set the text, resize, or anything else.

On 10,000 paragraphs (~750 KB), a keystroke went from about 7 ms to 0.12 ms in the release core benchmark.

Repo: https://github.com/Tuntii/kilim

Question for anyone who's built a text widget or editor: how do you decide undo grouping? Word at a time felt natural to me, but I've seen editors that group by time instead (pause for a bit and a new step starts). Which one feels right when you're actually typing?


r/ForgeYourProject • • 5d ago

Discussion What are you building this week? (week of Nov 30)

3 Upvotes

Happy Monday! What did you ship or work on this week, or what are you starting?

Half-finished stuff and early ideas are totally welcome here.

And if you have a minute, drop a comment on someone else's project too, it makes a big difference.


r/ForgeYourProject • • 6d ago

WIP Kaboom update: my V game engine has an editor now, and it's just another client of the same protocol the agent uses

1 Upvotes

Last week I posted Kaboom here, the small game engine I'm writing in V with no SDL or GLFW, driven by JSON lines over stdin. Since then I've been on milestone 4, which is an editor. Repo: https://github.com/Tuntii/Kaboom

The rule I set for it: the editor gets no back door. vcore editor [scene] is just another client of the protocol. Every change it makes to the world goes through the same command path an agent uses on stdin, only tagged with a different source (editor vs agent). That one decision ended up shaping most of the other work.

What landed:

  • A UI library in V, drawn by the engine's own GL renderer in a single instanced draw call (SDF corners and borders, glyphs, clipping). Two pass auto layout, Inter and JetBrains Mono through stb_truetype, plus a small GPOS kerning reader. Steady state is 0 heap allocations per frame, and tests check that.

  • Undo/redo lives in the engine, not the editor. Inverse commands get captured into fixed size rings when the command queue flushes, so the tick path still doesn't allocate.

  • A .vscene text format that writes deterministically (shortest round trip f32) and saves atomically. Load validates everything in a separate arena first and only then builds the world.

  • Recordings now start with a full binary snapshot of the world, so you can record from any state, not just a fresh one. I threw random bit flips and truncations at snapshot restore and it doesn't panic or accept a broken state.

  • The editor itself: scene view with pan/zoom and a move gizmo (one drag = one undo step, Esc cancels), a hierarchy that's a virtual list (about 0.1 ms per frame at 100k entities), an inspector built from the component schema, save/open with an unsaved changes strip.

The fun part was the agent and the editor touching the same world at the same time. If I'm halfway through a drag and the agent changes something, its change survives, and Esc only rolls back my edits. If the agent loads or resets the scene, the editor drops the selection and the drag and just adopts the new file.

Question for anyone who has built editors: when a human and a script or agent are both editing the same scene, how do you handle undo? Right now each side gets its own undo groups, and I'm not sure that's what people actually expect when they hit Ctrl+Z.


r/ForgeYourProject • • 7d ago

WIP viltrum v1.18.6: my V web framework scored 0 req/s on HttpArena's million TLS connections test, and the garbage collector was why

3 Upvotes

HttpArena has a test called connections-1m-tls: open a million TLS 1.3 connections, then send requests over them. My last run scored 0 req/s. In 900 seconds of warmup only 42 to 79% of the connections came up, the server sat at 118% CPU, and the ones that did connect got no answers in the window.

The cause was Boehm GC, the way V builds it. Pooled connections are all live, so the heap only ever grows, about 2.6 KB per TLS connection. Boehm grows the heap 8 MiB at a time, and when it's full it marks the whole heap before each step. So roughly every 3,000 new connections, every worker stopped for a mark that got longer as the heap grew (230 ms at 245K connections on 4 cores). Around 250K it just aborted with "Too many retries in GC_allocobj".

The fix in v1.18.6 is small: past the worker's pool peak, every 1024th new connection checks the heap, and when it's three quarters full, grows it by half with GC_expand_hp. Collections become logarithmic in the connection count. It's a cold path, never per request.

Reproduced on a 4-core GitHub runner with gcannon:

  • collections to ~250K TLS connections: 87 before (150 to 230 ms each), 8 after

  • before: aborted at ~250-275K. after: up through 430K with no abort (that run was cut by the 600 s warmup on shared cores, not by the server)

  • 500K target window at 125K req/s: 0 requests before, 104.7K req/s after

The day before, v1.18.5 cut memory for idle TLS connections. Every connection kept its own buffer for the TLS 1.3 server flight (cert chain plus about a KB more) for its whole life, even though it's only needed until it's sent, usually in one send. Now it's built in a buffer owned by the worker and only copied if a client's socket is full. With 100K idle TLS connections, RSS per connection went from 5760 to 3630 bytes, about 37% less.

Honest caveat: I develop on Windows, so the Linux tests for the GC fix ran in CI, not on my machine.

Repo: https://github.com/Tuntii/viltrum

Question for anyone who has pushed a GC'd runtime to hundreds of thousands of long-lived connections: did you end up pre-sizing the heap, moving connection state off the GC heap entirely, or something else? I can't tell yet if growing ahead is a patch or the real answer.


r/ForgeYourProject • • 8d ago

Launch vbot: I gave Claude its own Linux desktop, with an MCP server written in V

2 Upvotes

I've been building vbot: a persistent Linux desktop (Ubuntu + XFCE, Chrome, a terminal) in a container, with a small MCP server written in V. Claude Code, Cursor or any MCP client connects to it and uses the machine the way a person would.

It has three tools:

  • bash_exec for shell work

  • computer for screenshots, clicks, typing and scrolling on a fixed 1280x800 screen. It can also return the active window's accessibility tree, so clicks can target elements instead of guessing pixels

  • browser, which drives Chrome over CDP and returns a pruned accessibility tree

The part I care about most is that it keeps its state. Files, logins and open apps survive between sessions, and the desktop and the agent share one Chrome profile, so if I sign in to a site once, the agent can use that account too. I can open the same desktop in my browser at any time, watch what it's doing and take over. When it hits a captcha it's supposed to stop and hand over to me instead of fighting it.

The agent is one V binary built only on the standard library. The bearer token check is part of the binary, and it strips secrets from the environment before starting any child process.

To check it actually works I wrote an eval suite that runs real tasks through Claude Code with only the vbot tools available. Editing an xlsx, entering a formula in the LibreOffice Calc UI, creating a customer in Odoo through the UI, turning an Odoo quotation into an order, and stopping at a captcha all came out 5/5. Odoo turned out to be too well built to be a real test, so I made a deliberately bad ERP for it called Zahmet: look-alike customers, swapped dialog buttons, masked date fields, a non-US number format.

Still in progress: a web panel for multiple users, and a bridge that connects the panel's chat to a local Claude Code.

Repo (MIT): https://github.com/Tuntii/vbot

What task would you throw at an agent with its own computer to see where it breaks? I'm looking for more nasty eval ideas.


r/ForgeYourProject • • 9d ago

Launch Judge My UI: I got tired of review skills that score every page against one taste

1 Upvotes

I just listed a skill on Agensi called Judge My UI. You point it at a URL, localhost, or an HTML file, and it opens the page in a real browser (Playwright, you can watch it), runs axe-core against WCAG 2.0, 2.1 and 2.2 A/AA, then writes a verdict with evidence for every finding.

The part I actually cared about: a lot of design-review skills have a house style, so a brutalist page gets marked down for being harsh, or a dashboard gets marked down for density. This one first works out what the page is trying to be (6 page types, 11 design languages), then judges it on those terms. Fixes are written in the page's own language too, so a brutalist page gets a harsh black focus ring, not a soft grey one.

It also tries to catch things axe does not: it tabs through the page and compares each element with and without focus, looks for keyboard traps and focus on hidden elements, tests reflow at 320px, and flags animations that ignore reduced motion. You get desktop, mobile and 320px screenshots, plus one annotated screenshot with numbered boxes on the axe findings. After you fix things, you can ask "Did my fixes work?" and get a before and after table.

Honest limits, because I do not want to oversell this:

  • It only judges the page as it loads, so menus, modals, form errors and logged-in screens are not reached yet

  • The listing itself says automated checks find about a third of WCAG issues. The verdict lists what it could not check, including screen reader experience, captions and 200% zoom

  • I have only tested it on Windows with Chrome so far

  • It suggests fixes, it does not edit your code

It is $4.99, one-time, on Agensi. You connect an agent (Claude Code, Cursor, Codex, and others) through their MCP, and the agent asks before buying. Agensi also has a 30-day money-back guarantee if the skill does not do what the page promises.

Link: https://www.agensi.io/skills/judge-my-ui-ux-review-accessibility-audit

If you try it, I would really like to know whether the design-language branches feel fair, and what it misses on a page you already know well.


r/ForgeYourProject • • 10d ago

WIP viltrum v1.18.4: my HTTP/2 path went from ~21.5k to ~4.2k instructions per request by not doing the same work twice

3 Upvotes

Quick update on viltrum, my web framework for V.

On HttpArena's h2 baseline I was third, and the leader (valk) was doing 15.1M rps on noticeably less CPU than my 14.2M. With h2load pushing 100 streams per connection, CPU per request is basically the whole game, so I put one worker under callgrind.

21,477 instructions per request over h2c. HTTP/1.1 on the same route is about 5,100. Over a third of it was the HPACK encoder scanning the static table and then the dynamic table byte by byte, for a response that was the same every time.

So in 1.18.3 and 1.18.4:

  • Response header blocks get replayed. The HPACK tables keep a generation counter. If the last encode didn't touch the table and the head text is the same, I write the same bytes again. Same coder state plus same input means identical bytes on the wire. Date changes once a second, so a busy route re-encodes once a second.

  • Request header blocks get replayed per connection too. Same bytes under the same table generation skip decode, Huffman, validation and rebuilding the HTTP/1.1 head. If the table changed in between, it decodes again, because the same bytes can point at different entries by then.

  • The remembered head is now parsed once per connection and copied after that. Parse errors are never kept, so a repeated bad request gets refused every time.

  • Plus boring stuff: frame headers appended in one go instead of a byte at a time.

callgrind numbers: 21,477 to 6,352 to 4,161 instructions per request. It costs a bit over 1 KB more per HTTP/2 connection, and still nothing is allocated per request.

Side quest that didn't ship: I wrote a Brotli encoder for the compressed JSON test, since the client accepts br and smaller bodies score better. Bodies came out about 12% smaller, but it was 2.2x slower than my gzip, and compression is around 70% of that request, so it lost. It lives on a branch now. gzip got about 17% faster instead by comparing matches 8 bytes at a time.

Repo: https://github.com/Tuntii/viltrum

Question for anyone who has written HPACK or similar codecs: have you seen per-connection memoization like this bite you in production? I think the generation check covers it, but I'd like to hear where it breaks.


r/ForgeYourProject • • 11d ago

WIP loser v0.1.1: fixing a jumping caret meant adding a caret API to my GUI library first

1 Upvotes

Small update on loser, the desktop tracker I use for my own side projects (every task is a plain Markdown file, and the UI is built on kilim, my GUI library for the iyi language).

The bug: if a task file changed on disk while I had it open, say Claude edited it over MCP, loser merges the outside change into the editor. The merge itself worked, but setting the new text reset the caret to the start. So I'd be mid-sentence in the notes, a merge lands, and my next keystrokes end up at the top.

The fix in loser is tiny: read the caret, set the merged text, put the caret back. The catch was that kilim's Textbox and TextArea had no way to read or set the caret from code. So kilim v0.3.0 got caret, caret=, select_all and selected_text, plus a few other text editing bits: double-click selects a word, Ctrl/Option+arrows move by word, and labels can wrap to their width.

select_all fixed a second small annoyance too: Ctrl+F now selects the old search query, so typing replaces it instead of adding to it.

The selftest now checks that the caret stays where it was after a merge, so this one hopefully doesn't come back.

One thing I haven't decided: keeping the same index is wrong when the outside change inserts text before the caret, because then I land a few characters off. Is it worth mapping the caret through a diff, or is "same index" good enough for a notes field? How do other editors you've used handle this?

loser: https://github.com/Tuntii/loser

kilim: https://github.com/Tuntii/kilim


r/ForgeYourProject • • 12d ago

WIP Kaboom: a small game engine in V with no SDL or GLFW, driven by JSON lines over stdin

2 Upvotes

I started a new side project: Kaboom (internally V-Core), a 2D game engine written in V.

The idea is a bit odd. There's no editor. You run vcore headless and it reads one JSON request per line on stdin and writes one JSON response per line back. Spawn an entity, set a component field, step the sim, ask for a state hash, record and replay. schema.commands lists every method with its params, so an agent (or any script) can figure out how to drive it without reading the code. Errors try to tell you what to fix, like Sprite.r must be in [0, 1]. There's also vcore run, which opens a window and can take screenshots of what it's drawing.

Some rules I set for myself:

  • V with -gc none. Memory comes from arenas, pools and a double buffered per-frame arena, all reserved up front. There are tests that check the live heap doesn't grow per request.

  • No SDL, GLFW, raylib or sokol. Right now it's a raw Win32 window, a GL 3.3 core context, my own GL function loader and an instanced quad renderer. Even the PNG writer for screenshots has no dependencies. The only vendored thing is cJSON.

  • Entities are 64 bit generational handles, components are stored as struct of arrays.

First bench numbers, 100k entities, median of 200 samples:

  • motion tick: 0.29 ms

  • render prepare + draw for 100k quads: about 2.2 ms per frame

  • full state hash: 4.2 ms

The target is 100k entities at a fixed 120 Hz, so there's room. But it's Windows only for now and there's no scripting yet. A register based script VM is in my design notes, not built.

Repo: https://github.com/Tuntii/Kaboom (no README yet, and the commit messages and notes are in Turkish, sorry)

Question for anyone who has built engines or dev tools: if you were letting an agent drive a game over a text protocol, what would you want to be able to ask the engine that's missing from that list?


r/ForgeYourProject • • 12d ago

Discussion What are you building this week? (week of Nov 23)

1 Upvotes

New week, new commits. What did you ship or poke at last week, and what are you trying to get done this one?

Half-finished and rough stuff is totally welcome here.

And if you drop your project, take a minute to comment on someone else's too.


r/ForgeYourProject • • 13d ago

WIP make-sfx update: it can now play real sampled instruments from SFZ files, not just synthesized sounds

1 Upvotes

Ten days ago I posted make-sfx here, the thing I'm building where you describe a sound effect and get a loudness-mastered WAV back (TS library + MCP server). Until now everything it made was synthesized.

Today I added the sampler work, so a project can now use an "sfz" instrument and render real recorded samples.

What went in:

  • an SFZ reader (with caps on includes, regions and diagnostics, so a weird file can't blow up a render) and FLAC reading

  • velocity layers and crossfades, round robin, release and legato triggers, per-region loops, choke groups, keyswitches, sustain pedal

  • the CLI, core and MCP server only load the samples a render actually needs, and the engine frees its memory after big renders

Two bugs I fixed a couple of hours after the first release:

  • if several layers of one note shared the same group/off_by, the later layer cut off the earlier one. Now all chokes run first, then all voices start.

  • a region with no loop_mode ignored the loop points stored in the WAV file. SFZ's default there is loop_continuous, so now it loops like it should.

Not done yet: the MSVC build, fuzzing the SFZ parser with ASan/libFuzzer, comparing output against sfizz, and an actual listening test with free libraries like VSCO 2 CE and VCSL.

You can try it here: https://makesfx.tuntii.com

If you've worked with SFZ: which opcodes do people actually rely on, and which ones are safe to skip? And are there other free SFZ libraries you'd test against?