# AscendKit
> Authentication, email templates, surveys, and user journeys for your app — configured from the CLI or AI agents, not hardcoded.
The JavaScript SDK is `@ascendkit/nextjs`. Python backends use the `ascendkit` package.
## Quickstart (Next.js)
```bash
npm install @ascendkit/nextjs
```
```ts
// lib/auth.ts
import { createAscendKitAuthRuntime } from "@ascendkit/nextjs/server";
export const authRuntime = createAscendKitAuthRuntime();
```
```ts
// app/api/auth/[...all]/route.ts
import { authRuntime } from "@/lib/auth";
import { createAuthRouteHandlers } from "@ascendkit/nextjs/server";
export const { GET, POST } = createAuthRouteHandlers(authRuntime);
```
```tsx
// app/layout.tsx
import { AscendKitProvider } from "@ascendkit/nextjs";
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
{children}
);
}
```
```tsx
// app/login/page.tsx
import { Login } from "@ascendkit/nextjs";
export default function LoginPage() {
return window.location.href = "/dashboard"} />;
}
```
```tsx
// app/signup/page.tsx
import { SignUp } from "@ascendkit/nextjs";
export default function SignUpPage() {
return window.location.href = "/dashboard"} />;
}
```
## Docs
- [Getting Started](https://ascendkit.dev/docs): Account setup, CLI init, starter content overview
- [Installation](https://ascendkit.dev/docs/install): CLI and SDK install, environment variables
- [Next.js Integration](https://ascendkit.dev/docs/integration): Auth runtime, provider, components, hooks, access tokens, theming, analytics
- [Auth Integration](https://ascendkit.dev/docs/auth-integration): Architecture overview, SDK vs raw API guidance
- [Python SDK](https://ascendkit.dev/docs/python): Token verification, webhooks for FastAPI/Flask/Django
- [Analytics](https://ascendkit.dev/docs/analytics): Client and server-side event tracking
- [CLI Reference](https://ascendkit.dev/docs/cli): Setup, projects, environments, auth, email, templates, surveys, journeys, webhooks, campaigns, user import
## Optional
- [Full docs as single file](https://ascendkit.dev/docs/llms-full.txt): All documentation concatenated (large)