Skip to content
AHMADALIPARRPublic

About

OpenGrok

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

438 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

OpenGrok

OpenGrok is a production repository. Rust is the primary language (inference, ledger, accounting, PyTorch bridge). TypeScript in src/ is the UI layer only. Jev is the default evaluation model.

Repository: https://github.com/AHMADALIPARR/OpenGrok
License: SNAPKITTY OPAQUE SOURCE LICENSE v1.0 (LICENSE)
Where files belong: docs/INDEX.md

Demo

Grok Bots local GGUF end-to-end

136 turns/sec Β· 20 turns Β· 146 ms Β· 5 ms avg Β· 334 tokens Β· no cloud fallback

Architecture

flowchart LR
  UI[src/ app builder] --> Ask[askGrok]
  Ask -->|under budget| Cloud[xAI API]
  Ask -->|over threshold| Local[bots/ local GGUF]
  Ask -->|evaluate| Jev[jev/ default eval]
  Native[native/ CUDA + Rust + ASM] --> FP[fixed-point INFER4]
  KSB[ksb-plus/ codec] --> Ledger[ledger/ holographic]
  Skills[skills/ contracts] --> Bots[bots/ Grok Bots]
  Ports[ports/ TermHive] --> CLI[Elixir CLI]
Loading

Repository map

Mark Path Purpose
β–Έ .grok Skills and references used by the app-builder agent.
βœ“ AGENTS.md Root file.
βœ“ LICENSE Root file.
βœ“ README.md Root file.
β–Έ archive Review material only. Nothing here is required to build.
β–Έ attachments Conversation attachments preserved for review.
βœ“ attention_tc.cu Root file.
β–Έ bots Grok Bots GGUF support, microagent notes, local demo and benchmark.
β–Έ docs Section map and cross-cutting notes.
β–Έ emacs Emacs VM and Helm starter configs.
βœ“ eslint.config.mjs Root file.
βœ“ fixed-point Root file.
β–Έ jev Default evaluation model. NRSE engine, reduced GGUF, REPL.
β–Έ ksb-plus K-language binary serialization. Layer 0 envelope, Layer 1 tables, codec verification.
β–Έ ledger Holographic append-only ledger for tick-data and order books.
βœ“ main.rs Root file.
β–Έ migrations Database migrations applied by npm run db:migrate.
β–Έ native CUDA Tensor Core kernels, Rust FFI, MACROGROK assembly, fixed-point engine.
βœ“ package-lock.json Root file.
βœ“ package.json Root file.
β–Έ ports Ports of external systems (TermHive Elixir/PHP messaging).
β–Έ public Static assets.
β–Έ screenshots Captured UI and demo images.
β–Έ scripts Build, migrate, preview, and maintenance scripts.
β–Έ server Server entry and server-only routes.
β–Έ skills Product skill contracts. Unified index under skills/all/.
β–Έ src App builder UI and libraries (TanStack Start, React). Includes askGrok and token accounting.
βœ“ tavily.rs Root file.
βœ“ tma.ptx Root file.
βœ“ transformer.rs Root file.
βœ“ tsconfig.json Root file.
βœ“ vercel.json Root file.
βœ“ vite.config.ts Root file.

Full tree

βœ“ file Β· β–Έ directory

βœ“ .gitignore

β–Έ .grok/

Skills and references used by the app-builder agent.

βœ“ `README.md`
βœ“ `app-env.json`
β–Έ `references`
  βœ“ `browser-qa.md`
  βœ“ `data-and-auth.md`
  βœ“ `deploy-target.md`
  βœ“ `generated-art.md`
  βœ“ `hibernate-revive.md`
  βœ“ `scaffold.md`
β–Έ `skills`
  β–Έ `auth`
    βœ“ `SKILL.md`
    β–Έ `references`
      βœ“ `grok-identity.md`
      βœ“ `per-user-data.md`
      βœ“ `prewired-and-env.md`
      βœ“ `session-ui.md`
      βœ“ `sign-in-methods.md`
      βœ“ `wiring.md`
  β–Έ `building-games`
    βœ“ `SKILL.md`
    β–Έ `references`
      βœ“ `3d-libs.md`
      βœ“ `ai-pathfinding.md`
      βœ“ `audio.md`
      βœ“ `babylon.md`
      βœ“ `collision-physics.md`
      βœ“ `ecs-architecture.md`
      βœ“ `game-feel-juice.md`
      β–Έ `genres`
        βœ“ `board-card-chess.md`
        βœ“ `endless-runner.md`
        βœ“ `fps.md`
        βœ“ `platformer-2d.md`
        βœ“ `puzzle-match3-tetris.md`
        βœ“ `racing-kart.md`
        βœ“ `topdown-twin-stick.md`
        βœ“ `tower-defense.md`
        βœ“ `voxel-minecraft.md`
      βœ“ `input.md`
      βœ“ `phaser.md`
      βœ“ `procedural-generation.md`
      βœ“ `save-persistence.md`
      βœ“ `threejs-foundational.md`
  β–Έ `controls`
    βœ“ `SKILL.md`
  β–Έ `design-ui`
    βœ“ `SKILL.md`
    β–Έ `references`
      βœ“ `animations.md`
      βœ“ `performance.md`
      βœ“ `refined-ui.md`
      βœ“ `surfaces.md`
      βœ“ `typography.md`
  β–Έ `game-animation-frames`
    βœ“ `SKILL.md`
  β–Έ `game-asset-core`
    βœ“ `SKILL.md`
  β–Έ `game-character-consistency`
    βœ“ `SKILL.md`
  β–Έ `game-tilesets`
    βœ“ `SKILL.md`
  β–Έ `game-ui-icons`
    βœ“ `SKILL.md`
  β–Έ `generate2dmap`
    βœ“ `LICENSE`
    βœ“ `SKILL.md`
    βœ“ `SOURCE.md`
    β–Έ `references`
      βœ“ `deliverables.md`
      βœ“ `layered-map-contract.md`
      βœ“ `map-strategies.md`
      βœ“ `object-production-gate.md`
      βœ“ `pipeline.md`
      βœ“ `prop-pack-contract.md`
      βœ“ `side-scroll-stages.md`
    β–Έ `scripts`
      βœ“ `compose_layered_preview.py`
      βœ“ `extract_prop_pack.py`
  β–Έ `generate2dsprite`
    βœ“ `LICENSE`
    βœ“ `SKILL.md`
    βœ“ `SOURCE.md`
    β–Έ `references`
      βœ“ `modes.md`
      βœ“ `prompt-rules.md`
    β–Έ `scripts`
      βœ“ `generate2dsprite.py`
      βœ“ `make_layout_guide.py`
  β–Έ `imagine-grok-build`
    βœ“ `SKILL.md`
  β–Έ `multiplayer-p2p`
    βœ“ `SKILL.md`
    β–Έ `references`
      βœ“ `react-binding.md`
      βœ“ `signaling-relay.md`
  β–Έ `neon`
    βœ“ `SKILL.md`
  β–Έ `og`
    βœ“ `SKILL.md`
    β–Έ `references`
      βœ“ `brand-pass.md`
      βœ“ `custom-card.md`
      βœ“ `favicon-and-icons.md`
      βœ“ `og-type-contract.md`
      βœ“ `placeholder-card.md`
      βœ“ `x-banner.md`
  β–Έ `threejs`
    βœ“ `SKILL.md`
    β–Έ `references`
      βœ“ `llms-full.txt`
  β–Έ `video2dsprite`
    βœ“ `LICENSE`
    βœ“ `SKILL.md`
    βœ“ `SOURCE.md`
    β–Έ `references`
      βœ“ `pipeline.md`
      βœ“ `prompt-rules.md`
    β–Έ `scripts`
      βœ“ `video2dsprite.py`
  β–Έ `xai-api`
    βœ“ `SKILL.md`
βœ“ `status`

βœ“ .prettierrc βœ“ AGENTS.md βœ“ LICENSE βœ“ README.md

β–Έ archive/

Review material only. Nothing here is required to build.

βœ“ `README.md`
β–Έ `root-stubs`
  βœ“ `README.md`
  βœ“ `attention.rs`
  βœ“ `attention_tc.cu`
  βœ“ `fixed-point`
  βœ“ `main.rs`
  βœ“ `memory.rs`
  βœ“ `tavily.rs`
  βœ“ `tma.ptx`
  βœ“ `transformer.rs`

β–Έ attachments/

Conversation attachments preserved for review.

βœ“ `Pasted Text.txt`

βœ“ attention_tc.cu

β–Έ bots/

Grok Bots GGUF support, microagent notes, local demo and benchmark.

βœ“ `README.md`
β–Έ `demo`
  βœ“ `README.md`
  βœ“ `gguf-demo.png`
  βœ“ `run.sh`
  βœ“ `server.mjs`
βœ“ `example.env`
βœ“ `microagent.md`
βœ“ `repl.sh`
β–Έ `skills`
  β–Έ `gguf-local`
    βœ“ `SKILL.md`

β–Έ docs/

Section map and cross-cutting notes.

βœ“ `INDEX.md`

β–Έ emacs/

Emacs VM and Helm starter configs.

βœ“ `README.md`
β–Έ `helm`
  βœ“ `README.md`
β–Έ `vm`
  βœ“ `README.md`
  βœ“ `example.vm`

βœ“ eslint.config.mjs βœ“ fixed-point

β–Έ ksb-plus/

K-language binary serialization. Layer 0 envelope, Layer 1 tables, codec verification.

βœ“ `.gitignore`
βœ“ `LICENSE`
βœ“ `README.md`
β–Έ `docs`
  βœ“ `binary-format.md`
  βœ“ `layer1-tables.md`
  βœ“ `limitations.md`
β–Έ `src`
  βœ“ `binary.k`
  βœ“ `codec.k`
  βœ“ `table.k`
β–Έ `t`
  βœ“ `bench_codec.k`
  βœ“ `run.sh`
  βœ“ `t_binary.k`
  βœ“ `verify_codec.k`

β–Έ ledger/

Holographic append-only ledger for tick-data and order books.

βœ“ `Cargo.toml`
βœ“ `README.md`
β–Έ `src`
  βœ“ `ledger.rs`
  βœ“ `main.rs`

βœ“ main.rs

β–Έ migrations/

Database migrations applied by npm run db:migrate.

βœ“ `README.md`
β–Έ `auth`
  βœ“ `0001_auth.sql`

β–Έ native/

CUDA Tensor Core kernels, Rust FFI, MACROGROK assembly, fixed-point engine.

βœ“ `README.md`
β–Έ `asm`
  βœ“ `infer4.asm`
β–Έ `cuda`
  βœ“ `check_ptx.sh`
  βœ“ `matrix_mul.cu`
  βœ“ `tensor_core_attention.cu`
  βœ“ `tma.ptx`
β–Έ `fixed_point`
  βœ“ `Cargo.toml`
  βœ“ `README.md`
  β–Έ `examples`
    βœ“ `demo.c`
  β–Έ `include`
    βœ“ `macrogrok_fixed.h`
  β–Έ `src`
    βœ“ `fixed_point.rs`
β–Έ `rust`
  βœ“ `attention.rs`
  βœ“ `fixed_point.rs`
  βœ“ `full_demo.rs`
  βœ“ `lib.rs`
  βœ“ `main.rs`
  βœ“ `memory.rs`
  βœ“ `tavily.rs`
  βœ“ `transformer.rs`

βœ“ package-lock.json βœ“ package.json

β–Έ ports/

Ports of external systems (TermHive Elixir/PHP messaging).

βœ“ `README.md`
β–Έ `termhive-messaging`
  βœ“ `README.md`
  β–Έ `elixir`
    βœ“ `README.md`
    β–Έ `lib`
      β–Έ `termhive`
        βœ“ `activity.ex`
        βœ“ `agent_registry.ex`
        βœ“ `application.ex`
        βœ“ `cli.ex`
        βœ“ `message_router.ex`
        βœ“ `messaging.ex`
        βœ“ `protocol.ex`
    βœ“ `mix.exs`
  β–Έ `php`
    βœ“ `README.md`
    β–Έ `src`
      βœ“ `Messaging.php`

β–Έ public/

Static assets.

βœ“ `README.md`
β–Έ `__grok`
  βœ“ `icon-180.png`
  β–Έ `install`
    β–Έ `assets`
      β–Έ `homescreen`
        βœ“ `glass-puzzle.svg`
        βœ“ `glass-share.svg`
        βœ“ `logo-grok.svg`
        βœ“ `ob-ipad.png`
        βœ“ `ob-phone.png`
        βœ“ `plus.svg`
    βœ“ `styles.css`

β–Έ screenshots/

Captured UI and demo images.

βœ“ `.gitkeep`

β–Έ scripts/

Build, migrate, preview, and maintenance scripts.

βœ“ `README.md`
βœ“ `app-env-plugin.mjs`
βœ“ `brand-check.mjs`
βœ“ `brand-check.test.mjs`
βœ“ `browser-guard.mjs`
βœ“ `browser-smoke-verdict.mjs`
βœ“ `browser-smoke-verdict.test.mjs`
βœ“ `browser-smoke.mjs`
βœ“ `check-auth-invariant.mjs`
βœ“ `check-auth-invariant.test.mjs`
βœ“ `grok-pwa-plugin.mjs`
βœ“ `grok-pwa-plugin.test.mjs`
βœ“ `grok-pwa-shared.d.mts`
βœ“ `grok-pwa-shared.mjs`
βœ“ `install-page.html`
βœ“ `migrate.mjs`
βœ“ `migration-plan.mjs`
βœ“ `migration-plan.test.mjs`
βœ“ `preview-thumbnail.mjs`
βœ“ `preview.mjs`
βœ“ `preview.test.mjs`
βœ“ `sign-out-plan.mjs`
βœ“ `sign-out-plan.test.mjs`
βœ“ `with-app-env.mjs`
βœ“ `with-app-env.test.mjs`
βœ“ `write-atomic.mjs`
βœ“ `write-atomic.test.mjs`

β–Έ server/

Server entry and server-only routes.

βœ“ `README.md`
β–Έ `middleware`
  βœ“ `grok-pwa.ts`
βœ“ `virtual-grok-og-identity.d.ts`

β–Έ skills/

Product skill contracts. Unified index under skills/all/.

βœ“ `README.md`
β–Έ `all`
  βœ“ `README.md`
  β–Έ `bots`
    β–Έ `gguf-local`
      βœ“ `SKILL.md`
  β–Έ `platform`
    β–Έ `auth`
      βœ“ `SKILL.md`
    β–Έ `building-games`
      βœ“ `SKILL.md`
    β–Έ `controls`
      βœ“ `SKILL.md`
    β–Έ `design-ui`
      βœ“ `SKILL.md`
    β–Έ `game-animation-frames`
      βœ“ `SKILL.md`
    β–Έ `game-asset-core`
      βœ“ `SKILL.md`
    β–Έ `game-character-consistency`
      βœ“ `SKILL.md`
    β–Έ `game-tilesets`
      βœ“ `SKILL.md`
    β–Έ `game-ui-icons`
      βœ“ `SKILL.md`
    β–Έ `generate2dmap`
      βœ“ `SKILL.md`
    β–Έ `generate2dsprite`
      βœ“ `SKILL.md`
    β–Έ `imagine-grok-build`
      βœ“ `SKILL.md`
    β–Έ `multiplayer-p2p`
      βœ“ `SKILL.md`
    β–Έ `neon`
      βœ“ `SKILL.md`
    β–Έ `og`
      βœ“ `SKILL.md`
    β–Έ `threejs`
      βœ“ `SKILL.md`
    β–Έ `video2dsprite`
      βœ“ `SKILL.md`
    β–Έ `xai-api`
      βœ“ `SKILL.md`
  β–Έ `product`
    β–Έ `cache-guard`
      βœ“ `SKILL.md`
    β–Έ `codeart2d`
      βœ“ `SKILL.md`
    β–Έ `generate2dmap`
      βœ“ `SKILL.md`
    β–Έ `generate2dmedia`
      βœ“ `SKILL.md`
    β–Έ `generate2dsprite`
      βœ“ `SKILL.md`
    β–Έ `math-skills`
      βœ“ `SKILL.md`
    β–Έ `personas`
      β–Έ `prehool`
        βœ“ `SKILL.md`
    β–Έ `video2dsprite`
      βœ“ `SKILL.md`
β–Έ `cache-guard`
  βœ“ `SKILL.md`
  β–Έ `references`
    βœ“ `mechanism.md`
  β–Έ `scripts`
    βœ“ `audit-session.mjs`
β–Έ `codeart2d`
  βœ“ `SKILL.md`
β–Έ `generate2dmap`
  βœ“ `SKILL.md`
β–Έ `generate2dmedia`
  βœ“ `SKILL.md`
β–Έ `generate2dsprite`
  βœ“ `SKILL.md`
β–Έ `math-skills`
  βœ“ `MATH_SKILLS.md`
  βœ“ `SKILL.md`
  βœ“ `math_skills_master_seal.json`
β–Έ `personas`
  β–Έ `prehool`
    βœ“ `PERSONA.md`
    βœ“ `SKILL.md`
β–Έ `video2dsprite`
  βœ“ `SKILL.md`

β–Έ src/

App builder UI and libraries (TanStack Start, React). Includes askGrok and token accounting.

βœ“ `README.md`
β–Έ `components`
  βœ“ `preview-host-bridge.tsx`
β–Έ `lib`
  β–Έ `ai`
    βœ“ `accounting.test.ts`
    βœ“ `ask-grok.server.ts`
    βœ“ `ask-grok.test.ts`
    βœ“ `ask-with-accounting.ts`
    βœ“ `token-accounting.ts`
  β–Έ `app-data`
    βœ“ `app-data.test.ts`
    βœ“ `client.server.ts`
    βœ“ `errors.ts`
    βœ“ `index.ts`
    βœ“ `login.ts`
    βœ“ `readiness-schedule.test.ts`
    βœ“ `readiness-schedule.ts`
    βœ“ `readiness.ts`
    βœ“ `server-only.ts`
    βœ“ `types.ts`
    βœ“ `use-connector-readiness.ts`
  β–Έ `auth`
    βœ“ `client.ts`
    βœ“ `email-password.ts`
    βœ“ `gate-identity.server.ts`
    βœ“ `gate-identity.test.ts`
    βœ“ `gate-session-marker.ts`
    βœ“ `gate-session.server.ts`
    βœ“ `gates.tsx`
    βœ“ `isolation.server.ts`
    βœ“ `middleware.ts`
    βœ“ `pglite-dialect.ts`
    βœ“ `popup.server.ts`
    βœ“ `preview.ts`
    βœ“ `provider.tsx`
    βœ“ `providers.ts`
    βœ“ `server.ts`
    βœ“ `sign-in-gate.test.ts`
    βœ“ `sign-in-gate.ts`
    βœ“ `use-current-user.ts`
    βœ“ `verify.server.ts`
  βœ“ `db.ts`
  βœ“ `env.server.ts`
  βœ“ `error-component.tsx`
  β–Έ `multiplayer`
    βœ“ `index.ts`
    βœ“ `p2p.ts`
  βœ“ `preview-embedder-origin.ts`
  βœ“ `preview-host-bridge.ts`
  βœ“ `preview-path-prefix.test.ts`
  βœ“ `preview-path-prefix.ts`

βœ“ tavily.rs βœ“ tma.ptx βœ“ transformer.rs βœ“ tsconfig.json βœ“ vercel.json βœ“ vite.config.ts

Jev

Default evaluation model. Non-regressive semantic engine plus reduced GGUF. Returns a byte span or [-1, -1]. Does not generate prose.

Path Purpose
jev/engine/ NRSE. Perl. locate / audit / extract.
jev/models/jev.gguf Evaluation artifact.
jev/repl/repl.py Read-Eval-Print loop.
jev/eval-default.json Declares Jev as the default.
python3 jev/repl/repl.py --demo
python3 jev/repl/repl.py
perl jev/engine/nrse.pl locate jev/engine/tests/fixture.txt balance

Quick start

npm install
npm run dev          # http://localhost:8080
npm test
npm run typecheck

Set XAI_API_KEY for cloud askGrok. Over the free-tier token threshold the call hands off to the local GGUF endpoint (OPENAI_BASE_URL).

License

SNAPKITTY OPAQUE SOURCE LICENSE v1.0. See LICENSE.

Photos

Grok Bots local GGUF end-to-end

136 turns/sec Β· 20 turns Β· 146 ms Β· 5 ms avg Β· 334 tokens Β· no cloud fallback

icon phone
App icon Install phone
ipad logo
Install iPad Logo

About

OpenGrok

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages