Have friends who are editors or staff writers at major (topical) publications? Wrangle a mention.
Satisfied with very gradual growth? Seed your friend, family, colleague networks; get people who already trust you using it. Make it awesome enough for each person who uses it to want to actively recommend it to other people.
Otherwise? Unless it’s a huge, perfect match for the zeitgeist and you’ve got enough of a social media following to give it an immediate boost for a chance at virality (think openclaw having its moment, further assisted by the moltbook novelty factor), you’d better have a heck of an advertising and PR budget.
But also, if this is an open source library, why does it matter so much to you to have people use it?