Design documents contain application logic. Any document in a database that has an _id starting with "_design/" can be used as design document. Usually there is one design document for each application.
{
"_id": "_design/example",
"view": {
...