Next.jsReactStarter

create-kalp-dapp — Next.js Starter Template

By Spydiecy

create-kalp-dapp is a full-stack starter template with a Next.js frontend and Go backend, used for building dApps and developing smart contracts on the Kalp DLT blockchain, with a built-in greeting example dApp.

Explore the design

Compare the page layouts and mobile experience. Open any screenshot for a closer look.

2 previews
Desktop homepage1 / 2
Desktop captureTop of page

Actual screenshot captured by the server browser.

All pages & views 2

Screenshots show visual appearance; interactive behavior may differ.

Recorded 2026-10-14View source

What stands out

A quick read of the recorded project description.

01

Provides a full-stack project structure with a Next.js frontend and Go backend

02

Includes a built-in greeting smart contract krc.go with Init, SetGreeting, and GetGreeting functions

03

The frontend interacts with the contract via the useKalpApi hook calling the Kalp DLT API

04

Quickly generates a project via the npx create-kalp-dapp command

05

The deployment process connects to Kalp Studio's Kalp Instant Deployer and API key mechanism

Template Details

The template creates a project via npx create-kalp-dapp <your-dapp-name>, generating two directories: backend and frontend. The backend uses Go and includes go.mod, go.sum, main.go, and krc.go, where krc.go provides a greeting contract with three functions: Init, SetGreeting, and GetGreeting. The frontend uses Next.js and includes src/app, src/hooks, src/utils, as well as .env.local.example, next.config.mjs, package.json, and tailwind.config.ts. The frontend calls the Kalp DLT API through the useKalpApi hook in src/hooks/useKalpApi.tsx, and the interface allows viewing the current greeting and setting a new greeting.

The deployment process relies on Kalp Studio: you need to register and log in to the Kalp Studio platform, enter Kalp Instant Deployer to create a smart contract, upload backend.zip packaged from the backend folder, and after deployment obtain API endpoints for each function and generate an API key. For the frontend, copy .env.local.example to .env.local, fill in NEXT_PUBLIC_API_KEY and NEXT_PUBLIC_CONTRACT_ID, then run npm run dev to view at http://localhost:3000. The README does not provide a local backend run method, contract compilation commands, testing methods, production deployment steps, or specific dependency version numbers.

Next.jsStarter

Is it right for your project?

Use Cases

  • Create and deploy a greeting smart contract on Kalp DLT
  • Build a dApp starter project based on a Next.js frontend and Go backend
  • Learn to interact with smart contracts through API endpoints provided by Kalp Studio
  • Run the frontend locally and connect to a deployed contract for debugging as a developer

Suitable For

  • Developers who need to develop dApps on the Kalp DLT blockchain
  • Teams looking to build full-stack blockchain projects using a combination of Next.js and Go
  • Those who want to understand the Kalp Studio deployment and API call process through an example contract

Getting started & customization

Use these recorded setup notes alongside the repository instructions for your chosen version.

  1. 1

    Run npx create-kalp-dapp <your-dapp-name> to create a project and enter the directory

  2. 2

    For the backend, enter the backend directory and run go mod tidy to install dependencies

  3. 3

    Create a smart contract in Kalp Studio's Kalp Instant Deployer and upload backend.zip packaged from the backend folder

  4. 4

    After deployment, obtain API endpoints from Kalp Studio and generate an API key

  5. 5

    For the frontend, enter the frontend directory and run npm install, copy .env.local.example to .env.local and fill in NEXT_PUBLIC_API_KEY and NEXT_PUBLIC_CONTRACT_ID, then run npm run dev

Read repository instructions

License & source material

Usage conditions & limitations

Free to use · keep license notice

This entry covers the free version under the MIT license in the public repository; the free scope is the code of this version and does not mean external services or third-party assets are free.

Must comply with when using

  • Free use, modification, commercial use, and distribution of this version's code are permitted.
  • When distributing copies or substantial portions of the code, retain the original author's copyright notice and the full MIT license notice.
  • The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.

Additional costs & items to verify

  • Demo images, fonts, icons, and other third-party assets must be checked against their respective licenses and cannot be judged solely by the code's MIT license.
  • External services such as domains, hosting, databases, payments, or AI may incur additional charges.
  • Deploying smart contracts using this template requires first registering and logging in to a Kalp Studio platform account.
  • Before calling the contract API, an API key must be generated in Kalp Studio for authentication.
  • Before running the frontend, the Kalp Studio API key and the deployed contract ID must be filled in .env.local.
  • All contract interactions depend on the Kalp DLT API endpoints provided by Kalp Studio and cannot be used without this external service.
View Original Text Basis

Permission is hereby granted, free of charge

Original License Text

1. Sign Up and Log In to [Kalp Studio Platform](https://console.kalp.studio/)

Original README

In Kalp Studio, navigate to the API key generation section and generate a new API key to authenticate your API requests.

Original README

- Update `NEXT_PUBLIC_API_KEY` and `NEXT_PUBLIC_CONTRACT_ID` with your Kalp Studio API key and deployed contract ID

Original README

All interactions are handled through the Kalp DLT API, using the endpoints provided by Kalp Studio.

Original README
https://github.com/Spydiecy/create-kalp-dapp/blob/main/LICENSEhttps://github.com/Spydiecy/create-kalp-dapp/blob/main/README.md

Compiled by DeepSeek based on repository license and README ·2026-10-14. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.

Project checks & description sources

Template Information

Source platforms
GitHub
Documentation and maintenance reference score
Partly documented · 68 / 100
Technologies
Next.js · React
Website type
Starter
How this score is calculated

Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.

What to verify for this project

Repository update recorded
2024-09-22
Screenshot last checked
2026-10-14

A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.

The catalog identifies Next.js as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.

Use a selection guide →

How this description was prepared

AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.

Review declaration: codex-user-requested-batch-review-20261015 · 2026-10-15

Inspect the recorded source material

SHA-256: 2ace339a40f82b3982ef19030b01f1562dc346cc8c2e8796206e4058dfd19bbf

2026-10-14T02:26:33.248Z

Source file / repository
# create-kalp-dapp

![Kalp DLT](/frontend/src/app/favicon.ico)

![Platform](https://img.shields.io/badge/platform-Kalp%20DLT-blue)
![License](https://img.shields.io/badge/license-MIT-green)
![NPM Version](https://img.shields.io/npm/v/create-kalp-dapp)

A full-stack starter template featuring Next.js & Go, designed for building dApps and developing smart contracts on the Kalp DLT blockchain. This starter kit provides a simple greeting dApp to demonstrate interaction with a Kalp DLT smart contract.

![image](https://github.com/user-attachments/assets/d1d66943-d36e-4ba8-944b-6655ec159757)

## 🚀 Quick Start

```sh
npx create-kalp-dapp <your-dapp-name>

# cd into the directory
cd <your-dapp-name>
```

## 📦 Installation

Open your terminal and run:

```sh
npx create-kalp-dapp <your-dapp-name>
cd <your-dapp-name>
```

## 🏗 Project Structure

After creation, your project should look like this:

```
<your-dapp-name>/
├── backend/
│   ├── vendor/
│   ├── go.mod
│   ├── go.sum
│   ├── main.go
│   └── krc.go
├── frontend/
│   ├── src/
│   │   ├── app/
│   │   ├── hooks/
│   │   └── utils/
│   ├── .env.local.example
│   ├── next.config.mjs
│   ├── package.json
│   └── tailwind.config.ts
└── README.md
```

## 📜 Smart Contract Development

### Setting up the Smart Contract Project

1. Navigate to the smart contract directory:
   ```
   cd backend
   ```

2. Install dependencies:
   ```
   go mod tidy
   ```

### Smart Contract Code

The main smart contract file is `krc.go`. It includes a simple greeting contract with `Init`, `SetGreeting`, and `GetGreeting` functions.

### Compiling and Deploying the Smart Contract

1. Sign Up and Log In to [Kalp Studio Platform](https://console.kalp.studio/)
2. Go to Kalp Instant Deployer
3. Click on "Create New" Smart Contract
4. Enter the details:
   - Name: Enter a name for your smart contract
   - Category: Choose a category
   - Description: Add a description (optional)

   ![image](https://github.com/user-attachments/assets/39f41f16-a311-4427-8284-b9303872aa9e)

5. Upload your `backend.zip` file (zip the contents of the `backend` folder)

   ![image](https://github.com/user-attachments/assets/104f9955-05ce-4597-8348-628cf3e414ca)

6. Deploy your contract

After deployment, Kalp Studio will provide you with API endpoints for each function of your smart contract.

   ![image](https://github.com/user-attachments/assets/a223d7b9-d972-48b0-9aa2-06b7bea5a00f)

### Generating API Key

In Kalp Studio, navigate to the API key generation section and generate a new API key to authenticate your API requests.

## 💻 Frontend Development

### Setting up the Frontend

1. Navigate to the frontend directory:
   ```
   cd frontend
   ```

2. Install dependencies:
   ```
   npm install
   ```

3. Set up environment variables:
   - Copy `.env.local.example` to `.env.local`
   - Update `NEXT_PUBLIC_API_KEY` and `NEXT_PUBLIC_CONTRACT_ID` with your Kalp Studio API key and deployed contract ID

### Running the Frontend

Start the development server:

```
npm run dev
```

Visit `http://localhost:3000` to see your dApp in action.

![image](https://github.com/user-attachments/assets/afb392bd-4653-4325-a2d2-295d4527cac8)

## 🔧 Interacting with the Smart Contract

The frontend includes a simple interface to interact with your greeting smart contract:

- View the current greeting
- Set a new greeting

All interactions are handled through the Kalp DLT API, using the endpoints provided by Kalp Studio.

## 🔑 API Integration

The `useKalpApi` hook in `src/hooks/useKalpApi.tsx` handles all API calls to your smart contract. Make sure to update the contract ID and API key in your `.env.local` file for proper functionality.

## ➡️ Contributing

We welcome contributions! Please see our [CONTRIBUTING.md](https://github.com/Spydiecy/create-kalp-dapp/blob/main/CONTRIBUTING.md) file for details on how to get started.

## ⚖️ License

create-kalp-dapp is licensed under the [MIT License](https://github.com/Spydiecy/create-kalp-dapp/blob/main/LICENSE).


⭐️ If you find this project helpful, please give it a star on GitHub!
Report a correction

Explore similar templates

Compare previews and descriptions within the same stack and category.