Skip to content
المشاريع

حول

Wener Node, Bun, NestJS, React Utils, Hooks & Demos

تطوير الويب والتطبيقات

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
٠
خلال 15 يومًا
٠
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Wode

Wode is Wener's TypeScript monorepo for React console surfaces, reusable UI primitives, service and API tooling, AI/MCP integrations, and protobuf contracts.

The name comes from Wener nODE & DEMO. The repository is organized as a pnpm workspace and uses Just for reusable task recipes and Vite, Vitest, Oxfmt, and Oxlint for development workflows.

Repository layout

Path Responsibility
apps/console The application console and app-specific routes, modules, and foundation code.
apps/server Server application entry points and API integrations.
packages/ui Application-agnostic React primitives built with Base UI and Tailwind CSS.
packages/wener-console Reusable console toolkit, layouts, resource views, loaders, and console integrations.
packages/wener-common Shared filesystem, resource, schema, and server-independent utilities.
packages/wener-server Server helpers, entities, Hono/Nest integrations, ConnectRPC helpers, and NATS modules.
packages/wener-ai AI SDK utilities, agent contracts, and MCP server definitions.
packages/wener-client Clients for external services and provider APIs.
packages/wener-mcps MCP server implementations and audit/runtime support.
packages/wener-mcp-cli CLI for interacting with MCP servers.
packages/wener-feishu-devdocs-mcp Feishu/Lark developer documentation MCP server.
packages/wener-mssql-mcp Microsoft SQL Server MCP server.
packages/wener-api-cli CLI for REST APIs described by OpenAPI specifications.
packages/wener-miniquery Safe SQL-WHERE-like filter expressions for ORM queries.
packages/wener-utils, packages/wener-reaction, packages/system General utilities, React helpers, and SystemJS support.
proto Canonical protobuf source tree. Generated TypeScript is checked into the packages that consume it.

Legacy experiments and the former standalone web/playground applications are not part of the tracked workspace. New demos belong in the component stories or in an application route with an explicit owner.

Requirements

  • Node.js >=24.11.0
  • pnpm 12.4.2
  • Just 1.58.0 or newer
  • Buf CLI for protobuf formatting, linting, and generation
  • Chromium for the package Storybook interaction tests

The required package-manager and runtime versions are declared in the root package.json. Install pnpm with Corepack or through your preferred system package manager, then install dependencies:

corepack enable
pnpm install

For the package Storybook interaction tests, install Chromium once on the development machine:

pnpm -C packages/ui exec playwright install --with-deps chromium

Common commands

Run commands from the repository root unless a command includes -C.

Command Purpose
just workspace::dev Start workspace development tasks in parallel through Turbo.
just workspace::build Build workspace packages and applications through Turbo.
just workspace::test Run workspace tests through Turbo.
just tools::fmt Format TypeScript, TSX, and Markdown with Biome.
just tools::lint Lint with Biome.
just tools::typecheck Run every package typecheck that defines one.
just buf::fmt / just buf::lint Format or lint the canonical protobuf tree.
just buf::gen Generate protobuf clients and normalize generated output.
just ci::check Run the CI baseline: frozen install, protobuf checks, Biome, typechecks, and selected tests.
just ci::test --base origin/main Run the offline CI tests related to changes since a Git base; use just ci::test for the full baseline.

Vite and Vitest own the repository's test workflow. New test files should import test APIs from vitest and run through pnpm exec vitest run or the package script that wraps it.

The root justfile declares domain modules with mod. Package justfiles declare mod package '../../just/package.just' to expose the shared lifecycle under package::. Shared tasks run in the owning package directory, including when invoked from a package subdirectory:

cd packages/wener-common
just package::fmt
just package::typecheck
just build

Package-specific build and publish behavior belongs in packages/<name>/justfile or apps/<name>/justfile. Build recipes can depend directly on (package::swc-build "lib" "true" "none" "true"). Use module names instead of importing recipes into a shared namespace or forwarding through just -f. Run just --list --list-submodules to inspect the available tasks.

Workspace orchestration lives in just/workspace.just, just/ci.just, and the other domain modules. Server tasks live in apps/server/server.just, exposed as server:: from both the root and server app justfiles. Optional machine-local tasks live under local::.

UI package

packages/ui owns the reusable, application-agnostic UI surface. It exposes independent subpaths such as @wener/ui/button, @wener/ui/dialog, @wener/ui/input, and the generic composed families under @wener/ui/components/*. It uses Base UI for stateful behavior and Tailwind CSS/DaisyUI-compatible classes for presentation. Its verification commands are:

pnpm -C packages/ui test
pnpm -C packages/ui typecheck
pnpm -C packages/ui build

Applications consuming @wener/ui must include the package source in their Tailwind scan and own their theme and font configuration. Application-specific routes, authentication, persistence, network calls, and server state stay outside the primitive package.

Server image operations require an explicit entrypoint and are never part of just ci::check:

just server::list
just server::image wener-apis-server
just server::deploy wener-apis-server

The last command requires Docker credentials and a matching apps/server/builds/<entrypoint>/Dockerfile; it is intentionally separate from validation and package builds.

Protobuf workflow

proto/ is the canonical protobuf source directory. Buf configuration is kept at the repository root in buf.yaml and buf.gen.yaml. The buf module always runs at the repository root.

just buf::fmt
just buf::lint
just buf::gen

Generation updates the checked-in clients under packages/common/src/protos. CI runs generation and verifies that the generated tree is clean, so generated changes must be committed together with their source or configuration change.

CI and branches

The GitHub Actions Build workflow runs on main, develop, and pull requests targeting those branches. It installs the declared pnpm, Node.js, and Just versions, runs just ci::check, runs the package UI tests, and builds the package Storybook. The default public branch is main; develop is the protected integration branch.

Pull requests provide their target commit as WODE_TEST_BASE. The CI test wrapper uses Vite+ related testing for ordinary source and Storybook changes, skips documentation-only changes, and falls back to full coverage for dependency, configuration, generated, deleted, or ambiguous inputs. Pushes and manual runs keep the full test baseline.

Before opening a pull request, run at least:

git diff --check
just ci::check
pnpm -C packages/ui test
pnpm -C packages/ui build-storybook:static

The root task entrypoint is just; there is no second root Makefile to keep in sync. Keep protobuf output deterministic, use Vite+ commands for new formatting and tests, and keep reusable UI contracts separate from application-specific behavior.

License

Wode is released under the MIT License.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…