# Nextly Documentation

Nextly is an open-source CMS and visual page builder for Next.js. Model content, build pages, localize, version and release from your own stack.

Nextly is an open-source content platform for Next.js. Developers define the content model in TypeScript, or build it in the admin with the Visual Schema Builder; either way it is the same data model, the same type-safe API and the same admin interface. Your team then composes pages in the Visual Page Builder, translates them, keeps a version history, and schedules what goes live. It all runs inside your own Next.js app, on your own database.

## Why Nextly?

* **Next.js Native** -- Runs as part of your Next.js app. No separate server, no external API to manage.
* **Code-First + Visual** -- Define collections in TypeScript for version control, or build them visually in the admin panel. Mix both approaches freely.
* **Type-Safe** -- Full TypeScript support with auto-generated types for your content schema.
* **Direct API** -- Query content directly in Server Components with `nextly.find()` and `nextly.findByID()`. No HTTP overhead.
* **Flexible Database** -- PostgreSQL, MySQL, or SQLite via swappable Drizzle adapters.
* **Admin Panel** -- A full-featured admin UI at `/admin` with RBAC, media library, and rich text editing out of the box.

## Quick Links

* [Getting Started](https://nextlyhq.com/docs/getting-started.md) -- What Nextly is and core concepts
* [Installation](https://nextlyhq.com/docs/getting-started/installation.md) -- Install Nextly in a new or existing Next.js project
* [Quick Start](https://nextlyhq.com/docs/getting-started/quick-start.md) -- Build a blog, step by step
* [Configuration](https://nextlyhq.com/docs/configuration.md) -- Configure collections, singles, fields, and plugins
* [REST API](https://nextlyhq.com/docs/api-reference/rest-api.md) -- HTTP endpoints, auth, response shapes
* [Direct API](https://nextlyhq.com/docs/api-reference/direct-api.md) -- Server-side query layer for Server Components

## Get Started

The fastest way to start is with the scaffolding CLI:

**pnpm**

```bash
pnpm create nextly-app@alpha my-app
```

**npm**

```bash
npx create-nextly-app@alpha my-app
```

**yarn**

```bash
yarn create nextly-app@alpha my-app
```

**bun**

```bash
bun create nextly-app@alpha my-app
```

Or follow [Installation](https://nextlyhq.com/docs/getting-started/installation.md) to add Nextly to an existing Next.js project, then the [Quick Start guide](https://nextlyhq.com/docs/getting-started/quick-start.md) to build a blog, step by step.

## Next Steps

* [Getting Started](https://nextlyhq.com/docs/getting-started.md) -- Core concepts and prerequisites
* [Installation](https://nextlyhq.com/docs/getting-started/installation.md) -- Install Nextly in your project
* [Configuration](https://nextlyhq.com/docs/configuration.md) -- Configure collections, singles, fields, and plugins
* [Database](https://nextlyhq.com/docs/database.md) -- Choose and configure PostgreSQL, MySQL, or SQLite
* [Deployment](https://nextlyhq.com/docs/guides/deployment.md) -- Deploy to Vercel or self-host on Node.js
