π 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! βοΈπ«
# 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| 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 |
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:
| 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 |
// 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));| 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 |
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
MIT β feel free to fork, entangle, and warp this project across the universe. π
