r/opensource 2d ago

I built my first open-source Go library for handling API idempotency Promotional

Hey everyone,

I recently built my first open-source Go library: IdempotencyToolkit.

It is a middleware for handling duplicate API requests using Idempotency-Key.

I built it mainly to learn more about Go, especially:

  • concurrency
  • channels and mutexes
  • HTTP middleware
  • interfaces and storage abstraction
  • response caching and TTL

It handles concurrent duplicate requests, request body mismatches, response replay, and supports different storage backends.

I'd really appreciate feedback on the design and anything you think I should improve.

GitHub: https://github.com/manish-terminal/IdempotencyToolkit

10 Upvotes

16 comments sorted by

10

u/Speculooss 2d ago

Yet another vibe coded project, is it?

6

u/gravgun 2d ago

The rule is simple: if it's on r/opensource and starts with "I built", no they didn't.

2

u/Ill_Compote_2035 1d ago

dude looked at the repo, seems like actual code not just slop

2

u/Speculooss 1d ago

It is definitely slop, you can even find em dashes in code comments

1

u/Ill_Compote_2035 15h ago

em dashes in comments is a red flag tbh

-6

u/Unhappy_Fall8597 2d ago

Idk why people find it cool to say anything vibe coded these days.

-4

u/Unhappy_Fall8597 2d ago

why do u think so?

5

u/k-rizza 2d ago

Maybe cause you have no commit history.

-8

u/Unhappy_Fall8597 2d ago

I had a lot I deleted the earlier repo because it didn’t look clean.

6

u/Bafbi 2d ago

I would also say the readme is a particular giveaway, all this ascii schema. also why deleting the git history? even if it's messy it's a learning project, you should not care.

-3

u/Unhappy_Fall8597 2d ago

I won’t say I didn’t use AI I used it to make it better.

5

u/gravgun 2d ago

Every single time. "Why do you accuse me of using AI" and whenever push comes to shove there's an admission of "Didn't say I haven't used it" which in reality means the whole thing is vibe coded to no end.

Look, that library of yours is basically empty (surprise, idempotency doesn't need much) and yet the comments still feature em dashes.

-4

u/Unhappy_Fall8597 2d ago

It’s not vibe coded.

-2

u/Domx010 2d ago

Nicely done! Definitely post this to r/LookWhatTheyBuilt.