Skip to content

hari7261/ainative

Repository files navigation

AINative

AINative is a small monorepo for building AI-driven interfaces with a React client runtime, a Node server adapter, a Python server adapter, a CLI, and runnable examples.

What is in this repo

  • packages/client: runtime, components, multimodal helpers, and client-side tests
  • packages/server-node: Express-based AI server with provider adapters and tool routing
  • packages/server-python: FastAPI-based server adapter
  • packages/cli: project scaffolding and developer commands
  • examples/basic-chat: end-to-end example used by Playwright
  • examples/streaming-demo: local streaming demo
  • docs: framework and package documentation

Current provider support

  • OpenAI
  • Anthropic
  • Ollama

The example apps also support a local fallback response path so they can run without external API keys.

Quick start

Requirements

  • Node.js 18+
  • pnpm 8+
  • Python 3.10+

Install

corepack pnpm install

Build everything

corepack pnpm run build

Run tests

corepack pnpm test
corepack pnpm run test:e2e

Run the example

Basic chat

Terminal 1:

corepack pnpm run server:basic-chat

Terminal 2:

corepack pnpm run dev:basic-chat

Then open http://127.0.0.1:5173.

CLI

The CLI currently supports:

  • ainative init
  • ainative dev
  • ainative build
  • ainative preview
  • ainative doctor
  • ainative add-provider

Install the CLI after publish:

npm install -g @hari7261/ainative-cli

Smoke check:

corepack pnpm --dir packages/cli exec node dist/index.js --help

Repo validation status

The repo has been validated locally with:

  • monorepo build
  • client unit tests
  • Node server tests
  • Python server smoke test
  • Playwright end-to-end tests for basic-chat
  • CLI help and doctor smoke checks

Documentation

Notes

  • PROJECT-PROMPT.md is kept as a repo-local specification/reference file.
  • Python tests may still show third-party dependency warnings on some machines, but the server test itself passes.

About

AI-native frontend framework designed for building LLM-driven interfaces.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors