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
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1 @@
NEXT_PUBLIC_API_KEY=xxx
VITE_API_KEY=xxx
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
47 changes: 22 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,57 +1,54 @@
**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).
# Fireblocks dApp

A standalone [Vite](https://vite.dev/) + React app embedding the Yield.xyz widget.

## Getting Started

### Installation
### Prerequisites

Use correct node version
Tooling is managed with [mise](https://mise.jdx.dev/). Install the pinned Node and pnpm versions:

```bash
nvm use
mise install
```

Install dependencies
### Installation

```bash
npm install
# or
yarn install
# or
pnpm install
```

Copy the example env file and set your API key:

```bash
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.
Open [http://localhost:3002](http://localhost:3002) with your browser to see the result.

### Run production app

Create production build
Create a production build:

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

Start the app
Preview the build:

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

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

```bash
pnpm lint # biome check + tsc
pnpm format # biome check --write
```
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:
- "**/*"
4 changes: 2 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.9/schema.json",
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"ignoreUnknown": false,
"includes": ["**", "!**/node_modules", "!**/.next", "!**/public"]
"includes": ["**", "!**/node_modules", "!**/dist", "!**/public"]
},
"formatter": {
"enabled": true,
Expand Down
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!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>
</head>
<body>
<div id="app"></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.15.0"
"npm:pnpm" = "10.33.2"
19 changes: 0 additions & 19 deletions next.config.js

This file was deleted.

26 changes: 14 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,39 @@
"name": "standalone-dapp",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "next dev --port 3002 --webpack",
"build": "next build --webpack",
"start": "next start",
"lint": "biome check . && tsc --noEmit",
"dev": "vite --port 3002",
"build": "vite build",
"start": "vite preview --host 0.0.0.0 --port 3002",
"lint": "biome check . && tsc",
"format": "biome check --write ."
},
"dependencies": {
"@stakekit/widget": "^0.0.268",
"@types/node": "25.0.9",
"@types/react": "19.2.8",
"@types/react-dom": "19.2.3",
"@vanilla-extract/css": "^1.18.0",
"@vanilla-extract/dynamic": "^2.1.5",
"@vanilla-extract/next-plugin": "^2.4.17",
"@vanilla-extract/recipes": "^0.5.7",
"@vanilla-extract/sprinkles": "^1.6.5",
"clsx": "^2.1.1",
"lodash.merge": "^4.6.2",
"mipd": "^0.0.7",
"next": "16.1.3",
"react": "19.2.3",
"react-dom": "19.2.3",
"typescript": "5.9.3",
"wagmi": "^3.3.4"
},
"devDependencies": {
"@biomejs/biome": "2.3.11",
"@types/lodash.merge": "^4.6.9"
"@types/lodash.merge": "^4.6.9",
"@types/node": "25.0.9",
"@types/react": "19.2.8",
"@types/react-dom": "19.2.3",
"@vanilla-extract/vite-plugin": "^5.1.1",
"@vitejs/plugin-react": "^6.0.1",
"typescript": "5.9.3",
"vite": "^8.0.9"
},
"packageManager": "pnpm@10.26.1",
"packageManager": "pnpm@10.33.2",
"engines": {
"node": "24.x"
}
Expand Down
Loading
Loading