docs
Getting Started

Installation

Kin is available through npm package manager, you can Install it by:

# npm 
npm i -g @kin-lang/kin
 
# yarn
yarn add -g @kin-lang/kin
 
# pnpm
pnpm add -g @kin-lang/kin

Use kin --version to check if Kin is installed. For Linux Distros and macOS users, remember to use sudo.

IDE Integrations

The official Visual Studio Code extension (opens in a new tab) (search kinlang) includes:

  • Syntax highlighting for .kin files
  • Live diagnostics from the Kin parser
  • Completions for keywords, built-ins, and names in the current file
  • Hover and signature help documenting every built-in (what it does and what each argument means)

Install it from the Marketplace, then open any .kin file. You still need the CLI above to run programs (kin run file.kin).

Check a file for syntax problems without running it:

kin check filename.kin

First Program

Create a file with .kin extension, write these codes in order to run hello world.

reka name: ijambo = injiza_amakuru("What's your name? ")
tangaza_amakuru("Hello, ", name, "!")

Run your codes by navigating where your file is located on your system and run:

kin run filename.kin

Make sure that Kin is installed and you're in the correct directory.

Multiple files

Split code with modules: export names with emerera_gukoresha, import with koresha "…" nka alias. See Modules & Imports.

Community

If you have questions or need help, reach out to the community at GitHub Discussions (opens in a new tab).