Akhar CLI
akhar is the official command-line tool for Akhar. Type Punjabi in Roman letters and get Gurmukhi, with the same rules as the Akhar Gurmukhi keyboard, and read Akhar's pages and plans from a terminal or a script. It needs Node.js 18 or newer and no key.
Install
With npm
Install it once, then run akhar from any folder.
npm install -g https://akhar.site/_cdn/static/akhar-1.0.0.tgzOr run it without installing: npx https://akhar.site/_cdn/static/akhar-1.0.0.tgz type "sat sri akal"
Commands
akhar type <text...>
Roman-letter Punjabi to Gurmukhi Unicode. Works offline. With no text it reads standard input; --codepoints also prints the Unicode code points.
akhar type "sat sri akal"
ਸਤਿ ਸ੍ਰੀ ਅਕਾਲ
echo "chardi kala" | akhar type
ਚੜ੍ਹਦੀ ਕਲਾakhar info
What Akhar is, the 3 free days and the plans, from the Akhar API.
akhar info
Free trial: 3 days, no card
Monthly: $4.99 a month
Yearly: $54.89 a yearakhar pages
Every public page of akhar.site with its title.
akhar pages
/brushes Brushes: Gurmukhi calligraphy brushesakhar page <path>
One page as Markdown, ready to read or to hand to an AI agent.
akhar page /brushesakhar open [tool]
Opens a tool in the browser: photo, video, stickers, brushes, draw, letters, split, read, fonts, marketplace, sell or docs.
akhar open photo--json
Add --json to any command for machine-readable output. Exit codes: 0 done, 1 failed (network or API error), 2 wrong usage.
akhar type --json putt
{"text":"putt","gurmukhi":"ਪੁੱਤ","codepoints":["U+0A2A","U+0A41","U+0A71","U+0A24"]}Typing rules
Common words come from a dictionary (sat sri akal, waheguru, punjab); everything else is spelled out letter by letter. Long vowels are aa, ee or ii, and oo or uu. Capital T D N R give ਟ ਡ ਣ ੜ. A doubled letter adds an addak (putt gives ਪੁੱਤ), and a consonant with r and a vowel uses pairin rara (prem gives ਪ੍ਰੇਮ). M is bindi, ~ tippi, ^ addak, | gives ।, || gives ॥ and <> gives ੴ.
More
The info, pages and page commands call the public Akhar API (60 requests a minute, no key). Questions go to hello@akhar.site.