AI prompts
base on π¬ relivator: next.js 15 react 19 ecommerce template β² better-auth polar shadcn/ui tailwind drizzle orm typescript ts radix, postgres neon, app router saas commerce ecommerce shop pricing payments dark mode full stack free β more stars π more features # π¬ relivator β’ next.js ecommerce starter
[demo](https://relivator.com) β [sponsor](https://github.com/sponsors/blefnk) β [discord](https://discord.gg/Pb8uKbwpsJ) β [github](https://github.com/blefnk/relivator) β [docs](https://deepwiki.com/blefnk/relivator-nextjs-template)
> **relivator** is a robust ecommerce template built with next.js and other modern technologies. it's designed for developers who want a fast, modern, and scalable foundation without reinventing the backend.
## stack
1. π§± **core**: [nextjs 15.3](https://nextjs.org) + [react 19.1](https://react.dev) + [ts 5.8](https://typescriptlang.org)
2. π¨ **ui**: [tailwind 4.1](https://tailwindcss.com) + [shadcn/ui](https://ui.shadcn.com)
3. π **auth**: [better-auth](https://better-auth.com)
4. π¬ **anims**: [animejs](https://animejs.com)
5. π¦ **storage**: [uploadthing](https://uploadthing.com)
6. π **analytics**: [vercel](https://vercel.com/docs/analytics)
7. 𧬠**db**: [drizzle-orm](https://orm.drizzle.team) ([pg](https://neon.tech/postgresql/tutorial)) + [neon](https://neon.tech)/(π€π)[supabase](https://supabase.com)
8. ποΈ **dx**: [eslint](https://eslint.org) + [biome](https://biomejs.dev) + [knip](https://knip.dev)
9. π **forms**: [react-form](https://tanstack.com/form) _(π w.i.p)_ + [arktype](https://arktype.io)
10. π
**tables**: [react-table](https://tanstack.com/table)
11. π **i18n**: [next-intl](https://next-intl.dev) _(π w.i.p)_
12. π **email**: [resend](https://resend.com) _(π w.i.p)_
13. π³ **payments**: [polar](https://polar.sh)
14. π **api**: [orpc](https://orpc.unnoq.com) _(π w.i.p)_
> these features define the main reliverse stack. for an alternative setupβfeaturing clerk, stripe, trpc, and moreβcheck out [versator](https://github.com/blefnk/versator).
## quick start
1. install [git](https://git-scm.com), [node.js](https://nodejs.org), [bun](https://bun.sh).
2. run:
```bash
git clone https://github.com/blefnk/relivator.git
cd relivator
bun install
copy .env.example .env
```
3. fill in the required environment variables in the `.env` file.
4. optionally, edit the `src/app.ts` file to make the app yours.
5. run:
```bash
bun db:push # populate db with schema
bun dev # start development server
bun run build # build production version
```
6. edit something in the code manually or ask ai to help you.
7. done. seriously. you're building now.
<!--
2. run:
```bash
bun i -g @reliverse/cli
reliverse cli
```
3. select **"create a new project"**.
4. follow prompts to configure your store.
-->
### commands
| command | description |
|-----------------|--------------------------------|
| `bun dev` | start local development |
| `bun build` | create a production build |
| `bun latest` | install latest deps |
| `bun ui` | add shadcn components |
| `bun db:push` | apply db schema changes |
| `bun db:auth` | update auth-related tables |
| `bun db:studio` | open visual db editor |
## polar integration
relivator now integrates with [polar](https://polar.sh) for payment processing and subscription management.
### features
- checkout flow for subscription purchases
- customer portal for managing subscriptions
- webhook handling for subscription events
- automatic customer creation on signup
- integration with better-auth for seamless authentication
### setup instructions
1. create an account on [polar](https://polar.sh)
2. create an organization and get an organization access token
3. configure your environment variables in `.env`:
```
POLAR_ACCESS_TOKEN="your_access_token"
POLAR_WEBHOOK_SECRET="your_webhook_secret"
POLAR_ENVIRONMENT="production" # or "sandbox" for testing
```
4. create products in the polar dashboard
5. update the product IDs in `src/lib/auth.ts` to match your polar products:
```typescript
checkout: {
enabled: true,
products: [
{
productId: "your-product-id", // Replace with actual product ID from Polar Dashboard
slug: "pro" // Custom slug for easy reference in Checkout URL
}
]
}
```
6. run `bun db:push` to create the necessary database tables
7. start the application with `bun dev`
### verification
to verify that the integration is working:
1. sign up for an account
2. navigate to the dashboard billing page (`/dashboard/billing`)
3. try subscribing to a plan
4. check that your subscription appears in the billing dashboard
5. test the customer portal by clicking "manage subscription"
### api routes
the following api routes are available for payment processing:
- `/api/payments/customer-state` - get the current customer state
- `/api/payments/subscriptions` - get user subscriptions
## notes
- relivator 1.4.0+ is ai-ready β optimized for ai-powered ides like cursor, making onboarding effortless even for beginners.
- version 1.3.0 evolved into versator, featuring [clerk](https://clerk.com) authentication and [stripe](https://stripe.com) payments. explore [versator demo](https://versator.relivator.com/en), [repo](https://github.com/blefnk/versator), or [docs](https://docs.reliverse.org/versator).
## stand with ukraine
- π help fund drones, medkits, and victory.
- π every dollar helps stop [russia's war crimes](https://war.ukraine.ua/russia-war-crimes) and saves lives.
- βΌοΈ please, [donate now](https://u24.gov.ua), it matters.
## stand with reliverse
- β [star the repo](https://github.com/blefnk/relivator) to help the reliverse community grow.
- π follow this project's author, [nazar kornienko](https://github.com/blefnk) and his [reliverse](https://github.com/reliverse) ecosystem, to get updates about new projects faster.
- π¦ [become a sponsor](https://github.com/sponsors/blefnk) and power the next wave of tools that _just feel right_.
> every bit of support helps keep the dream alive: dev tools that don't suck.
## license
mit Β© 2025 [nazar kornienko (blefnk)](https://github.com/blefnk), [reliverse](https://github.com/reliverse)
", Assign "at most 3 tags" to the expected json: {"id":"8559","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"