Skip to content

Commit 53ea072

Browse files
hyperpolymathclaude
andcommitted
chore(developer-ecosystem): absorb bridge-nginx-zig, drop uninitialized template scaffolds
bridge-nginx-zig previously had its own .git dir inside this monorepo, violating the "no .git dirs in monorepo subdirs" rule. GitHub origin was 404 (never created or deleted); mirror state was stale. Absorbing the subdir as a regular monorepo subdirectory and dropping the uninitialized src/abi/ + ffi/zig/ template scaffolds (`{{project}}` placeholders never substituted; not wired into any build). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9c5c7d7 commit 53ea072

59 files changed

Lines changed: 4798 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

bridge-nginx-zig/.claude/CLAUDE.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# CLAUDE.md - AI Assistant Instructions
2+
3+
## Language Policy (Hyperpolymath Standard)
4+
5+
### ALLOWED Languages & Tools
6+
7+
| Language/Tool | Use Case | Notes |
8+
|---------------|----------|-------|
9+
| **ReScript** | Primary application code | Compiles to JS, type-safe |
10+
| **Deno** | Runtime & package management | Replaces Node/npm/bun |
11+
| **Rust** | Performance-critical, systems, WASM | Preferred for CLI tools |
12+
| **Tauri 2.0+** | Mobile apps (iOS/Android) | Rust backend + web UI |
13+
| **Dioxus** | Mobile apps (native UI) | Pure Rust, React-like |
14+
| **Gleam** | Backend services | Runs on BEAM or compiles to JS |
15+
| **Bash/POSIX Shell** | Scripts, automation | Keep minimal |
16+
| **JavaScript** | Only where ReScript cannot | MCP protocol glue, Deno APIs |
17+
| **Nickel** | Configuration language | For complex configs |
18+
| **Guile Scheme** | State/meta files | STATE.scm, META.scm, ECOSYSTEM.scm |
19+
| **Julia** | Batch scripts, data processing | Per RSR |
20+
| **OCaml** | AffineScript compiler | Language-specific |
21+
| **Ada** | Safety-critical systems | Where required |
22+
23+
### BANNED - Do Not Use
24+
25+
| Banned | Replacement |
26+
|--------|-------------|
27+
| TypeScript | ReScript |
28+
| Node.js | Deno |
29+
| npm | Deno |
30+
| Bun | Deno |
31+
| pnpm/yarn | Deno |
32+
| Go | Rust |
33+
| Python | Julia/Rust/ReScript |
34+
| Java/Kotlin | Rust/Tauri/Dioxus |
35+
| Swift | Tauri/Dioxus |
36+
| React Native | Tauri/Dioxus |
37+
| Flutter/Dart | Tauri/Dioxus |
38+
39+
### Mobile Development
40+
41+
**No exceptions for Kotlin/Swift** - use Rust-first approach:
42+
43+
1. **Tauri 2.0+** - Web UI (ReScript) + Rust backend, MIT/Apache-2.0
44+
2. **Dioxus** - Pure Rust native UI, MIT/Apache-2.0
45+
46+
Both are FOSS with independent governance (no Big Tech).
47+
48+
### Enforcement Rules
49+
50+
1. **No new TypeScript files** - Convert existing TS to ReScript
51+
2. **No package.json for runtime deps** - Use deno.json imports
52+
3. **No node_modules in production** - Deno caches deps automatically
53+
4. **No Go code** - Use Rust instead
54+
5. **No Python anywhere** - Use Julia for data/batch, Rust for systems, ReScript for apps
55+
6. **No Kotlin/Swift for mobile** - Use Tauri 2.0+ or Dioxus
56+
57+
### Package Management
58+
59+
- **Primary**: Guix (guix.scm)
60+
- **Fallback**: Nix (flake.nix)
61+
- **JS deps**: Deno (deno.json imports)
62+
63+
### Security Requirements
64+
65+
- No MD5/SHA1 for security (use SHA256+)
66+
- HTTPS only (no HTTP URLs)
67+
- No hardcoded secrets
68+
- SHA-pinned dependencies
69+
- SPDX license headers on all files

bridge-nginx-zig/.editorconfig

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# RSR-template-repo - Editor Configuration
2+
# https://editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
end_of_line = lf
9+
indent_size = 2
10+
indent_style = space
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true
13+
14+
[*.md]
15+
trim_trailing_whitespace = false
16+
17+
[*.adoc]
18+
trim_trailing_whitespace = false
19+
20+
[*.rs]
21+
indent_size = 4
22+
23+
[*.ex]
24+
indent_size = 2
25+
26+
[*.exs]
27+
indent_size = 2
28+
29+
[*.zig]
30+
indent_size = 4
31+
32+
[*.ada]
33+
indent_size = 3
34+
35+
[*.adb]
36+
indent_size = 3
37+
38+
[*.ads]
39+
indent_size = 3
40+
41+
[*.hs]
42+
indent_size = 2
43+
44+
[*.res]
45+
indent_size = 2
46+
47+
[*.resi]
48+
indent_size = 2
49+
50+
[*.ncl]
51+
indent_size = 2
52+
53+
[*.rkt]
54+
indent_size = 2
55+
56+
[*.scm]
57+
indent_size = 2
58+
59+
[*.nix]
60+
indent_size = 2
61+
62+
[Justfile]
63+
indent_style = space
64+
indent_size = 4
65+
66+
[justfile]
67+
indent_style = space
68+
indent_size = 4

bridge-nginx-zig/.gitattributes

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# SPDX-License-Identifier: AGPL-3.0-or-later
2+
# RSR-compliant .gitattributes
3+
4+
* text=auto eol=lf
5+
6+
# Source
7+
*.rs text eol=lf diff=rust
8+
*.ex text eol=lf diff=elixir
9+
*.exs text eol=lf diff=elixir
10+
*.jl text eol=lf
11+
*.res text eol=lf
12+
*.resi text eol=lf
13+
*.ada text eol=lf diff=ada
14+
*.adb text eol=lf diff=ada
15+
*.ads text eol=lf diff=ada
16+
*.hs text eol=lf
17+
*.chpl text eol=lf
18+
*.scm text eol=lf
19+
*.ncl text eol=lf
20+
*.nix text eol=lf
21+
22+
# Docs
23+
*.md text eol=lf diff=markdown
24+
*.adoc text eol=lf
25+
*.txt text eol=lf
26+
27+
# Data
28+
*.json text eol=lf
29+
*.yaml text eol=lf
30+
*.yml text eol=lf
31+
*.toml text eol=lf
32+
33+
# Config
34+
.gitignore text eol=lf
35+
.gitattributes text eol=lf
36+
justfile text eol=lf
37+
Makefile text eol=lf
38+
Containerfile text eol=lf
39+
40+
# Scripts
41+
*.sh text eol=lf
42+
43+
# Binary
44+
*.png binary
45+
*.jpg binary
46+
*.gif binary
47+
*.pdf binary
48+
*.woff2 binary
49+
*.zip binary
50+
*.gz binary
51+
52+
# Lock files
53+
Cargo.lock text eol=lf -diff
54+
flake.lock text eol=lf -diff
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# SPDX-License-Identifier: AGPL-3.0-or-later
2+
# CODEOWNERS - Defines code ownership for mandatory review requirements
3+
#
4+
# These owners will be requested for review when someone opens a pull request
5+
# that modifies code that they own. Code owners are automatically requested
6+
# for review when someone opens a pull request that modifies code they own.
7+
#
8+
# Order matters: the last matching pattern takes precedence.
9+
# For more information: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
10+
11+
# Default owners for everything in the repo
12+
* @hyperpolymath
13+
14+
# Security-critical files (Perimeter 1) - require explicit security review
15+
/.github/workflows/ @hyperpolymath
16+
/.github/dependabot.yml @hyperpolymath
17+
/.github/CODEOWNERS @hyperpolymath
18+
/SECURITY.md @hyperpolymath
19+
/.gitignore @hyperpolymath
20+
/.gitattributes @hyperpolymath
21+
/flake.nix @hyperpolymath
22+
/flake.lock @hyperpolymath
23+
24+
# License and legal
25+
/LICENSE* @hyperpolymath
26+
/CONTRIBUTING.md @hyperpolymath
27+
28+
# Source code (Perimeter 1-2)
29+
/src/ @hyperpolymath
30+
/lib/ @hyperpolymath
31+
32+
# Build configuration
33+
/Cargo.toml @hyperpolymath
34+
/Cargo.lock @hyperpolymath
35+
/mix.exs @hyperpolymath
36+
/mix.lock @hyperpolymath
37+
/package.json @hyperpolymath
38+
/package-lock.json @hyperpolymath
39+
40+
# Documentation (Perimeter 2-3) - can have broader ownership
41+
/docs/ @hyperpolymath
42+
/README* @hyperpolymath
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
2+
# Funding platforms for hyperpolymath projects
3+
# See: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository
4+
5+
github: hyperpolymath
6+
ko_fi: hyperpolymath
7+
liberapay: hyperpolymath
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "[Bug]: "
5+
labels: 'bug, priority: unset, triage'
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
2+
# Issue template chooser configuration
3+
4+
blank_issues_enabled: false
5+
6+
contact_links:
7+
- name: Security Vulnerability
8+
url: https://github.com/hyperpolymath/template-repo/security/advisories/new
9+
about: Report security vulnerabilities privately through GitHub Security Advisories
10+
11+
- name: Discussions
12+
url: https://github.com/hyperpolymath/template-repo/discussions
13+
about: Ask questions and discuss ideas in GitHub Discussions
14+
15+
- name: Documentation
16+
url: https://github.com/hyperpolymath/template-repo/wiki
17+
about: Check the wiki for documentation and guides
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
name: Documentation
3+
about: Report unclear, missing, or incorrect documentation
4+
title: "[DOCS]: "
5+
labels: 'documentation, priority: unset, triage'
6+
assignees: ''
7+
8+
---
9+
10+
name: Documentation
11+
description: Report unclear, missing, or incorrect documentation
12+
title: "[Docs]: "
13+
labels: ["documentation", "triage"]
14+
body:
15+
- type: markdown
16+
attributes:
17+
value: |
18+
Help us improve our documentation by reporting issues or gaps.
19+
20+
- type: dropdown
21+
id: type
22+
attributes:
23+
label: Documentation issue type
24+
options:
25+
- Missing (documentation doesn't exist)
26+
- Incorrect (information is wrong)
27+
- Unclear (confusing or hard to follow)
28+
- Outdated (no longer accurate)
29+
- Typo or grammar
30+
validations:
31+
required: true
32+
33+
- type: input
34+
id: location
35+
attributes:
36+
label: Location
37+
description: Where is this documentation? (URL, file path, or section name)
38+
placeholder: README.adoc, section "Installation"
39+
validations:
40+
required: true
41+
42+
- type: textarea
43+
id: description
44+
attributes:
45+
label: Description
46+
description: What's the problem with the current documentation?
47+
placeholder: Describe what's wrong or missing
48+
validations:
49+
required: true
50+
51+
- type: textarea
52+
id: suggestion
53+
attributes:
54+
label: Suggested improvement
55+
description: How should it be fixed or improved?
56+
placeholder: The documentation should say...
57+
validations:
58+
required: false
59+
60+
- type: checkboxes
61+
id: contribution
62+
attributes:
63+
label: Contribution
64+
options:
65+
- label: I would be willing to submit a PR to fix this
66+
required: false
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: 'enhancement, priority: unset, triage'
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

0 commit comments

Comments
 (0)