https://github.com/dfinity/icp-calculator-ui
The frontend of the ICP pricing calculator
https://github.com/dfinity/icp-calculator-ui
Last synced: 8 months ago
JSON representation
The frontend of the ICP pricing calculator
- Host: GitHub
- URL: https://github.com/dfinity/icp-calculator-ui
- Owner: dfinity
- License: apache-2.0
- Created: 2024-08-13T07:51:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-08T05:37:40.000Z (10 months ago)
- Last Synced: 2025-07-08T06:55:56.337Z (10 months ago)
- Language: TypeScript
- Size: 516 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# ICP Pricing Calculator
You can check out the live version at https://3d5wy-5aaaa-aaaag-qkhsq-cai.icp0.io/
See also the library that this project is based on: https://github.com/dfinity/icp-calculator
## Adding a new ICP feature
In order to add a new ICP feature to the calculator:
1. Add the corresponding cost computation logic to the library: https://github.com/dfinity/icp-calculator
2. Make a new release of the library and bump the dependency here.
3. Add the corresponding UI element class in `src/lib/ts/feature.ts`.
4. Add a new entry to the `FEATURES` table in `src/lib/ts/feature.ts`.
5. If the feature introduces a new cost category, then add it in `src/lib/ts/cost.ts`.
## Running a local server
```
npm run dev
```
## Deploying on local dfx
```
npm run deploy:dev
```
## Deploying on mainnet
```
npm run deploy
```