Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
NEXT_PUBLIC_API_KEY=
NEXT_PUBLIC_MIX_PANEL_TOKEN=
VITE_API_KEY=
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
pull_request:

permissions:
contents: read

concurrency:
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
checks:
name: Lint and build
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install mise
run: |
curl https://mise.run | MISE_VERSION=v2026.5.6 sh
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
echo "$HOME/.local/share/mise/shims" >> "$GITHUB_PATH"
export PATH="$HOME/.local/bin:$HOME/.local/share/mise/shims:$PATH"
mise install

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Lint
run: pnpm lint

- name: Build
run: pnpm build
24 changes: 10 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

# dependencies
/node_modules
/.pnp
.pnp.*
.pnpm-store/

# testing
/coverage

# next.js
/.next/
/out/

# production
/build
/dist

# misc
.DS_Store
Expand All @@ -21,23 +21,19 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local
.env

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

.env

.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
# IDE files
.vscode/
.idea/
.claude/
48 changes: 15 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,57 +1,39 @@
**This** is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
# Infinex

## Getting Started
A [Vite](https://vite.dev/) + React app embedding the [`@stakekit/widget`](https://www.npmjs.com/package/@stakekit/widget).

### Installation
## Getting Started

Use correct node version
Tooling (Node + pnpm) is managed with [mise](https://mise.jdx.dev/).

```bash
nvm use
mise install
pnpm install
```

Install dependencies
Copy the env template and fill in the values:

```bash
npm install
# or
yarn install
# or
pnpm install
cp .env.example .env
```

### Run development app

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

### Run production app
Open [http://localhost:3002](http://localhost:3002) with your browser to see the result.

Create production build
### Run production build

```bash
npm run build
# or
yarn build
# or
pnpm build
```

Start the app

```bash
npm run start
# or
yarn start
# or
pnpm start
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
## Tooling

- **Build:** Vite (`vite.config.ts`)
- **Lint/format:** Biome (`biome.json`) — `pnpm lint`, `pnpm lint:fix`
- **Hosting:** AWS Amplify (`amplify.yml`)
20 changes: 20 additions & 0 deletions amplify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 1
frontend:
phases:
preBuild:
commands:
- curl https://mise.run | MISE_VERSION=v2026.5.6 sh
- export PATH="$HOME/.local/bin:$PATH"
- export PATH="$HOME/.local/share/mise/shims:$PATH"
- mise install
- pnpm install --frozen-lockfile
- echo "VITE_API_KEY=$VITE_API_KEY" >> .env

build:
commands:
- pnpm build

artifacts:
baseDirectory: dist
files:
- "**/*"
6 changes: 3 additions & 3 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"$schema": "https://biomejs.dev/schemas/2.0.5/schema.json",
"vcs": {
"enabled": false,
"enabled": true,
"clientKind": "git",
"useIgnoreFile": false
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false,
"includes": ["**", "!**/.next", "!**/node_modules"]
"includes": ["**", "!**/dist", "!**/node_modules"]
},
"formatter": {
"enabled": true,
Expand Down
14 changes: 14 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="/icon.png" />
<title>Yield.xyz</title>
<meta name="description" content="Yield.xyz" />
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
37 changes: 37 additions & 0 deletions mise.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[tools]
node = "24.16.0"
"npm:pnpm" = "10.33.2"
8 changes: 0 additions & 8 deletions next.config.ts

This file was deleted.

29 changes: 16 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,35 @@
"private": true,
"type": "module",
"scripts": {
"dev": "next dev --port 3002",
"build": "next build",
"start": "next start",
"lint": "biome check --write .",
"format": "pnpm lint"
"dev": "vite --port 3002",
"build": "vite build",
"start": "vite preview --host 0.0.0.0 --port 3002",
"lint": "biome check . && tsc",
"lint:fix": "biome check --write .",
"format": "biome format .",
"format:fix": "biome format --write ."
},
"dependencies": {
"@fontsource/ibm-plex-sans-condensed": "^5.2.6",
"@stakekit/widget": "0.0.237",
"@types/node": "24.0.3",
"@types/react": "19.1.8",
"@types/react-dom": "19.1.6",
"@vanilla-extract/css": "^1.17.4",
"@vanilla-extract/dynamic": "^2.1.5",
"@vanilla-extract/next-plugin": "^2.4.14",
"@vanilla-extract/recipes": "^0.5.7",
"@vanilla-extract/sprinkles": "^1.6.5",
"clsx": "^2.1.1",
"lodash.merge": "^4.6.2",
"next": "15.3.4",
"react": "19.1.0",
"react-dom": "19.1.0",
"typescript": "5.8.3"
},
"devDependencies": {
"@biomejs/biome": "2.0.5",
"@types/lodash.merge": "^4.6.9"
},
"packageManager": "pnpm@10.12.2"
"@types/lodash.merge": "^4.6.9",
"@types/node": "24.0.3",
"@types/react": "19.1.8",
"@types/react-dom": "19.1.6",
"@vanilla-extract/vite-plugin": "^5.0.1",
"@vitejs/plugin-react": "^4.3.4",
"vite": "^6.0.7"
}
}
Loading
Loading