GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - beefyfinance/beefy-api: Simple API for BeefyFinance

BranchesTags
Open more actions menu

Latest commit

 

History

8,733 Commits
8,733 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
packages/address-book
packages/address-book
 
 
scripts
scripts
 
 
src
src
 
 
tooling/biome
tooling/biome
 
 
.editorconfig
.editorconfig
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
.nvmrc
.nvmrc
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
Procfile
Procfile
 
 
README.md
README.md
 
 
biome.jsonc
biome.jsonc
 
 
lefthook.yml
lefthook.yml
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
tsconfig.json
tsconfig.json
 
 
tsdown.config.ts
tsdown.config.ts
 
 
vitest.config.ts
vitest.config.ts
 
 

Repository files navigation

Beefy API

The backend that powers Beefy. It reads prices, APYs, TVL and vault metadata from the chains Beefy is deployed on, caches them in memory, and serves them as JSON.

The frontend lives in beefy-v2. The endpoint reference is published at docs.beefy.finance.

Requirements

  • Node — version in .nvmrc
  • pnpm — version pinned by the packageManager field in package.json

Running

pnpm install
pnpm start

The API listens on port 3000 (PORT to override). It fetches everything on boot, so expect a minute or two before data is available; endpoints return 503 until their data is ready.

Configuration is optional — the repo ships default public RPCs and sane fallbacks. To override anything, copy .env.example to .env; pnpm start loads it automatically. Public RPCs are heavily rate-limited, so supplying your own is worthwhile if you are working on a specific chain.

Commands

Command Purpose
pnpm start Run from source with tsx (development)
pnpm build Bundle to dist/ with tsdown
pnpm start:prod Run the built bundle
pnpm typecheck Type-check the API
pnpm lint / pnpm lint:fix Lint and format with Biome

Layout

This repository is a pnpm workspace containing the API and one published package.

Path Contents
src/router.js Every route and the handler it maps to — the source of truth for what the API serves
src/app.ts Server setup and the boot sequence that starts each data service
src/api/ Route handlers and the services that fetch and cache their data
src/data/ Per-chain vault, pool and boost configuration (JSON)
src/abis/ Contract ABIs
src/utils/ Shared helpers — RPC clients, caching, HTTP, logging
scripts/ Maintenance helpers, mostly for adding new vaults and pools
packages/address-book/ Token and protocol addresses per chain, published to npm as @beefyfinance/blockchain-addressbook

Contributing

See CONTRIBUTING.md.

License

MIT.

About

Simple API for BeefyFinance

api.beefy.finance

Topics

apiapybeefyfinancebinance-smart-chaindefikoa2yield-farming

Resources

Readme
MIT license

Contributing

Contributing
Activity
Custom properties

Stars

127 stars

Watchers

8 watching

Forks

205 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.