JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 28
  • Score
    100M100P100Q61842F
  • License Apache-2.0

AI-Native Project Scaffolding for the Modern Era โ€” generates production-ready, AI-optimized project structures

Package Exports

  • @nexus-framework/cli
  • @nexus-framework/cli/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@nexus-framework/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

๐Ÿ”ฎ NEXUS CLI

AI-Native Project Scaffolding

The open-source CLI by GDA Africa that generates production-ready, AI-optimized project structures โ€” so you ship faster and smarter.

TypeScript Node.js Vitest License PRs Welcome


Where documentation drives development and AI agents are first-class citizens.


๐ŸŒ About GDA Africa

GDA (Glenhalton Digital Agency) is building the digital infrastructure for Africa's next generation of products and services. NEXUS CLI is GDA's open-source developer tool โ€” a scaffolding engine that generates intelligent project structures where AI and humans collaborate from day one.


๐ŸŽฏ Why NEXUS?

Every new project starts with the same ritual: hours of boilerplate, fragmented configs, and zero documentation. NEXUS eliminates all of that.

Problem NEXUS Solution
๐Ÿ• Hours of setup and config guesswork to start a project 2-minute interactive setup with strategy-first questions and smart defaults
๐Ÿค– AI tools (Cursor, Copilot) have no project-wide context 8 structured doc files AI agents can parse, execute, and auto-populate
๐Ÿงช Tests and docs are always afterthoughts Generated from day one โ€” test infrastructure, CI/CD, and documentation included
๐Ÿ”„ No conventions exist for AI-native development The first framework built for the AI era โ€” bridging requirements and code generation

โœจ Features

Core Capabilities

  • ๐Ÿง  Strategy-First Setup โ€” Asks about your goals, not just tech preferences
  • ๐Ÿ“ Complete Scaffolding โ€” Production-ready structure, not hello world
  • ๐Ÿ“š NEXUS Doc System โ€” 8 AI-optimized markdown files per project
  • ๐ŸŽฏ Smart Defaults โ€” Best practices baked in based on your choices
  • ๐Ÿงช Test Infrastructure โ€” Vitest config, example tests, and helpers included

Production Ready

  • โšก 5 Frameworks โ€” Next.js, React+Vite, SvelteKit, Nuxt, Astro
  • ๐Ÿ”ง Full Toolchain โ€” TypeScript, ESLint, Prettier pre-configured
  • ๐Ÿš€ CI/CD Templates โ€” GitHub Actions workflows out of the box
  • ๐Ÿ—๏ธ Adopt Existing Projects โ€” Add NEXUS to any codebase with nexus adopt
  • ๐Ÿ“ฆ Strategy Patterns โ€” PWA, Offline-First, i18n, Theming, Real-time

๐Ÿš€ Quick Start

Install

npm install -g @nexus-framework/cli

Create a Project

nexus init my-app

You'll be guided through an interactive setup:

๐Ÿ”ฎ NEXUS CLI v0.1.2 โ€” AI-Native Project Scaffolding

? What are you building?                โ€บ Web Application
? How will your app handle data?        โ€บ Cloud First
? Which application patterns?           โ€บ PWA, Theming
? Which frontend framework?             โ€บ Next.js 15 (App Router)
? Testing framework?                    โ€บ Vitest
? Package manager?                      โ€บ npm
? Initialize a git repository?          โ€บ Yes
? Install dependencies now?             โ€บ Yes

โœ” Project created successfully!

  cd my-app
  npm run dev

Run It

cd my-app
npm run dev
# โ†’ Your app is running at http://localhost:3000

๐Ÿ“ฆ What You Get

Every generated project includes:

Output What's Inside
src/ Framework-specific source code and landing page
.nexus/docs/ 8 AI-optimized documentation files (vision, architecture, API contracts, test strategy, etc.)
.nexus/ai/ AI agent instructions โ€” Copilot, Cursor, Windsurf, Cline all auto-detect these
tests/ Vitest config, example tests, and test helpers
package.json Real dependencies, real scripts โ€” npm run dev works immediately
CI/CD GitHub Actions workflow for lint, test, and build
Config TypeScript, ESLint, Prettier, EditorConfig โ€” all pre-configured

๐Ÿ—๏ธ Adopt an Existing Project

Already have a project? Add the NEXUS documentation system and AI config without touching your source code.

cd my-existing-app
nexus adopt

This adds .nexus/docs/, .nexus/ai/, and AI tool config files. It does not modify your source code, configs, or dependencies.

After adopting, your AI coding tool will auto-detect the NEXUS docs, scan your codebase to populate them, and ask you about anything it can't infer โ€” giving the AI full project context from that point forward.


๐Ÿ“– Supported Frameworks

Framework Version Notes
Next.js 15 (App Router) React Server Components, Turbopack
React + Vite React 19 + Vite 6 SWC, fast HMR
SvelteKit 2.x Svelte 5, file-based routing
Nuxt 3.x Vue 3, auto-imports
Astro 5.x Content-first, island architecture

๐Ÿ—บ๏ธ Roadmap

  • Core CLI with nexus init and nexus adopt
  • Interactive prompt system (project type, data strategy, patterns, frameworks)
  • Generator engine (structure, docs, config, tests, CI/CD, landing page, AI config)
  • AI-native documentation system (8 structured files + onboarding protocol)
  • 5 frontend frameworks supported
  • 105 unit tests passing
  • Published to npm as @nexus-framework/cli
  • End-to-end testing of full nexus init flow
  • Strategy pattern generators (PWA service workers, i18n setup, theming engine)
  • nexus add <feature> โ€” add capabilities to existing projects
  • nexus validate โ€” check projects against NEXUS standards
  • Community templates and plugin system

๐Ÿค Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

git clone https://github.com/GDA-Africa/nexus-cli.git
cd nexus-cli && yarn install
yarn lint && yarn test


Built with โค๏ธ by GDA Africa โ€” Powering Africa's Digital Future

NEXUS CLI is the open-source foundation of the NEXUS framework. For questions, ideas, or collaboration, reach out to the GDA engineering team.