Idea: Projective modules over commutative rings are like bundles on compact spaces.
Suppose M is a smooth manifold (not necessarily compact), and E is a smooth vector bundle over M. Then Γ(E), the space of smooth sections of E, is a module over (the commutative algebra of smooth real-valued functions on M). Swan's theorem states that this module is finitely generated and a projective module over . In other words, every vector bundle is a direct summand of some trivial bundle: for some . The theorem can be proved by constructing a bundle epimorphism from a trivial bundle . This can be done by, for instance, exhibiting sections with the property that for each point , span the fiber over .
When is connected, the converse is also true: every finitely generated projective module over arises in this way from some smooth vector bundle on . By the way, remember that a vector bundle is the same as a locally free sheaf, so this justifies the idea that projective modules are locally free O-modules, which is tipically misundestood as "projective modules are stalkwise free modules (see locally free module)".