Skip to content

Repository files navigation



Nova - v2.3.1

GitHub Issues Badge Version Badge GitHub branch check runs

NovaCompile is an AI-powered runtime engine and transpiler designed to execute unstructured text, pseudo-code, and language files (.no) by instantly translating them into production-ready Python code on the fly using Groq Cloud infrastructure. Nova also includes lots of other features including fast language translation, code fixing, a shell, and AI coding agent with custom permissions (see docs/chat-permissions.md, and docs/usage.md).


🚀 Quick Start Guide

To install a permenant binary global executable, run this install script (which installs this executable) and ignore steps 1 and 3. This is currently significantly limited of features, and will be rarely updated.

Follow these three simple steps to configure NovaCompile inside your local workspace or web-shell environment.

1. Run Installation Script

Run this installation script to clone the repository to get Nova on your device.

cd ~
mkdir .novacompile
cd .novacompile
git clone https://github.com/novacompile/compiler.git
cd compiler

2. Get an a Groq API key

Go to console.groq.com and sign up for an account. Click API Keys, then create API key.

Warning

Remember to copy the key and put it in a safe and secure place straight away after creating it.

3. Setup your enviroment

Run the setup script to install the dependencies through pip, create a permenant alias, and install your API key.

bash setup.sh

Note

To make this shortcut permanent across terminal restarts, the setup script appends the alias directly into your ~/.bashrc configuration profile.


🛠️ Usage and Execution

Once configured, create a custom code file using your preferred pseudo-syntax or simplified structures.

1. Start the Interactive Shell

Launch the shell directly to type Nova code interactively:

nova

If you run the transpiler without a file argument, it starts this shell automatically.

In shell mode, type a block of Nova code, then press Enter on an empty line to transpile and run it. Use exit or quit to leave.

2. Create a Nova File

Create a file with the .no suffix (e.g. script.no) containing your custom logic, for example:

// Define some basic variables
username is "john"
counter is 5

// Run a structural loop
loop 3 times
    add 2 to counter
    display text "User logged in: " and then show username
    print "Current count value is: " + counter

3. Run the Compiler

Execute the file instantly by calling nova followed by your custom script target:

nova [filename].no

If you prefer to run the entrypoint directly, this also works:

python src/transpiler.py [filename].no

Warning

To be able to run the entrypoint directly, you must be inside the root directory of compiler (by default it is ~/.novacompile/compile)

Full Usage

For the full documentation on usage, read usage.md.

License

Nova Compiler is under the MIT License. Make sure that you have read and understood it before reproducing this repo.

About

Central AI compiler for Nova

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages