Skip to content

terwer/siyuan-plugin-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

947 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

中文

Share to web

Your self-hosted notion alternative

Architecture

This repository only contains part of the full product family.

Inside this repo:

  • apps/siyuan: the free edition authoring frontend, implemented as a Siyuan plugin.
  • apps/app: the unified viewer application used by different deployment targets.

Outside this repo:

  • share-pro: the paid/professional authoring frontend.
  • siyuan-note-service: the paid/professional backend service.

So there are two different product flows:

  • Free path: apps/siyuan -> host Siyuan kernel / local public files -> apps/app viewer
  • Pro path: share-pro -> siyuan-note-service -> apps/app viewer

The important distinction is:

  • The free authoring frontend talks directly to the host Siyuan instance.
  • It does not use an application backend owned by this repo during authoring.
  • The backend only exists in the separate pro product line.
flowchart LR
    subgraph Free["Free Distribution Path"]
        A["apps/siyuan<br/>Free Authoring Frontend<br/>(Siyuan Plugin)"]
        B["Host Siyuan Kernel<br/>+ Local Public Files"]
        V["apps/app<br/>Unified Viewer"]
        A --> B --> V
    end

    subgraph Pro["Pro Distribution Path"]
        P["share-pro<br/>Pro Authoring Frontend"]
        S["siyuan-note-service<br/>Pro Backend"]
        V2["apps/app<br/>Unified Viewer"]
        P --> S --> V2
    end
Loading

Startup Via Node provider as debug

# run apps/app from the monorepo root
pnpm dev

Startup Via Node provider

# cp ./startup.example.sh ./startup.sh
# change NUXT_PUBLIC_PROVIDER_URL or use default
./startup.sh

Build Via Node provider

pnpm buildNodeProvider
pnpm packageNodeProvider

Viewer Targets

siyuan

  • Build command: pnpm build -F @terwer/share-pro-app -- --from siyuan
  • Output type: free SPA viewer
  • The generated viewer is distributed under /plugins/siyuan-blog/app/

node / vercel / cloudflare

  • These are server-capable viewer targets

Root Monorepo Commands

# default: start apps/app from the monorepo root
pnpm dev

# explicit alias
pnpm dev:app

# start the Siyuan plugin watcher from the monorepo root
pnpm dev:siyuan

# run every workspace dev task through turbo
pnpm dev:all

More

Click here

About

Your self-hosted notion alternative 您的自部署 notion 替代品。正式版本:https://siyuan.wiki 。 抢先体验版本:https://beta.siyuan.wiki 。 免费版本:https://free.siyuan.wiki 。收费版文档:https://siyuan.wiki 。免费版文档:https://siyuan.wiki/s/20230621001422-xsimx5v

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors