WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

hummbl-dev/hummbl-monorepo

Repository files navigation

HUMMBL Monorepo

CI PR Checks

Sovereign Intelligence Stack - A pnpm monorepo for HUMMBL projects and packages.

Structure

hummbl-monorepo/
├── apps/
│   ├── mcp-server/      # Model Context Protocol server with Base120 mental models
│   ├── web/             # Vite + React web application
│   └── workers/         # Cloudflare Workers (D1, KV, R2, Queues)
├── packages/
│   └── core/            # Shared core types and utilities
├── docs/
│   ├── bugs/            # Bug reports and incident documentation
│   ├── examples/        # Training examples and best practices
│   ├── protocols/       # Validation protocols and standards
│   ├── proposals/       # Improvement proposals and RFCs
│   └── reference/       # Reference documentation and quick guides
├── tests/               # Test suites and reproduction scenarios
└── .github/
    └── workflows/       # CI/CD workflows

HUMMBL Base120 Framework

6 Transformations, 120 Mental Models for systematic problem-solving:

Code Transformation Description Models
P Perspective Frame and name what is. Anchor or shift point of view. 20
IN Inversion Reverse assumptions. Examine opposites, edges, negations. 20
CO Composition Combine parts into coherent wholes. 20
DE Decomposition Break systems into components. 20
RE Recursion Apply operations iteratively, outputs→inputs. 20
SY Meta-Systems Systems of systems, coordination, emergence. 20

⚠️ Important: Always validate transformation references using the MCP server's get_transformation tool.
See Transformation Validation Protocol for details.

Getting Started

Prerequisites

  • Node.js: v18 or higher
  • pnpm: v9.14.4 (recommended)

Installation

# Install pnpm globally (if not already installed)
npm install -g [email protected]

# Install dependencies
pnpm install

MCP Server Tools

The HUMMBL MCP server provides mental model access via Model Context Protocol:

Available Tools

  1. search_models - Search Base120 framework for mental models

    search_models({ query: 'feedback', transformation: 'RE' });
  2. get_model_details - Get full definition + system prompt for a model

    get_model_details({ id: 'RE8' }); // Returns Bootstrapping model
  3. get_transformation - Validate transformation definitions (⚠️ Use this first!)

    get_transformation({ code: 'RE' }); // Returns: Recursion definition

Transformation Validation

CRITICAL: Always validate transformation references before use.

// ❌ INCORRECT - Fabricating meaning
'RE stands for Reconstruct...'; // WITHOUT validation

// ✅ CORRECT - Validated first
const transform = await get_transformation({ code: 'RE' });
// Returns: "RE = Recursion: Apply operations iteratively, outputs→inputs"

See Transformation Validation Protocol for complete guidelines.

Development

Run All Apps in Dev Mode

pnpm dev

Run a Specific App

# MCP Server
pnpm --filter @hummbl/mcp-server dev

# Web App
pnpm --filter @hummbl/web dev

# Workers
pnpm --filter @hummbl/workers dev

Build All Packages

pnpm build

Run Tests

pnpm test

Available Scripts

All scripts use Turbo for fast, cached builds:

  • pnpm dev - Start development mode across all apps
  • pnpm build - Build all packages and apps
  • pnpm test - Run tests across all workspaces
  • pnpm lint - Lint all code with ESLint
  • pnpm type-check - Type check all TypeScript code
  • pnpm format - Format code with Prettier
  • pnpm format:check - Check code formatting
  • pnpm validate - Run lint, type-check, test, and build
  • pnpm clean - Clean all build artifacts and node_modules

Workspace Commands

Work with specific packages using pnpm filters:

# Install a dependency in a specific package
pnpm --filter @hummbl/web add react

# Run a script in a specific package
pnpm --filter @hummbl/core build

# Run a script in all packages
pnpm -r build

Documentation

Adding a New Package

  1. Create a new directory in packages/
  2. Add a package.json:
{
  "name": "@hummbl/your-package",
  "version": "1.0.0",
  "main": "dist/index.js",
  "types": "dist/index.d.ts"
}
  1. The workspace will automatically detect it

Adding a New App

  1. Create a new directory in apps/
  2. Add a package.json with a unique name
  3. Reference shared packages:
{
  "dependencies": {
    "@hummbl/core": "workspace:*"
  }
}

Tooling

  • pnpm - Fast, disk space efficient package manager
  • Turbo - High-performance build system with caching
  • TypeScript - Type-safe JavaScript
  • ESLint - Code linting (ESLint v9 flat config)
  • Prettier - Code formatting
  • Husky - Git hooks for pre-commit checks
  • lint-staged - Format staged files before commit

CI/CD

GitHub Actions workflows automatically:

  • ✅ Lint code
  • ✅ Type check
  • ✅ Run tests
  • ✅ Build all packages
  • 📦 Publish packages to npm with provenance

Contributing

  1. Clone the repository
  2. Run pnpm install
  3. Create a feature branch
  4. Make your changes
  5. Run pnpm validate to ensure all checks pass
  6. Commit and push (pre-commit hooks will auto-format)
  7. Open a pull request

License

UNLICENSED

About

monorepo for all HUMMBL Systems - see more at hummbl.io

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published