Where can I find the source code?

I’m looking for source code for scripts and other config files, tools, etc. to build image files.
If it’s not currently published anywhere, please give me that tarball.