The Tropical Greenhouse
Where architecture meets aquatic life
A contradictory platform where pastoral warmth meets technical precision. Build systems that bloom.
Getting Started
Welcome to mujun.io -- where the tools are as warm as a cottage kitchen and as sharp as a pruning shear. Let's plant your first project.
npm install @mujun/core
# or with yarn
yarn add @mujun/core
Once installed, initialize your garden with a simple configuration file. The framework will detect your environment and set up sensible defaults -- like a good neighbor who waters your plants while you're away.
import { createGarden } from '@mujun/core';
const garden = createGarden({
name: 'my-first-garden',
soil: 'loamy', // runtime environment
climate: 'temperate', // deployment target
seeds: ['api', 'auth', 'store']
});
garden.grow();
Each seed represents a module in your application. They grow independently but share nutrients through the garden's root system -- our dependency injection framework.
API Reference
The complete field guide to every flower in the mujun garden. Each API method is documented with its native habitat (use case), growing conditions (parameters), and expected yield (return values).
garden.plant(seed, options)
Plants a new module seed into the garden. The seed will germinate based on its type and the garden's current climate configuration.
Promise<Seedling>
garden.harvest(name)
Harvests the output of a fully-grown module. Returns the module's public interface and any produced artifacts.
HarvestResult<T>
garden.prune(pattern)
Removes dead or unused branches from the dependency tree, optimizing the garden's resource consumption.
PruneReport
The Harvest Table
Technical specifications laid out on a farmhouse table. Every number measured, every field documented.
| Module | Version | Size | Dependencies | Status |
|---|---|---|---|---|
@mujun/core |
3.2.1 | 42kb | 0 | Blooming |
@mujun/auth |
2.8.0 | 18kb | 1 | Blooming |
@mujun/store |
4.0.0 | 28kb | 2 | Growing |
@mujun/api |
3.1.4 | 35kb | 1 | Blooming |
@mujun/router |
2.5.0 | 12kb | 0 | Seedling |
@mujun/cache |
1.3.2 | 9kb | 1 | Blooming |
Tutorials
Step-by-step guides written with the patience of a gardener tending seedlings. Each tutorial grows your understanding from seed to harvest.
Planting Your First API
Learn to set up a RESTful API using the garden pattern. We'll cover soil preparation (environment setup), seed selection (module choice), and the first watering (initial deployment).
Authentication Trellises
Build a robust authentication system using mujun's trellis pattern. Like a climbing rose needs support, your auth logic needs structure -- JWT tokens, session management, and OAuth2 flows.
Cross-Pollination: Microservices
When gardens grow large, they need cross-pollination between beds. Learn to connect mujun services using event-driven messaging, shared root systems, and graceful pruning strategies.