Skip to content

Installation

  • Node.js >= 18
  • Package manager: pnpm, npm, or yarn
Terminal window
pnpm add @kotodayori/stripe @kotodayori/hono stripe
Terminal window
pnpm add @kotodayori/stripe @kotodayori/express stripe
Terminal window
pnpm add @kotodayori/stripe @kotodayori/lambda stripe

Use the core router with any adapter:

Terminal window
pnpm add @kotodayori/core @kotodayori/hono
# or @kotodayori/express, @kotodayori/lambda

If you want runtime schema validation in addition to type safety:

Terminal window
pnpm add @kotodayori/stripe @kotodayori/zod @kotodayori/hono stripe zod

The fastest way to create a new project is with the scaffolding tool:

Terminal window
npx create-kotodayori

This will interactively guide you through creating a new Kotodayori project with your preferred framework and package manager.

You can also specify options directly:

Terminal window
# Create a new Hono-based webhook handler
npx create-kotodayori my-webhook-handler --fw=hono
# With custom package manager
npx create-kotodayori my-webhook-handler --fw=hono --pm=pnpm
  • Stripe adapter (@kotodayori/stripe): stripe >= 17.0.0
  • Hono adapter (@kotodayori/hono): hono >= 4.0.0
  • Express adapter (@kotodayori/express): express >= 4.0.0
  • Zod integration (@kotodayori/zod): zod ^4.0.0

Install the peer dependencies for the packages you use.