8000 GitHub - jalinhabrava/poxter · GitHub
[go: up one dir, main page]

Skip to content
jalinhabravaPublic

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

PoXter

PoXter is a local-first publishing workflow for reviewing week plans, drafting posts, and coordinating Buffer-backed scheduling when explicitly enabled.

What it is

  • A small local app for import, review, dry-run, and scheduling workflows.
  • A SQLite-backed tool that keeps private brand data on your machine by default.
  • An explicit Buffer client for live actions only when you opt in.

What it is not

  • Not a direct X/Twitter automation bot.
  • Not a public multi-tenant service.
  • Not a background scheduler that posts without review.
  • Not a place to store secrets in git.

Features

  • Import week-plan JSON into local drafts.
  • Review draft copy before scheduling.
  • Run dry-run checks without calling Buffer.
  • Resolve brands from demo config or private local config.
  • Keep scheduling and delete actions explicit.

Safety model

  • Local-first SQLite data store by default.
  • BUFFER_API_KEY only needed for live Buffer actions.
  • Dry-run, import, and review stay local.
  • Never commit .env, .local, DB files, generated files, or secrets.

Default public repo uses config/brands.example.json. Private brands stay in $HOME/.config/poxter/brands.local.json or POXTER_BRANDS_FILE. Never commit private brand names, channel IDs, .env, .local, DB files, generated files, or secrets.

Quickstart

For a chat-guided clone setup, ask Codex to configure PoXter and follow the onboarding guide. It prepares the local database, private brands, Buffer connection, channel mappings, and MCP registration. The Buffer key is entered on a private local page.

pnpm install
pnpm prisma generate
pnpm prisma db push
8A50

pnpm prisma:seed
pnpm check:poxter

For local config, create $HOME/.config/poxter/env:

mkdir -p "$HOME/.config/poxter"
cat > "$HOME/.config/poxter/env" <<'EOF2'
DATABASE_URL="file:/absolute/path/to/poxter/dev.db"
POXTER_HOST="0.0.0.0"
POXTER_PORT="3000"
BUFFER_API_KEY=""
POXTER_BRANDS_FILE=""
EOF2

Optional private brands file:

cat > "$HOME/.config/poxter/brands.local.json" <<'EOF2'
{
  "brands": [
    { "slug": "demo-brand", "name": "Demo Brand", "timezone": "Europe/Madrid", "platforms": ["x"] }
  ]
}
EOF2

Brand config

Brand resolution order:

  1. POXTER_BRANDS_FILE
  2. $HOME/.config/poxter/brands.local.json
  3. config/brands.example.json

Use demo brands for public examples. Keep private brands outside repo.

Schedule JSON docs

  • Authoring contract: docs/contracts/schedule-json-authoring.md
  • Example payloads: docs/contracts/*.example.json
  • brand.slug must exist in registry.
  • brand.name must match the configured name for that slug.
  • schema_version must match social-controller.week-plan.v1.

Buffer setup

  • BUFFER_API_KEY is optional unless you run live Buffer actions.
  • Dry-run and review do not call Buffer.
  • Live scheduling and some delete flows require explicit Buffer access.

Use PoXter from an MCP chat

The local MCP server exposes onboarding status, brands, drafts, review, week-plan validation/import, calendar records, and Buffer settings. It uses the same SQLite database and brand configuration as the web app. The web app does not need to be running.

Prepare the installation with pnpm install, pnpm prisma generate, and pnpm prisma db push. The server reads $HOME/.config/poxter/env through the normal local launcher. Start it manually with pnpm mcp:poxter when testing an MCP client.

Register it with Codex using an absolute path to this checkout:

codex mcp add poxter -- bash /absolute/path/to/poxter/scripts/mcp/poxter-mcp.sh

For Codex Desktop on Windows with this checkout in WSL, run the same registration from PowerShell, replacing the WSL path and distribution if needed:

codex mcp add poxter -- C:\Windows\System32\wsl.exe -d Ubuntu-22.04 -- bash /home/your-user/projects/poxter/scripts/mcp/poxter-mcp.sh

Open a new Codex chat after registration so the MCP tools are loaded. The schedule_approved_drafts tool is the only live Buffer scheduling action; review the approved drafts and request scheduling explicitly before using it. The other editing tools change local PoXter data.

License

MIT

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0