Crowdfunding has one simple promise: if the campaign reaches its goal by the deadline, the creator gets the money; if it does not, everyone gets their money back. Simple to say, but somebody has to hold the money in the meantime, and both sides have to trust that somebody.
A program can be that somebody. The rules are few and fully mechanical, which makes all-or-nothing crowdfunding a good exercise: a goal, a deadline, two outcomes, and a list of things nobody should be able to do. crowdfund is a SOL crowdfunding program in Anchor 1.2 built around exactly that.
The warning from the README first: not audited, devnet / localnet only. This is a learning project.…