However, it is common to use open-source libraries when building the project. Some of these libraries are third-party, and some of them may have been written by me.
For simple and quick re-usable components, I tend to rewrite them for each project. For more complex debugging & development helper tools, I write and open-source them in my own time, and include in the project based on the open-source license. If the client is paying for my time, they are not included in billable hours, and if they are paying for results delivered, finding a library to do the job is a great way to achieve these results.