Open-source project
palxiao/poster-design avatar
palxiao/poster-design

poster-design Renders on the Server, Ships Its Own AI Model, and Misplaces an And

Xunpai Design: an image editor and AI-powered online poster design tool similar to Gaoding, for scenarios such as poster generation, e-commerce product images, long article cover images, and video/WeChat cover images. A beautiful online image designer, suitable for various scenarios, making design easier.

5,024 stars759 forksVueAGPL-3.0

At a glance

What is it?
An AGPL Vue poster editor built on a native DOM canvas, with server-side image output through Puppeteer, an embedded SQLite file, PSD import, and a development install that fetches a browser build from a mirror.
Who is it for?
poster-design fits a developer who wants a working poster editor with an admin backend, user accounts and AI cutout on day one, and who is willing to run a Node server alongside the front end, since the same-origin proxy setup and the SQLite file are the price of the out-of-the-box admin panel.
Can I use it commercially?
Yes, with strict conditions. AGPL-3.0 is a network copyleft licence: if people use a modified version over a network, for example as a hosted service, you must offer them its source code under the same licence.
Is it still maintained?
Yes. The repository last received commits 5 days ago.
What is it written in?
Mainly Vue, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • palxiao/poster-design5,024 ★ · +161
Star history
Repository2026-09-182026-11-22
palxiao/poster-design4.9k5k

161 Stars in the last 65 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

One canvas, two renderers, and the server owns the final image

The architectural claim is stated in one line and it is the reason to look at this project. The editor is a native DOM canvas, and image output is a mix of front end and server. Two libraries do the compositing, Puppeteer on the back end and Html2canvas in the browser, with sharp for image processing. What that means in practice is that what you see while editing and what the server finally renders are produced by two different engines. The DOM canvas is what makes dragging, grouping and guides feel direct, since elements are real nodes you can inspect and restyle, and CSS is what makes advanced text effects such as shadows, strokes and gradients cheap. The cost is the seam: a layout that looks right in the editor can render differently through the headless browser, and that is the first class of bug you should expect to chase.

The database is a single SQLite file the server creates for itself

Persistence is embedded rather than configured. The stack note names better-sqlite3 with an embedded SQLite database and gives the path directly: `service/data/poster.db`. Everything the admin panel manages lives there, templates, components, categories, fonts, users, saved works and uploaded images, and the note adds that the table structure migration runs automatically at startup. Automatic migration is convenient in development and worth thinking about in production, because it means the schema moves forward without an explicit step you can review, and there is no documented rollback path in the file. Uploaded files are a separate matter from the database: the upload interface accepts multipart form data for images and font files and saves them to the `static/` directory, which the server then exposes at the `/static/*` path. So a deployment has two pieces of state to back up, the SQLite file and the `static/` directory, and only one of them is transactional.

The install step downloads a Chromium build through a mirror

Local development is four commands, and the first one does more than it looks:

sh
git clone https://github.com/palxiao/poster-design.git
cd poster-design
npm run prepared
npm run serve

The prepared script is not just an install. It runs an install in the root, then changes into the service directory and runs a second install with PUPPETEER_DOWNLOAD_BASE_URL pointed at a mirror for Chrome for Testing binaries. That environment override exists because Puppeteer downloads a browser on install, and on networks where the default host is slow or blocked the install otherwise stalls. It also means your machine ends up with a Chromium download that is not managed by any other tool, and that a locked or air-gapped build needs a local mirror or a pre-seeded cache. The serve script then runs the front end and the service concurrently, and the README warns that if something fails midway you should run the commands separately, which is a fair expectation given that it backgrounds one process and chains into another.

The build script puts a logical and between the variable and the command

Two scripts in the manifest deserve a careful read:

json
    "build": "cross-env NODE_ENV=production && vite build",
    "v-build-hard": "cross-env NODE_ENV=production vue-tsc --noEmit && vite build"

In the first, the logical and sits between the environment assignment and the build command, which makes them two separate shell commands rather than one invocation with an argument. The form that works, as the second line shows, is to name the command directly after the environment assignment and use the and only between stages. There is a second oddity here too: a separate v-build script is character-for-character identical to build, and v-build-hard is the one that adds a type check before bundling. The deployment section instructs you to run `npm run build` at the root and collect the output from `dist/`, so it is worth confirming on your own checkout which of these actually produces that directory before you rely on it. If you add continuous integration, pick the variant that type checks rather than the one the deployment text names.

The admin path and its default credentials are printed in the README

The local development section states the admin route and the account in one line: the admin console is at http://127.0.0.1:5173/admin and the default administrator credentials are `admin / 123456`. Publishing a default password in a README is normal for a development convenience and dangerous if it survives into a deployment. The backend note adds that the admin interfaces for templates, assets, user images and category management are protected by a requireAdmin middleware, which is the right shape, but the credential behind that check is the one printed above. So the first task after deploying is not configuring anything, it is changing that account and confirming the middleware is actually mounted on every admin route rather than only the ones used in the screenshots. The feature list also describes user image ownership in detail, where ordinary users see only their own uploads and administrators see all of them, which is the kind of rule worth testing directly against the database rather than assuming.

The AI cutout runs in the browser and its model ships inside the build

The background removal feature is described as needing no deployment, and the dependency list shows how that is achieved. It uses onnxruntime-web with a lightweight u2netp model of roughly 4.7MB, wrapped in a rembg-web package, and it runs client side rather than calling an external service. The deployment section then explains the packaging consequence: the model in `public/models/` and the onnxruntime runtime in `public/ort/` are copied into the build output and distributed with the repository, so nothing is downloaded at run time. That is a real advantage for a private deployment with no outbound calls, and it has a matching cost, because your artefact now carries a model and a runtime you are responsible for updating and for the licences attached to them. The separate AI text and image generation feature is configured in the admin panel against any OpenAI-format interface, which is server side and does need a key.

Version 2.0 rewrote the project and left the previous one on a branch

The versioning story explains why the documentation feels behind. The README announces the open source 2.0 edition, states that it adds free AI features and a complete admin backend with interfaces compared with the previous version, and directs anyone who wants the older code to a branch named `mit-version`. The documentation links are labelled as the old version, and the note about the API documentation says explicitly that it can still serve as a reference for the shape of some interfaces. So there are two documents in play, one describing what the current code does and one describing what an earlier version did, and the second is linked from the first. No GitHub releases exist for this repository even though the manifest is at 2.0.0, so the manifest is your only version marker, and the last recorded push is 2026-11-01. The author also runs a paid enterprise offering alongside this repository, offering private deployment and source delivery, which is worth knowing if you need support rather than community answers.

Editorial conclusion

poster-design fits a developer who wants a working poster editor with an admin backend, user accounts and AI cutout on day one, and who is willing to run a Node server alongside the front end, since the same-origin proxy setup and the SQLite file are the price of the out-of-the-box admin panel. It does not fit a team that needs a hosted service, because this is the self-hosted edition and the paid tier is a separate arrangement, or one that needs its own image pipeline, since output fidelity depends on a headless Chromium you maintain. Before you build on it, check three things: what the production build script actually runs, since the logical and in it separates the environment assignment from the command, how you will change the documented default admin account before anyone reaches the admin path, and whether shipping the cutout model and runtime inside your build artifact is acceptable to you.

Frequently asked questions

How do I run poster-design locally?

Clone the repository, change into the directory, run npm run prepared and then npm run serve, and open http://127.0.0.1:5173/. The prepared step installs the root dependencies and then installs the service directory with PUPPETEER_DOWNLOAD_BASE_URL pointed at a mirror for Chrome for Testing binaries, and the README suggests running the commands separately if a step fails midway. The admin console is at http://127.0.0.1:5173/admin.

How is poster-design deployed?

Build the front end at the root so the output lands in `dist/`, then install dependencies in the `service` directory and run npm run build && npm run serverstart under pm2, or npm run serve to run it directly. Serve the front end and back end from the same origin and forward `/api`, `/design` and `/static` to the back end port, which defaults to 7001. If they must be on different origins, set VITE_API_URL at build time.

Where does poster-design store its data?

In an embedded SQLite database handled by better-sqlite3, at the path `service/data/poster.db`, holding templates, components, categories, fonts, users, saved works and images, with table migrations run automatically at startup. Uploaded images and fonts are files rather than rows: the upload interface accepts multipart form data and saves to the `static/` directory, which the server exposes at the `/static/*` path.

Does poster-design need an AI service for background removal?

Not for the cutout tool. Background removal runs in the browser using onnxruntime-web with a lightweight u2netp model of about 4.7MB, and the deployment notes say the model in `public/models/` and the runtime in `public/ort/` are copied into the build output and need no extra download. The separate text and image generation features are different: they are configured in the admin panel against any OpenAI-format interface, with the endpoint address, API key, models and image size tiers set there.

Official sources

  1. Issues
  2. License: AGPL-3.0
  3. palxiao/poster-design on GitHub
  4. Project website
  5. README
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/palxiao-poster-design.svg)](https://hysenlabs.com/projects/palxiao-poster-design)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/palxiao-poster-design.svg)](https://hysenlabs.com/projects/palxiao-poster-design)

Was this useful?