Skip to content

Infinite-Networker/QuasarFlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

QuasarFlow Logo

QuasarFlow

🌌 QuasarFlow - A quantum-inspired programming language where code resonates with distant quasars. Features quantum-warp constructs, neural resonance functions, event horizon scopes, entangled pointers, chrono-iterators & stellar autocorrect. Write code that entangles with the cosmos! βš›οΈπŸ’«


πŸš€ Getting Started

# Install from the cosmic registry
pip install quasarflow

# Or clone from the galactic repository
git clone https://github.com/Infinite-Networker/QuasarFlow.git
cd QuasarFlow
pip install -r requirements.txt
python setup.py install

🌟 Core Language Concepts

File Description
Your First QuasarFlow Program.js Hello-world Β· quantum_warp_structure basics
The Cosmic REPL.js Interactive REPL Β· quantum-entangled pointers
Neural Resonance Functions.js neural_resonance_function definitions
Chrono-Resonance Iterators.js chrono_resonance_iterator loops
Event Horizon Scopes.js Block scoping beyond the event horizon
Quantum-Entangled Pointers.js Wormhole memory with entangle_memory()
Stellar Autocorrect.js Built-in typo correction system

🎨 UI System β€” Buttons & Typography

QuasarFlow ships a cosmic design system with purpose-built button components and a full typography engine. Open QuasarFlow UI Showcase.html in any browser to see every component live.

⚑ Quantum Button Components (Quantum Button Components.js)

Five cosmic button variants, each resonating at a unique quantum frequency:

Variant QuasarFlow Function Description
Primary createQuantumButton(config) Starlight-beam default action
Nova 🌟 NovaButton(label, size) Blazing orange high-energy CTA
Pulsar ⚑ PulsarButton(label, size) Rapid-pulse animated secondary
Event Horizon πŸ•³οΈ EventHorizonButton(label, size) Dark destructive / danger action
Ghost πŸ‘» GhostButton(label, size) Transparent cosmic overlay

Sizes: "sm" Β· "md" Β· "lg" Β· "xl"
Glows: "nebula" Β· "nova" Β· "pulsar" Β· "void"

// Nova CTA
let btn = NovaButton("Ignite the Stars", "lg");
print(btn);

// Event Horizon (destructive)
let dangerBtn = EventHorizonButton("Collapse Universe", "md");
print(dangerBtn);

// Button Group cluster
let cluster = [
    NovaButton("Primary", "md"),
    PulsarButton("Secondary", "md"),
    GhostButton("Cancel", "md")
];
let group = ButtonGroup();
group.orientation = "horizontal";
print(createButtonGroup(cluster, group));

// Loading state (awaiting warp response)
print(LoadingButton("Calculating Warp Factor..."));

πŸ”€ Cosmic Typography & Fonts (Cosmic Typography & Fonts.js)

Five quantum-calibrated font families and eight ready-made text style helpers:

Font Families

QuasarFlow Name Real-World Equivalent Category Use Case
QuasarSans Space Grotesk Sans-serif Body text Β· UI labels
NebulaSerif Exo 2 Serif Editorial Β· quotes
WarpMono Space Mono Monospace Code blocks Β· terminal
PulsarDisplay Orbitron Display Heroes Β· headings Β· logos
EventHorizonItalic Exo 2 Italic Cosmic italic Callouts Β· dramatic quotes

Typography Helpers

// Load fonts into the quantum registry
loadFont(QuasarSans);
loadFont(PulsarDisplay);
loadFont(WarpMono);

// Supernova hero headline (72px Β· Orbitron Β· black Β· UPPERCASE Β· cyan)
print(HeroText("QuasarFlow"));

// Section heading (32px Β· Orbitron Β· bold Β· +0.05em)
print(HeadingText("Quantum-Warp Constructs"));

// Sub-heading (24px Β· QuasarSans Β· semibold Β· pulsar violet)
print(SubHeadingText("Neural Resonance Functions"));

// Body paragraph (16px Β· QuasarSans Β· regular Β· 1.6 leading)
print(BodyText("Where code resonates with distant quasars."));

// Micro caption (12px Β· UPPERCASE Β· +0.1em Β· secondary grey)
print(CaptionText("v1.0.0 β€” Cosmic Edition"));

// Monospace code snippet (16px Β· WarpMono Β· success green)
print(CodeText("let ptr = entangle_memory(\"cosmic_sector_42\");"));

// Italic callout (18px Β· EventHorizonItalic Β· nova orange)
print(QuoteText("The cosmos is not silent β€” it speaks in code. 🌌"));

// Truncated overflow label (ellipsis at max-width)
print(TruncatedText("This label travels so far it collapses at the event horizon...", 320));

Text Color Palette

Token Color Hex
primary Starlight white-blue #E8F4FF
accent Quantum cyan #7DF9FF
nova Nova orange #FF7F00
pulsar Pulsar violet #BF5FFF
danger Event-horizon red #FF3366
success Cosmic green #39FF14
secondary Nebula grey #A0B4CC
muted Deep-space muted #4A5568

πŸ“ Project Structure

QuasarFlow/
β”œβ”€β”€ Your First QuasarFlow Program.js      # Hello-world example
β”œβ”€β”€ The Cosmic REPL.js                    # Interactive REPL demo
β”œβ”€β”€ Neural Resonance Functions.js         # Function definitions
β”œβ”€β”€ Chrono-Resonance Iterators.js         # Loop constructs
β”œβ”€β”€ Event Horizon Scopes.js               # Block scoping
β”œβ”€β”€ Quantum-Entangled Pointers.js         # Memory / pointer model
β”œβ”€β”€ Stellar Autocorrect.js                # Typo correction system
β”‚
β”œβ”€β”€ Quantum Button Components.js          # πŸ†• UI button system
β”œβ”€β”€ Cosmic Typography & Fonts.js          # πŸ†• Font & typography engine
β”œβ”€β”€ QuasarFlow UI Showcase.html           # πŸ†• Interactive UI demo
β”‚
β”œβ”€β”€ Installation.py                       # Installation instructions
└── README.md                             # This file

πŸ“œ License

MIT β€” feel free to fork, entangle, and warp this project across the universe. 🌌

About

🌌 QuasarFlow - A quantum-inspired programming language where code resonates with distant quasars. Features quantum-warp constructs, neural resonance functions, event horizon scopes, entangled pointers, chrono-iterators & stellar autocorrect. Write code that entangles with the cosmos! βš›οΈπŸ’«

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors