How to Connect Your Lovable App to Ghost for Posts, Members and Newsletters
Ghost is one of the nicest places to write. The editor is calm, newsletters are built in, and paid memberships work out of the box. The catch is that your Ghost site has to look like a Ghost theme, and every signup form, dashboard or custom page has to live inside it. If you want your content to show up inside an app you designed yourself, you used to need a developer and a weekend of API work.
Lovable now has a Ghost connector that removes most of that work. Your writers keep publishing in Ghost, and your Lovable app reads, creates and publishes content, and manages members on the same site. In this guide I'll explain what the connector can do, what you need before you start, how to set it up without leaking your keys, and where its limits are.
What the Ghost connector actually gives you
Think of it as a secure bridge between one Ghost site and your Lovable projects. Once it's in place, your app can:
- Read content. List posts and pages with their tags and authors, including drafts and scheduled posts, not just the published ones.
- Write content. Create new posts and pages, update existing ones, and publish a draft when you say so.
- Work with tags. Read the tags you already use and manage them.
- Handle members. Look someone up by email, add a new member, and subscribe them to a newsletter.
- Read your membership setup. See your newsletters, your paid tiers and any offers (discounts) attached to them.
- Upload images. Send an image to your Ghost site and use it as a post's feature image or inside the article.
- Listen for changes. Register a webhook so Ghost pings your app when a post is published or a member joins.
The same connection works in three places: in Lovable's standalone Chats, in your project chat while you build, and in the app you publish. You set it up once and reuse it.
Six apps you could build this week
Here are practical ideas, each with a prompt you can paste straight into Lovable.
1. Your blog, in your own design
Prompt: "Use Ghost and build a blog that lists my published posts with their tags and authors and shows each post on its own page."
Your app pulls published articles from Ghost and renders them with your brand, layout and components. Writers never leave Ghost.
2. A newsletter signup page
Prompt: "Use Ghost and build a landing page with a signup form that adds each person as a member subscribed to my weekly newsletter."
Great for product launches or lead magnets. Every signup lands in Ghost as a real member on the newsletter you picked.
3. Guest post submissions
Prompt: "Use Ghost and build a form where contributors submit an article that is saved as a draft post on my Ghost site."
Contributors never get Ghost access. Their work shows up as drafts, and your editors review and publish as usual.
4. An editorial dashboard
Prompt: "Use Ghost and build a dashboard that shows my draft, scheduled, and published posts with a button to publish a draft."
One screen for your content pipeline, with a single click to move a draft live.
5. A members lookup tool
Prompt: "Use Ghost and build an admin page that lists my members with their labels and lets me search for a member by email."
Useful for support teams who need answers fast without logging into Ghost Admin.
6. A "What's new" feed that stays fresh
Prompt: "Use Ghost and build a What's new page that updates when I publish a post on my Ghost site."
The app registers a webhook, and Ghost tells it the moment something new goes out, so the page refreshes on its own.
Before you start: what you need
- A Ghost site served over HTTPS. Self-hosted works, and so does Ghost(Pro), as long as your plan includes custom integrations. The Ghost(Pro) Starter plan does not, so you would need to upgrade.
- Owner or Administrator access on that Ghost site, because only those roles can create integrations.
- An Admin API key from a custom integration (I'll show you how to get it below).
- Permission to create connections in your Lovable workspace. On Free and Pro plans this is open by default. On Business and Enterprise, workspace admins control it, and some Enterprise workspaces turn it off entirely until an admin enables it under Connectors, Admin settings, App + chat connectors.
One note on cost: everything the connector does runs against your own Ghost site. Your Ghost(Pro) subscription or hosting bill stays with Ghost or your host. Lovable doesn't add a fee on top for Ghost requests.
Step 1: Create an Admin API key in Ghost
Ghost doesn't offer a "Sign in with Ghost" button for outside apps. Instead, you create a custom integration, which is Ghost's way of handing a specific app its own set of keys.
- Sign in to Ghost Admin for the site you want to connect.
- Open Settings, then Integrations.
- Click Add custom integration and give it a clear name such as
Lovable integration, so you know later what it's for. - Copy the Admin API key. You'll also see a Content API key on the same screen. Ignore it, Lovable only accepts the Admin key.
- Write down your Admin URL: the address you use to open Ghost Admin, minus the
/ghostat the end. If you're on Ghost(Pro), use yourghost.ioaddress (for examplehttps://your-site.ghost.io), even if readers see a custom domain.
Treat this key like a password. Anyone holding it can edit your content and members, so don't paste it into a prompt, a public repo or a shared doc.
Step 2: Add the connection in Lovable
- Open Connectors from your Lovable dashboard and choose Ghost.
- Click Connect. The form has three sections: Details, Configure connection and Sharing.
- Under Details, keep the suggested name or rename it. If you plan to have more than one site, something like "Ghost production" helps.
- Under Configure connection, enter the Admin URL (it must start with
https://) and paste the full Admin API key, including the colon in the middle. Double check the URL: it can't be changed later. A different site means a new connection. - Under Sharing, the connection is private by default. Click Share with others to add teammates by email, or invite the whole workspace.
- Click Connect. Lovable tests the key against your Ghost site before saving, so a typo gets caught right away.
After that, anyone building in a project can simply ask Lovable in chat to link the project to Ghost, as long as the sharing rules allow them to use it.
Why your key stays safe
Your app never holds the Admin API key. Requests travel through Lovable's connector gateway, which adds the Ghost credentials on the server side. Visitors to your published app can't open the browser tools and find your key, because it simply isn't there.
This also means Lovable will put Ghost calls in server-side functions rather than in the page itself. That's the right pattern, and it's worth keeping if you ever edit the code by hand.
Running more than one Ghost site
Each connection points to exactly one site with one key. If you have a staging site and a live site, or several publications, create a separate connection for each and link the right one to each project. This keeps test drafts out of your real publication.
What the connector can't do
- No Content API. You can't use a Content API key. That's not a real loss: the Admin API returns the same posts, pages, tags and authors.
- No plain HTTP. The site must use HTTPS.
- No "who is signed in". The connection belongs to an integration, not a staff account, so it can't tell you which Ghost staff member is logged in.
- No webhook list. Your app can create, update and delete webhooks, but Ghost won't list existing ones. Ask Lovable to store each webhook's ID when it creates one, or you won't be able to clean it up later.
- No per-reader Ghost login. One connection equals one site shared by every linked project. If you need each visitor to sign in with their own account, use your app's own login instead.
Practical tips from building with it
- Cache your content. Blog posts don't change every second. Ask Lovable to cache the post list for a few minutes, and use a webhook to refresh it on publish. Your pages load faster and your Ghost site gets fewer requests.
- Be careful with newsletters. Publishing a post with a newsletter attached emails real subscribers. Test with a draft first, and only send on purpose.
- Start with drafts. For submission forms or AI-assisted writing, always save as draft and let a human hit publish.
- Use labels on members. Tag signups by source (for example "launch-page") so you know which page grows your list.
When something stops working
If someone deletes the custom integration in Ghost, or regenerates its Admin API key, your app will start getting errors. The fix is quick: the person who created the connection opens it in Connectors, clicks Edit next to the Admin API key, pastes the new key from Ghost, and clicks Update. All linked projects pick it up.
Managing or removing the connection
Open Connectors, pick Ghost, and select the connection. From there you can unlink specific projects while keeping the connection for others, or delete it completely. Deleting is permanent: every linked project loses its Ghost credentials, and features that rely on Ghost stop working until a new connection is added.
Frequently asked questions
Do I need to move my blog off Ghost?
No. That's the point. Ghost stays your writing and membership home, and your Lovable app just displays and works with that content.
Does it work with Ghost(Pro)?
Yes, on plans that include custom integrations. The Starter plan doesn't include them.
Can I use my custom domain as the Admin URL?
On Ghost(Pro), use the ghost.io address instead. On a self-hosted site, use the address you open Ghost Admin with, without /ghost.
Can my app see drafts and scheduled posts?
Yes. Because it uses the Admin API, it sees all statuses, which is what makes editorial dashboards possible. Just make sure your public pages only show published posts.
Will readers be able to find my API key?
No. The key stays on Lovable's side and is added to requests on the server, never sent to the browser.
Can I connect two Ghost sites to one app?
Yes. Create one connection per site and link both to the project.
Who pays for the Ghost requests?
Your Ghost hosting covers them. Lovable doesn't bill you separately for Ghost activity.
Want it built for you?
If you'd like a custom front end, member portal or editorial tool on top of your Ghost site without doing the setup yourself, I build these as a Lovable expert. See my services, or if you already have an app that needs care, check out ongoing support.