Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

RFC: Use WordPress as your app's data store

オープン
#2,679 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
graphql, json, typescript, wordpress
領域
backend, database

調査の方向性

This is an RFC describing a multi-stage data store; start by reading the linked storage and REST work in issue #2674. The RFC lays out follow-on work for collection registration, WPGraphQL support, and a JS client, but does not identify implementation files or tests. Before taking it on, check the project discussion for a decided scope; done would need to be defined for one specific stage.

索引モデルが issue の本文から書いたものです。

説明

[Area] Core [Area] WordPress Plugin [Type] Feature

Idea

Faustabase (working name) is a faster way to give your app a database, using the WordPress site you already have. Turn on FaustWP's document store, save JSON from your app, and never silently lose a write.

flowchart TD
  App["Your app"] -->|REST or GraphQL| WP["FaustWP<br/>checks version"]
  WP --> T[("wp_faust_<br/>documents")]
  Admin["wp-admin<br/>Tools screen"] -.->|read-only| T

Why

  • You don't need a second database like Firebase or Supabase, or a custom plugin.
  • Normal WordPress and WPGraphQL saves let the last write win. Faustabase rejects a stale write with a 409.
  • Site owners can see the data in wp-admin, and WordPress users and roles control access.

Decided

  • Documents live in one dedicated table, grouped into collections like Firestore. History can be added later without migrating data.

  • REST and WPGraphQL can both get, update, delete, list and add documents, with the same version check.

  • Collections are admin-only until you register them. Registering a collection sets its access mode and a JSON Schema that WordPress validates, which is how a form or waitlist accepts public writes:

    register_faust_collection( 'waitlist', array(
    	'access' => 'public-create', // or 'admin' (default) or 'owner'
    	'schema' => array( 'type' => 'object', 'required' => array( 'email' ) ),
    ) );
    
  • A JS client for app servers would look roughly like this:

    const ref = store.collection('preferences').doc('user-42');
    await ref.update((d) => ({ ...d, theme: 'dark' })); // retries on conflict
    

Plan

  1. Storage and REST: #2674.
  2. register_faust_collection with access modes and schemas.
  3. WPGraphQL support.
  4. The JS client.

Realtime, complex queries and high write volume are out of scope.

主要言語
TypeScript
スター
1.6k
フォーク
157
平均マージ
1日 5時間
マージ済み PR(30日)
126

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wpengine/faustjs のほかの issue

wpengine/faustjs の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。