# Suno Music Generator
[English](./README.md) | [简体中文](./README_CN.md)
This is an unofficial music generation website developed based on NextJS for [suno.ai](https://www.suno.ai). It can generate the desired song within approximately one minute based on the prompt entered by the user.
The project utilizes JavaScript reverse engineering to analyze the API used by suno.ai to generate songs. Payments are processed through Lemon Squeezy. Additionally, the project incorporates token renewal and maintenance functionality to eliminate the need for concerns about token expiration.
## Live Demo
[https://sunomusic.fun](https://sunomusic.fun)
## Quick Start
1. obtain the cookie of your app.suno.ai account
Locate the request that contains the keyword "client?_clerk_js_version". Navigate to the Cookie section, hover your mouse over it, and copy the value of the Cookie.
2. down project
3. install dependencies
```shell
cd suno-music-generator
pnpm install
```
4. init database
create your database use [local postgres](https://wiki.postgresql.org/wiki/Homebrew) or [vercel-postgres](https://vercel.com/docs/storage/vercel-postgres)
create tables from sql at `data/install.sql`
5. set environmental values
put `.env.local` under `suno-music-generator` root dir with values list below
```
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=""
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/
SUNO_COOKIE=""
LEMON_SQUEEZY_HOST=https://api.lemonsqueezy.com/v1
LEMON_SQUEEZY_API_KEY=
LEMON_SQUEEZY_STORE_ID=
LEMON_SQUEEZY_PRODUCT_ID=
LEMON_SQUEEZY_MEMBERSHIP_MONTHLY_VARIANT_ID=
LEMON_SQUEEZY_MEMBERSHIP_SINGLE_TIME_VARIANT_ID=
LEMONS_SQUEEZY_SIGNATURE_SECRET=
POSTGRES_URL=
```
SUNO_COOKIE is the cookie value you obtained in the first step
6. local development
```shell
pnpm dev
```
open `http://localhost:3000` for preview
## Other Things
没有合适的资源?快使用搜索试试~ 我知道了~
基于 suno.ai 实现的文字快速创作音乐网站
共65个文件
ts:28个
tsx:20个
json:4个
需积分: 5 1 下载量 112 浏览量
2024-04-07
22:15:39
上传
评论
收藏 188KB ZIP 举报
温馨提示
基于 suno.ai 实现的文字快速创作音乐网站 nstall dependencies cd suno-music-generator pnpm install init database create your database use local postgres or vercel-postgres create tables from sql at data/install.sql set environmental values put .env.local under suno-music-generator root dir with values list below NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY="" NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/ NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/
资源推荐
资源详情
资源评论
收起资源包目录
suno-music-generator-code.zip (65个子文件)
suno-music-generator-code
.DS_Store 8KB
contexts
AppContext.tsx 1010B
lib
order.ts 203B
constants.ts 1KB
suno.ts 5KB
.vscode
settings.json 191B
next.config.js 142B
app
.DS_Store 6KB
(auth)
sign-up
[[...sign-up]]
page.tsx 193B
sign-in
[[...sign-in]]
page.tsx 193B
api
personal
music
route.ts 581B
music
token
route.ts 555B
generate
route.ts 2KB
feed
route.ts 3KB
explore
route.ts 1KB
payment
webhook
route.ts 1KB
checkout
route.ts 3KB
getUserInfo
route.ts 941B
(default)
personal
page.tsx 3KB
pricing
page.tsx 3KB
explore
page.tsx 2KB
layout.tsx 574B
page.tsx 1KB
favicon.ico 17KB
layout.tsx 841B
globals.css 1KB
data
install.sql 850B
services
order.ts 1KB
user.ts 335B
LICENSE 11KB
middleware.ts 706B
utils
querystring.ts 292B
request.ts 687B
response.ts 339B
index.ts 243B
components
.DS_Store 6KB
footer
index.tsx 4KB
input
index.tsx 4KB
header
index.tsx 2KB
user
index.tsx 1KB
hero
index.tsx 374B
social
index.tsx 823B
ui
avatar.tsx 1KB
input.tsx 915B
button.tsx 2KB
dropdown-menu.tsx 7KB
loading.tsx 497B
package.json 1KB
public
logo.png 32KB
tailwind.config.ts 2KB
pnpm-lock.yaml 148KB
types
subscribe.d.ts 119B
order.d.ts 269B
music.d.ts 564B
user.d.ts 310B
context.d.ts 171B
settings.json 139B
models
order.ts 3KB
music.ts 2KB
user.ts 905B
db.ts 204B
.gitignore 385B
tsconfig.json 592B
README.md 2KB
postcss.config.js 82B
共 65 条
- 1
资源评论
MarcoPage
- 粉丝: 3130
- 资源: 3570
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 2023-04-06-项目笔记 - 第一百五十四阶段 - 4.4.2.152全局变量的作用域-152 -2024.06.04
- 松哥解协议松哥解协议松哥解协议松哥解协议松哥解协议
- 618节日618节日618节日
- tensorflow-gpu-2.9.1-cp37-cp37m-win-amd64.whl
- tensorflow-gpu-2.9.0-cp37-cp37m-win-amd64.whl
- tensorflow-gpu-2.9.0-cp39-cp39-win-amd64.whl
- lcd daimalcd daima
- 电影领域-推荐算法-个性化内容-观影决策-电影推荐小程序.zip
- 电气控制PLC考试题库
- 如何使用MATLAB简介
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功