# 10.5. Design Documents

In CouchDB, design documents provide the main interface for building a CouchDB application. The design document defines the views used to extract information from CouchDB through one or more views. Design documents are created within your CouchDB instance in the same way as you create database documents, but the content and definition of the documents is different. Design Documents are named using an ID defined with the design document URL path, and this URL can then be used to access the database contents.

Views and lists operate together to provide automated (and formatted) output from your database.

- 10.5.1. `/db/_design/design-doc`
- 10.5.2. `/db/_design/design-doc/attachment`
- 10.5.3. `/db/_design/design-doc/_info`
  - 10.5.3.1. View Index Information
- 10.5.4. `/db/_design/design-doc/_view/view-name`
  - 10.5.4.1. View Options
  - 10.5.4.2. Querying Views and Indexes
  - 10.5.4.3. Sorting Returned Rows
    - 10.5.4.3.1. Sorting order and startkey/endkey
    - 10.5.4.3.2. Raw collation
  - 10.5.4.4. Using Limits and Skipping Rows
  - 10.5.4.5. Sending multiple queries to a view
- 10.5.5. `/db/_design/design-doc/_show/show-name`
- 10.5.6. `/db/_design/design-doc/_show/show-name/doc-id`
- 10.5.7. `/db/_design/design-doc/_list/list-name/view-name`
- 10.5.8. `/db/_design/design-doc/_list/list-name/other-ddoc/view-name`
- 10.5.9. `/db/_design/design-doc/_update/update-name`
- 10.5.10. `/db/_design/design-doc/_update/update-name/doc-id`
- 10.5.11. `/db/_design/design-doc/_rewrite/path`
  - 10.5.11.1. Rewrite section a is stringified function
  - 10.5.11.2. Rewrite section is an array