MIT License

项目介绍

reliverse/relivator 是一个托管在 GitHub 上的开源项目,主要使用 TypeScript 编写,采用 MIT License 许可证,目前获得 1.6k 个 Star、278 次 Fork。

仓库全名
reliverse/relivator
开源许可证
MIT License
Star 数
1.6k
Fork 数
278
未关闭 Issue
2

README 摘要

🏬 relivator • next.js ecommerce starter demo — sponsor — discord — github — docs 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 + react 19.1 + ts 5.8 2. 🎨 ui: tailwind 4.1 + shadcn/ui 3. 🔒 auth: better-auth 4. 🎬 anims: animejs 5…

完整内容见 GitHub 原始 README 或本页 。

常见问题

relivator 用什么语言开发?

主要使用 TypeScript 编写,采用 MIT License 许可证,目前有 1.6k 个 Star。

relivator 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 relivator 的源码?

可以直接克隆仓库:git clone https://github.com/reliverse/relivator.git,默认分支为 main;安装与运行步骤见仓库 README。

relivator 最近还在维护吗?

仓库最近一次更新为 2025年10月4日,当前有 2 个未关闭 Issue;Star 数为 1.6k,可作为社区活跃度的参考。

README

🏬 relivator • next.js ecommerce starter

demo — sponsor — discord — github — docs

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 + react 19.1 + ts 5.8
  2. 🎨 ui: tailwind 4.1 + shadcn/ui
  3. 🔒 auth: better-auth
  4. 🎬 anims: animejs
  5. 📦 storage: uploadthing
  6. 📊 analytics: vercel
  7. 🧬 db: drizzle-orm (pg) + neon/(🤔🔜)supabase
  8. 🏗️ dx: eslint + biome + knip
  9. 📝 forms: react-form (🔜 w.i.p) + arktype
  10. 📅 tables: react-table
  11. 🌐 i18n: next-intl (🔜 w.i.p)
  12. 💌 email: resend (🔜 w.i.p)
  13. 💳 payments: polar
  14. 🔑 api: orpc (🔜 w.i.p)

these features define the main reliverse stack. for an alternative setup—featuring clerk, stripe, trpc, and more—check out versator.

quick start

  1. install git, node.js, bun.

  2. run:

    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:

    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.

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 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
  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:
    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 authentication and stripe payments. explore versator demo, repo, or docs.

stand with ukraine

stand with reliverse

every bit of support helps keep the dream alive: dev tools that don’t suck.

license

mit © 2025 nazar kornienko (blefnk), reliverse

评论

暂无评论