The Rhodium Standard Repository (RSR) template—a comprehensive framework for creating secure, polyglot, FOSS-compliant repositories with enforced language policy and cross-platform deployment.
RSR provides a standardized template for repositories following the Hyperpolymath Rhodium Standard—an opinionated framework that:
-
Enforces a curated language policy (ReScript, Rust, Deno, Nickel, Ada, Gleam)
-
Bans problematic ecosystems (TypeScript, Node.js, npm, Go, general Python)
-
Provides cross-platform deployment from Edge ASICs to standard PCs
-
Implements security-first CI/CD with supply chain hardening
-
Supports 22 different shell environments
The ncl/ directory contains Nickel-based configuration contracts:
target_type =
if env.os == "minix" then 'Edge_ASIC
else if env.is_immutable == "true" then 'Kinoite_Layered
else if env.os == "darwin" then 'Apple_Darwin
else 'Standard_PC| File | Purpose |
|---|---|
|
OS/architecture detection with automatic deployment priority routing (Edge ASIC → Kinoite → Darwin → Standard PC) |
|
Type contracts for |
procedure Customize_Repo is
type Choice is (Keep, Blank, Delete);
Repo_Name : String := Get_Input("Project Name?");
-- SPARK ensures file operations are memory-safeAda/SPARK provides formally-verifiable file operations for template customization, ensuring no memory corruption during repo setup.
# Targets: Linux, Minix, macOS, iOS, Android, PC (ASIC/Edge compatible)
# Shells: bash, cmd, oil, ash, csh, dash, elvish, fish, ion, ksh, murex,
# ngs, nushell, powershell-core, tcsh, tsh, zsh, minix shell| Script | Lines | Function |
|---|---|---|
|
64 |
Offline-first toolchain installer for |
|
38 |
Universal shell bridge categorizing 22 shells into POSIX (11), Structured (6), C-Shell/Plan9 (3), Windows (2) |
| Workflow | Platform | Purpose |
|---|---|---|
|
GitHub |
CodeQL Advanced static analysis for multiple languages |
|
GitHub |
Language policy enforcement — blocks TS/Go/npm, allows ReScript/Deno/Rust |
|
GitHub |
Weak crypto detection (MD5/SHA1), HTTP URL blocking, secret scanning |
|
GitHub |
RFC 9116 security.txt validation |
|
GitHub |
TruffleHog, EditorConfig, permission checks |
|
GitHub |
OSSF Scorecard integration |
|
GitLab |
Primary CI — Trivy, Gitleaks, Semgrep, rustfmt, clippy, cargo test |
.
├── .rhodium/ # [MACHINE] AI context, JSON specs, hidden logic
├── ncl/ # [LOGIC] Nickel contracts and permutations
│ └── lib/
│ ├── os_detect.ncl # OS/arch detection
│ └── schema.ncl # Type contracts
├── scripts/ # [ENGINE] 22-shell compatibility
│ ├── bootstrap.sh # Toolchain installer
│ └── all-shells.sh # Shell bridge
├── .github/workflows/ # GitHub Actions (11 workflows)
├── rsr-adapter.adb # [SAFETY] Ada/SPARK repo adapter
├── Justfile # [ARTISAN] Local task runner
├── Mustfile # [AUTHORITY] Global deployment (future)
└── *.adoc # [HUMAN] Documentation| Language | Use Case | Notes |
|---|---|---|
ReScript |
Primary application code |
Compiles to JS, type-safe |
Rust |
Systems, WASM, CLI tools |
Performance-critical |
Deno |
Runtime & package management |
Replaces Node/npm/bun |
Nickel |
Configuration language |
Complex configs |
Ada/SPARK |
Safety-critical systems |
Formally verifiable |
Gleam |
Backend services |
BEAM or JS compilation |
Tauri 2.0+ / Dioxus |
Mobile apps |
Rust-first, no Swift/Kotlin |
# Clone the template
git clone https://github.com/hyperpolymath/RSR-template-repo my-project
cd my-project
# Bootstrap the toolchain (just, must, nicaug)
just bootstrap
# Customize the repository
./rsr-adapter # or run the Ada binary when compiled
# Start developing
just --list-
SHA-pinned GitHub Actions — Supply chain protection
-
No MD5/SHA1 — Modern cryptography only (SHA256+)
-
HTTPS-only — No plaintext URLs
-
TruffleHog scanning — Secret detection
-
CodeQL analysis — Vulnerability detection
-
OSSF Scorecard — Security posture tracking
-
Trivy/Gitleaks/Semgrep — GitLab security pipeline
| Document | Purpose |
|---|---|
Development phases and milestones |
|
Repository structure philosophy |
|
Contribution guidelines with perimeter model |
|
Vulnerability reporting procedures |
|
Citation formats (BibTeX, Harvard, APA 7, MLA, OSCALA) |
| Component | Status | Version |
|---|---|---|
RSR Core Structure |
✅ Complete |
v0.2.0 |
Nickel Configuration |
✅ Complete |
v0.2.0 |
22-Shell Bootstrap |
✅ Complete |
v2.0 |
CI/CD Workflows |
✅ Complete |
v0.2.0 |
Language Templates |
🔄 In Progress |
v0.3 |
RSR Compliance CLI |
📋 Planned |
v0.4 |