* it's own project because maintaining it will take up so much of your time.
* be decoupled from the web framework because users will want to use another because your own doesn't have abc feature.
From observing the ecosystems in .NET, Java and PHP, lots of people have lots of opinions on how ORMs should work.