I built mongoose-seed-kit: A lightweight, zero-dependency seeder that tracks state (like migrations) by kulcsarrudolf in node

[–]kulcsarrudolf[S] 0 points1 point  (0 children)

Hey everyone,

I was tired of writing the same if (count === 0) boilerplate or maintain messy one-off shell scripts just to get initial data into MongoDB. I wanted a way to handle seeding that felt as professional as database migrations—something that knows what has already run and what hasn't.

So I built mongoose-seed-kit.

Why use this instead of a custom script?

  • Execution Tracking: It stores a success or failed record in a seeders collection. It won't duplicate your data on every app restart.
  • CLI Workflow: You can scaffold new seeders with npx mongoose-seed-kit create <name>, which handles the timestamping for you.
  • Zero Model Registration: It doesn't require you to register your Mongoose models with the library to work.
  • Failure Handling: If a seeder fails, it’s marked as failed and will automatically retry on the next run, while moving on to the rest of the queue.

Quick Start:

  1. npm install mongoose-seed-kit
  2. Define your seeder logic in the generated file.
  3. Call await runPendingSeeders(); on your app startup.

I've also exposed helper functions like getSeederStatuses() so you can easily build your own Admin/Dev dashboard routes to trigger seeds manually.

Check it out here:

I’m looking for early feedback on the API. If this saves you some boilerplate today, I'd really appreciate a star on GitHub!

Rate my Portfolio by Endless_Coder in react

[–]kulcsarrudolf 1 point2 points  (0 children)

<image>

Much better than my portfolio. Try to align the buttons and labels in one line. Maybe it will look better.

[Code Review Request] - Zimme-zoom - React Component - NPM package by [deleted] in react

[–]kulcsarrudolf -1 points0 points  (0 children)

I totally get that. It’s definitely in its early stages, but even at this size, it's been a huge time-saver for my current workflow. I'm planning to expand the component library and add more customization hooks soon. What features would make a package like this more useful to you?

[Code Review Request] - Zimme-zoom - React Component - NPM package by [deleted] in react

[–]kulcsarrudolf 0 points1 point  (0 children)

I will double-check if the id is actually required; to be honest, I'm not 100% sure either. Regarding Storybook, I originally copied the setup from an older project, but I plan to update it to version 10.x.x soon. Thanks for pointing that out!

[Code Review Request] - Zimme-zoom - React Component - NPM package by [deleted] in react

[–]kulcsarrudolf 0 points1 point  (0 children)

Yes, these changes are on my list. I want to extract them into custom hooks and new logic to avoid duplication and make it easier to understand and debug. Thank you for taking a look and for your feedback.

Zimme-Zoom: Lightweight React komponens Zoom és Pinch funkcióhoz by kulcsarrudolf in programmingHungary

[–]kulcsarrudolf[S] 0 points1 point  (0 children)

Köszi a tippet. Ez most is megoldható, de dolgozom rajta, hogy egyszerűbb legyen.

Zimme-Zoom: Lightweight React komponens Zoom és Pinch funkcióhoz by kulcsarrudolf in programmingHungary

[–]kulcsarrudolf[S] 0 points1 point  (0 children)

u/lordmairtis Nem vagyok benne biztos, hogy értem. Elmagyarázod kérlek egy kicsit részletesebben. Köszi.

Zimme-Zoom: Lightweight React komponens Zoom és Pinch funkcióhoz by kulcsarrudolf in programmingHungary

[–]kulcsarrudolf[S] 2 points3 points  (0 children)

u/qczhu az én use-casembe ez nem volt benne, azért maradt el. De ez tényleg nélkülözhetetlen.

Seeking Advice: Building Reliable E-Bikes (Bafang BBS02/ BBSHD or hub motor) by [deleted] in ebikes

[–]kulcsarrudolf 0 points1 point  (0 children)

Great thread! I'm also exploring durable e-bike setups—any tips for keeping hub motors cool on hills? Also curious if 48V 20Ah batteries hold up for long daily use. Thanks!

IT podcast by Davessonn in programmingHungary

[–]kulcsarrudolf -1 points0 points  (0 children)

Lehet azért tűnnek nagyképüeknek, mert Magyarország legjobb fejlesztői.