Morph

Framework Update v0.3.0

Launch Week
2025-04-03
Keita Mitsuhashi
Co-founder, COO

Update of morph_project.yml

Due to updates in cloud platforms, you can now choose your deployment environment from AWS or GCP. Accordingly, the format of the configuration file, morph_project.yml, has also been updated. With the simple assignment of configuration values as shown below, you can customize the cloud provider, virtual memory size of the instance, CPU size, and more.

version: '1'

# Build Settings
build:
    runtime: python3.12
    framework: streamlit
    package_manager: poetry

# Deployment Settings
deployment:
    provider: gcp
    gcp:
        region: us-central1
        memory: "1Gi"
        cpu: 1
        concurrency: 80
        timeout: 300

Frontend Architecture Update

Morph is an ambitious framework that enables you to build full-stack internal applications using Python and Markdown.

In the part of building applications with Markdown, the framework intentionally builds the frontend React application code at runtime. This approach gives it a significant advantage in frontend flexibility compared to frameworks that are driven solely by Python.

In this update, we have reorganized the structure of the frontend-related files and improved compatibility with the existing React ecosystem.

vite.config.ts

Morph uses vite internally. Until version 0.2, vite-related files were handled internally by the framework and could not be customized by the user. With this update, the vite.config.ts file is now placed in the project root, allowing you to take advantage of packages and other resources available in the vite ecosystem.

shadcn/ui

Previously, the Morph Framework distributed pre-made components as an npm package. With the overhaul of the frontend architecture, the distribution method has been changed to an open-source format following shadcn/ui. Additionally, the code generated when initializing a project using the morph new command now includes the initial configuration for shadcn/ui. This change not only simplifies the use of the shadcn/ui component collection but also enables you to utilize many component collections available through the shadcn/ui CLI.

Component Updates

There are also the following updates to the pre-made components! Please be sure to check the documentation for more details.

  • The LLM component has been split into Chat and CanvasChat.
  • A Trigger component has been added.
  • An If component has been added.
  • A Modal component has been added.

Related Articles