Skip to content

peanutprotocol/peanut-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6,895 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Peanut UI

Tests CodeQL Next.js React TypeScript Tailwind CSS i18n PWA Ready

Live at: peanut.me | staging.peanut.me

Getting Started

Ask in Peanut Discord #dev channel if you have any questions.

First install the dependencies (location: root folder):

git submodule update --init --recursive
pnpm install
cp .env.example .env
# fill in dummy values
pnpm dev

# Note: run pnpm run dev:https if you need to work in a secure secure context

Then open http://localhost:3000 with your browser to see the result.

Code Formatting

This project uses Prettier for code formatting. To ensure consistent code style:

  1. Install the VSCode Prettier extension
  2. Enable "Format on Save" in VSCode
  3. Prettier will automatically format your code when you save

The CI pipeline will check formatting on all PRs. Unformatted code will block merging.

Testing

This project uses Jest for testing. Tests are located next to their source files in __tests__ directories.

To run tests:

# Run all tests
pnpm test

# Run tests in watch mode during development
pnpm test:watch

# Run tests with coverage report
pnpm test:coverage

Test Structure

  • Tests are placed in __tests__ directories next to the code they test
  • Test files should be named *.test.ts or *.test.tsx
  • Use descriptive test names that explain the expected behavior

Example:

describe('Bank Account Formatting', () => {
    it('should format IBAN with spaces every 4 characters', () => {
        // test code
    })
})

The CI pipeline runs tests on all PRs. Failed tests will block merging.

Archived Branches

This repo previously hosted two other apps under the peanut.to domain. Both are now deprecated in favor of peanut.me (this branch). Their final states are preserved as tags:

Tag Was Last commit Notes
archive/peanut-to mainpeanut.to Nov 2025 Link-based send/claim app, cashout, SDK pages
archive/legacy-peanut-to legacylegacy.peanut.to Mar 2025 Batch send, raffles, leaderboard

To browse the old code: git checkout archive/peanut-to

About

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages