# createFactory

**Kind:** Function

**Source:** [`src/helper/factory/index.ts`](https://github.com/honojs/hono/blob/main/src/helper/factory/index.ts#L363)

**Part of:** [Helper](subsystem-src-helper)

## Signature

```ts
function createFactory(init: { initApp?: InitApp<E> defaultAppOptions?: HonoOptions<E> }): Factory<E, P>
```

## Parameters

| Name | Type |
|---|---|
| `init` | `{ initApp?: InitApp<E> defaultAppOptions?: HonoOptions<E> }` |

**Returns:** `Factory<E, P>`
