Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
import { queryOptions, useQuery } from '@tanstack/solid-query';
import { getMacroGithubStars } from '../service-clients/service-github-public/client';
const githubStarsQueryOptions = queryOptions({
queryKey: ['public', 'github', 'macro-inc/macro', 'stars'],
queryFn: ({ signal }) => getMacroGithubStars(signal),
staleTime: 60 * 60 * 1000,
gcTime: 24 * 60 * 60 * 1000,
retry: 1,
throwOnError: false,
});
/** Shared across onboarding mounts; this public request needs no sign-in. */
export function useGithubStarsQuery() {
return useQuery(() => githubStarsQueryOptions);
}