Sovereign Intelligence Stack - A pnpm monorepo for HUMMBL projects and packages.
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
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'sget_transformationtool.
See Transformation Validation Protocol for details.
- Node.js: v18 or higher
- pnpm: v9.14.4 (recommended)
# Install pnpm globally (if not already installed)
npm install -g [email protected]
# Install dependencies
pnpm installThe HUMMBL MCP server provides mental model access via Model Context Protocol:
-
search_models- Search Base120 framework for mental modelssearch_models({ query: 'feedback', transformation: 'RE' });
-
get_model_details- Get full definition + system prompt for a modelget_model_details({ id: 'RE8' }); // Returns Bootstrapping model
-
get_transformation- Validate transformation definitions (⚠️ Use this first!)get_transformation({ code: 'RE' }); // Returns: Recursion definition
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.
pnpm dev# MCP Server
pnpm --filter @hummbl/mcp-server dev
# Web App
pnpm --filter @hummbl/web dev
# Workers
pnpm --filter @hummbl/workers devpnpm buildpnpm testAll scripts use Turbo for fast, cached builds:
pnpm dev- Start development mode across all appspnpm build- Build all packages and appspnpm test- Run tests across all workspacespnpm lint- Lint all code with ESLintpnpm type-check- Type check all TypeScript codepnpm format- Format code with Prettierpnpm format:check- Check code formattingpnpm validate- Run lint, type-check, test, and buildpnpm clean- Clean all build artifacts and node_modules
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- Transformation Reference - Quick reference for all 6 transformations
- Validation Protocol - How to validate transformation references
- Training Examples - Correct/incorrect patterns
- Bug Reports - Incident documentation and fixes
- Improvement Proposals - Architecture enhancements
- Create a new directory in
packages/ - Add a
package.json:
{
"name": "@hummbl/your-package",
"version": "1.0.0",
"main": "dist/index.js",
"types": "dist/index.d.ts"
}- The workspace will automatically detect it
- Create a new directory in
apps/ - Add a
package.jsonwith a unique name - Reference shared packages:
{
"dependencies": {
"@hummbl/core": "workspace:*"
}
}- 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
GitHub Actions workflows automatically:
- ✅ Lint code
- ✅ Type check
- ✅ Run tests
- ✅ Build all packages
- 📦 Publish packages to npm with provenance
- Clone the repository
- Run
pnpm install - Create a feature branch
- Make your changes
- Run
pnpm validateto ensure all checks pass - Commit and push (pre-commit hooks will auto-format)
- Open a pull request
UNLICENSED