⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
import { client } from "@kaneo/libs";
import { HttpError } from "@/lib/http-error";
export type BillingPlan = "personal" | "team";
export type BillingInterval = "monthly" | "annual";
export async function createBillingCheckout(input: {
workspaceId: string;
plan: BillingPlan;
interval: BillingInterval;
}) {
const response = await client.billing[":workspaceId"].checkout.$post({
param: { workspaceId: input.workspaceId },
json: { plan: input.plan, interval: input.interval },
});
if (!response.ok) {
throw await HttpError.fromResponse(response);
}
return response.json();
}
export async function createBillingPortal(workspaceId: string) {
const response = await client.billing[":workspaceId"].portal.$post({
param: { workspaceId },
});
if (!response.ok) {
throw await HttpError.fromResponse(response);
}
return response.json();
}