Skip to content
Proyectos

Acerca de

The Storyblok OSS monorepo

Desarrollo web y de aplicaciones

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
0
in 15 days
+1
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original
Storyblok Logo

Monoblok

A monorepo that consolidates all JavaScript projects from the Storyblok organization. This project aims to centralize the development, maintenance, and contribution to Storyblok's ecosystem of SDKs and tools.

Follow @Storyblok Follow @Storyblok

📦 Packages

This monorepo contains the following official Storyblok SDKs and integrations:

Core SDKs

Package Description Version Downloads
@storyblok/js Core JavaScript SDK for Storyblok
storyblok-js-client JavaScript client for Storyblok's Content Delivery API
storyblok-cli A powerful CLI tool to improve the DX of your Storyblok projects.
@storyblok/region-helper A helper package to handle Storyblok APIs in different regions.

Framework Integrations

Package Description Version Downloads
@storyblok/react React SDK for Storyblok
@storyblok/vue Vue SDK for Storyblok
@storyblok/nuxt Nuxt SDK for Storyblok
@storyblok/svelte Svelte SDK for Storyblok
@storyblok/astro Astro SDK for Storyblok

Utilities

Package Description Version Downloads
@storyblok/richtext Rich Text Renderer for Storyblok

🚧 Migration Status

This repository represents an ongoing migration from a polyrepo structure to a unified monorepo. While we're actively working on this transition, please note:

  • All new development should be done in this repository
  • Existing packages are being migrated gradually
  • Some packages may still be in their original repositories during the transition
  • We're working to ensure a smooth migration with minimal disruption

🛠️ Development

Prerequisites

  • Node.js (v18 or later)
  • pnpm (v10 or later)
  • Git

Setup

  1. Clone the repository:

    git clone https://github.com/storyblok/monoblok.git
    cd monoblok
    
  2. Install dependencies:

    pnpm install
    

Package management

This repository uses pnpm workspaces (configured in the root package.json) for dependency management.

# Install dependencies
pnpm install

# Add a dependency to a specific package
pnpm add <package> --filter @storyblok/react

# Run a script in a specific package
pnpm --filter @storyblok/react <script>

Tooling

Packages share a unified toolchain via Vite+ (vp CLI):

  • vp pack / vp build for bundling (tsdown / Vite under the hood)
  • vp test for testing (Vitest)
  • vp lint for linting (Oxlint via @storyblok/lint-config)
  • vp fmt for formatting (Oxfmt)

Framework-specific builders (Angular CLI, Nuxt module builder, svelte-package, Redocly) are kept where Vite+ doesn't apply.

Every package exposes the same canonical script names. See AGENTS.md for the full table.

Common commands

NX orchestrates tasks across the monorepo with caching and affected-only execution:

# Build all packages (the blueprints are left out, CI builds the affected ones)
pnpm build

# Build a specific package
pnpm nx build @storyblok/react

# Run all tests (or affected only)
pnpm test
pnpm nx affected --target=test

# Lint, format, type-check the whole repo
pnpm lint
pnpm format
pnpm test:types

# Watch-build a single package while developing
pnpm --filter @storyblok/react dev

# Re-run a package's tests on change
pnpm --filter @storyblok/migrations test:watch

# Show the dependency graph
pnpm nx graph

For more advanced NX usage:

Repository administration

For repository administrators, the internal monoblok CLI helps manage the monorepo (license checks, migration helpers, etc.). See tools/monoblok for details.

📄 Versioning

The packages in this repository follow Semantic Versioning. Before you upgrade a package to a new major version, read its migration guide in the Storyblok documentation.

📄 Contributing

We welcome contributions! Please see our Contributing Guide for details on:

  • Code style and standards
  • Pull request process
  • Development workflow
  • Testing requirements

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🔗 Links

Explorar proyectos relacionados

Cargando…