Put your roadmap, changelog and help desk on your own domain
Your customers should not have to leave your product to see what has shipped, vote on what comes next or ask for help. The Decuga SDKs draw your public changelog, roadmap and helpdesk portal inside your own site or app, with your fonts and colours, instead of sending people to a separate page.
There is a ready-made widget for each page, a typed client if you want to draw the pages yourself, and packages for React, Vue and plain web components.
Which package
| Your stack | Package | You get |
|---|---|---|
| React, Next.js, Remix | @decuga/react | Components, hooks, and a changelog that is drawn on the server. |
| Vue, Nuxt, Quasar | @decuga/vue | Components, composables, and a changelog that is drawn on the server. |
| Angular, Svelte, Solid, Astro, plain HTML | @decuga/elements | Web components, themable with CSS. One script tag is enough. |
| Anything else, or a server | @decuga/client | A typed client with no dependencies, for your own components, a server render or a script. |
The React and Vue packages build on @decuga/client and @decuga/elements, so one install gives you everything for that framework.
Before you start
- Turn the page on in Decuga. Publish at least one changelog entry, make roadmap items public, or create a helpdesk form, so there is something to show.
- Find your project id. It is the long id in the address of your public pages, for example
decuga.com/changelog/f8503172-76c1-400e-91cf-9ea05c0b1052. The roadmap page is at/roadmap/<project id>and the portal at/portal/<project id>. - Check your plan. The roadmap and changelog need the Pro plan or higher. The helpdesk portal needs Business or higher.
Quick start
Any page: one script tag
<script src="https://cdn.jsdelivr.net/npm/@decuga/elements"></script>
<decuga-changelog project-id="YOUR_PROJECT_ID"></decuga-changelog>React or Next.js
npm install @decuga/reactimport { DecugaProvider, DecugaChangelog } from '@decuga/react'
export default function Page() {
return (
<DecugaProvider projectId="YOUR_PROJECT_ID">
<DecugaChangelog />
</DecugaProvider>
)
}Vue or Nuxt
npm install @decuga/vueimport { createApp } from 'vue'
import { createDecugaWithComponents } from '@decuga/vue'
import App from './App.vue'
createApp(App)
.use(createDecugaWithComponents({ projectId: 'YOUR_PROJECT_ID' }))
.mount('#app')Then use <DecugaChangelog />, <DecugaRoadmap /> or <DecugaHelpdesk /> in any template.
The three widgets
| Widget | What the visitor can do | Needs |
|---|---|---|
| Changelog | Read release notes, newest first, five at a time. More load as they scroll. | Pro plan or higher |
| Roadmap | See what is considered, planned, in progress and shipped. Verify their email with a code to vote. Suggest a feature, which goes to your team to review before it appears. | Pro plan or higher |
| Helpdesk | Choose a form, send a request, and after signing in follow their requests, reply and attach files. They sign in with an emailed code, or automatically when your own app signs them in. | Business plan or higher |
Visitors never create a Decuga account. By default they prove their email with a code we send, the same way they do on your public pages.
If your customers already sign in to your own app, they do not need that second sign-in: see Sign your own customers in to the helpdesk below.
Sign your own customers in to the helpdesk (auto-login)
By default, a customer who wants to see their requests in the helpdesk widget types their email and then a code we email them. If they are already signed in to your own app, that is a second sign-in they should not have to do. With helpdesk auto-login, your server tells Decuga who the customer is, Decuga answers with a session for them, and the client uses it: the widget opens on their requests, with no email field, no code, no sign-in step and no sign-out button.
| Step | What happens |
|---|---|
| 1 | The customer is signed in to your app and opens the page that has the helpdesk widget. |
| 2 | Your page asks your own server for a Decuga session. Your server checks the customer is signed in to your app. |
| 3 | Your server calls Decuga with a project API key: POST /api/v1/projects/{projectId}/customer-sessions with the customer's email, and optionally their name and their company (by your own company id). |
| 4 | Decuga finds the customer, or creates them, puts them in that company, and answers with a session. Your server returns it to the page. |
| 5 | Your page gives it to the client as the session option. The widget shows their requests and, if they belong to a company, their company's. |
app.post('/decuga-session', requireSignedInUser, async (req, res) => {
const r = await fetch(`https://decuga.com/api/v1/projects/${process.env.DECUGA_PROJECT_ID}/customer-sessions`, {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.DECUGA_API_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({ email: req.user.email, name: req.user.name, companyExternalId: req.user.companyId }),
})
res.status(r.ok ? 200 : 502).json(await r.json())
})import { DecugaClient } from '@decuga/client'
const client = new DecugaClient({
projectId: 'YOUR_PROJECT_ID',
// A function, so the SDK can ask again when the session is about to end
session: () => fetch('/decuga-session', { method: 'POST' }).then(r => r.json()),
})
document.querySelector('decuga-helpdesk').client = client| Topic | Details |
|---|---|
| Needs | The Business plan or higher (project API keys), a key whose owner can manage the service desk, and at least one active helpdesk form. |
| Session | Lasts 30 days, like a session made with an emailed code. Kept in memory only, never in the browser's storage. When it is about to end the SDK calls your function again. |
| The customer sees | The forms kept for signed-in customers, the requests they sent, their company's requests, replies, and attachments they can add and download. No Sign out button. |
| Other widgets | The changelog and roadmap are unaffected. Without a session, the helpdesk keeps the emailed code. |
Read the full helpdesk auto-login guide, with the errors, companies, React and Vue examples, and the API reference for the call.
How it works
Each widget calls the same public endpoints your Decuga pages use, straight from the visitor's browser, and draws the answer. There is no server of yours in the middle and nothing to host.
| Step | What happens |
|---|---|
| 1 | Your page loads and the widget asks decuga.com for the changelog, roadmap or forms of your project id. |
| 2 | The answer is drawn in your page, in your fonts and colours. |
| 3 | When a visitor votes or sends a request, the widget sends it to Decuga, where it lands in your team's roadmap inbox or service desk like any other. |
Everything a visitor does shows up in Decuga as it would from the public pages: votes count on the roadmap item, suggestions wait in your roadmap inbox, and requests become service desk tickets like any other.
Security and privacy
- No secrets in the page. The SDKs use no API key. They can only do what a visitor to your public pages can do. Helpdesk auto-login is the exception to know about: it uses an API key on your server to ask for a session, and the key never reaches the page or the SDK.
- No cookies. Requests are sent without credentials. A signed-in visitor's session is kept in the browser's session storage by default (it ends when the tab closes). Set
storagetolocalto keep visitors signed in between visits. - Any website can call the public endpoints. To let the SDKs run on your domain, the roadmap, changelog and portal endpoints answer requests from any origin. They carry no cookies, and everything they return is already public. The rest of the Decuga API still answers only decuga.com.
- Rich text is cleaned twice. Roadmap descriptions and support replies are sanitised when saved and again in the browser before they are drawn, so stored content cannot run script on your domain.
- Submissions are limited. The server rate-limits requests and replies, as it does for the public pages.
Theming
The web components draw inside a shadow root, so your page's CSS cannot break them and theirs cannot leak out. You style them with custom properties:
decuga-roadmap {
--decuga-color-primary: #0f766e; /* buttons, links, your own votes */
--decuga-color-text: #0f172a;
--decuga-color-muted: #64748b;
--decuga-color-surface: #ffffff; /* cards and inputs */
--decuga-color-border: #e2e8f0;
--decuga-radius: 6px;
--decuga-font: 'Inter', sans-serif;
}Add theme="dark" or theme="auto" (follows the visitor's system setting) for dark colours. Pieces such as the vote button and the entry title are exposed as CSS parts, so decuga-roadmap::part(vote) reaches them. The web components guide lists every property and part.
Status and versions
The SDKs are in beta (version 0.x). We follow semantic versioning once they reach 1.0; until then, a minor version can change an API, and the changelog on the package page says so. Pin the version in production.
Upgrading to 0.3.0. The helpdesk now calls the people who raise tickets customers, not reporters, and 0.3.0 follows. Move all four packages to 0.3.0 together, because earlier versions send the old names, which Decuga no longer reads. The type ReporterSession is CustomerSession, reporterId is customerId, reporterEmail is customerEmail and a comment's fromReporter is fromCustomer. The changelog and roadmap widgets are unchanged. A customer signed in to the helpdesk widget signs in once more, because the stored session has a new key.
Missing something, such as another framework or a widget option? Tell us. We build from customer requests, and most are closed in a day or two. Use the support button in Decuga or the contact page.
Frequently asked questions
- Do I need an API key?
- Not to use the SDKs. They read the same public pages your customers can already open at decuga.com, so all they need is your project id, and nothing secret goes in your page.
- Can my own signed-in customers skip the helpdesk sign-in?
- Yes, with helpdesk auto-login. Your server asks Decuga for a session for the customer, using a project API key that stays on your server and never goes in a page, and you give that session to the client with the session option. The customer then sees no email code and no sign-in step. The guide at /docs/helpdesk-auto-login has the steps.
- Which plan do I need?
- The roadmap and changelog need the Pro plan or higher, and the helpdesk portal needs Business or higher, the same as the public pages on decuga.com. On a project without the right plan the widget shows that the page is not available.
- Can I use it without a framework?
- Yes. Add one script tag and write <decuga-changelog project-id="..."></decuga-changelog>. The web components work on any page, and in Angular, Svelte, Solid and Astro.
- Will search engines see my release notes?
- With the React or Vue changelog component, yes: the entries are drawn into the page on the server as ordinary HTML. The ready-made web component draws its content in the browser, so use the React or Vue component when you want the page indexed.
- Can I change how it looks?
- Yes. Set CSS custom properties for colour, font and corner radius, style individual parts, or draw everything yourself with the headless hooks and the client.