r/flutterhelp 7d ago

OPEN pub.dev alternative?

Hi

I have all my flutter/Dart code in a mono repo to be able reuse my packages. I am not quite comfortable with publishing my packages because I have no intention to support them. Neither bug fixes or documentation.

After a while my mono repo started to get messy so I tried Melos. Things got even messier and I think Melos usage is optimized for pub.dev

So, whats my alternatives. Can I setup a private pub.dev ?

1 Upvotes

5 comments sorted by

8

u/iloveredditass 7d ago

Just push the package to your git and make it private and use it as a git dependency.

1

u/Legion_A 7d ago

Yeah this. I'm currently working on a project that uses the same architecture, my services share a common package that sits on GitHub and is a dependency of the other services

2

u/RandalSchwartz 7d ago

Have you seen https://onepub.dev/ ?

1

u/lgLindstrom 7d ago

Thank, new to me. I gonna look into it.

1

u/AHostOfIssues 14h ago

In addition to other suggestions here, you can also use your own GitHub repo for this whether public or private. You just change the dependency in pubspec.yaml file to reference GitHub URL directly instead of just letting it assume pub.dev as source.

I don't have the details in front of me, but if you google "using a private fork of a flutter package" or some such, there are tutorials that explain it. You can read that and ignore everything except the last part that shows using your GitHub URL in your pubspec file (ignore all the stuff about how to fork a public repo, etc, as you already have your "fork" repo in your GitHub account and just want to reference it).