Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ Before you begin, ensure you have the following installed:
5. **Start the Development Server**

```bash
bun run dev
bun run dev:local
```

This will start all applications in the monorepo. The web app will be available at `http://localhost:3000`.
This starts each app on plain `localhost` ports (web on 3000, mcp on 8788, docs on 3003, graph on 3004) and points the web app at the public API at `https://api.supermemory.ai` via `NEXT_PUBLIC_BACKEND_URL` in `.env.example`. Sign in with magic-link/email-OTP — Google/GitHub OAuth sign-in won't round-trip back to localhost.

> **Internal team note:** `bun run dev` (without `:local`) routes through [portless](https://github.com/portless/portless) to give every app a stable `*.dev.supermemory.ai` HTTPS URL with shared cookies and a working OAuth proxy. That path requires `bun run setup:dev` once (binds port 443, trusts a local CA). OSS contributors don't need it.

## 📁 Project Structure

Expand Down Expand Up @@ -84,7 +86,8 @@ supermemory/

### Available Scripts

- `bun run dev` - Start development servers for all apps
- `bun run dev:local` - Start dev servers on plain localhost ports (recommended for OSS contributors)
- `bun run dev` - Start dev servers through portless (`*.dev.supermemory.ai`, internal team)
- `bun run build` - Build all applications
- `bun run format-lint` - Format and lint code using Biome
- `bun run check-types` - Type check all packages
Expand Down
5 changes: 4 additions & 1 deletion apps/browser-extension/utils/posthog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ async function initializePostHog(): Promise<PostHog> {
throw new Error("PostHog API key not configured")
}

posthog.init(import.meta.env.WXT_POSTHOG_API_KEY || "", POSTHOG_CONFIG)
posthog.init(
"phc_ShqecfUPQgf16lWu6ZMUzduQvcWzCywrkCz5KHwmWsv",
POSTHOG_CONFIG,
)

await identifyUser(posthog)

Expand Down
2 changes: 1 addition & 1 deletion apps/browser-extension/wxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default defineConfig({
manifest: {
name: "supermemory",
homepage_url: "https://supermemory.ai",
version: "6.1.2",
version: "6.1.3",
permissions: ["storage", "activeTab", "webRequest", "tabs"],
host_permissions: [
"*://x.com/*",
Expand Down
4 changes: 3 additions & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
"module": "index.ts",
"type": "module",
"private": true,
"portless": { "name": "docs.dev.supermemory", "script": "dev:app", "appPort": 3003 },
"scripts": {
"dev": "bunx mintlify@latest dev --no-open --port 3003"
"dev": "portless",
"dev:app": "bunx mintlify@latest dev --no-open --port 3003"
},
"devDependencies": {
"@types/bun": "latest",
Expand Down
4 changes: 3 additions & 1 deletion apps/mcp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
"name": "supermemory-mcp",
"version": "4.0.0",
"type": "module",
"portless": { "name": "mcp.dev.supermemory", "script": "dev:app" },
"scripts": {
"build:ui": "vite build",
"dev": "vite build && wrangler dev --port 8788",
"dev": "portless",
"dev:app": "vite build && wrangler dev --port ${PORT:-8788}",
"deploy": "vite build && wrangler deploy --minify",
"cf-typegen": "wrangler types --env-interface CloudflareBindings"
},
Expand Down
4 changes: 3 additions & 1 deletion apps/memory-graph-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"name": "memory-graph-playground",
"version": "0.1.0",
"private": true,
"portless": { "name": "graph.dev.supermemory", "script": "dev:app" },
"scripts": {
"dev": "next dev",
"dev": "portless",
"dev:app": "next dev --port ${PORT:-3004}",
"build": "next build",
"start": "next start"
},
Expand Down
17 changes: 15 additions & 2 deletions apps/web/app/(app)/onboarding/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ export default function OnboardingPage() {
const inputRef = useRef<HTMLInputElement>(null)
const fileRef = useRef<HTMLInputElement>(null)
const pollingRef = useRef<ReturnType<typeof setInterval> | null>(null)
const skippingRef = useRef(false)
const [spotlightCategory, setSpotlightCategory] =
useState<SpotlightCategoryId>("productivity")
const [pauseSpotlight, setPauseSpotlight] = useState(false)
Expand Down Expand Up @@ -461,6 +462,18 @@ export default function OnboardingPage() {
await refetchOrganizations()
}, [user, organizations, refetchOrganizations, setActiveOrg])

const handleSkip = useCallback(async () => {
if (skippingRef.current) return
skippingRef.current = true
try {
await ensureOrg()
router.push("/")
} catch (err) {
console.error(err)
skippingRef.current = false
}
}, [ensureOrg, router])

const pollDocument = useCallback((docId: string) => {
const maxAttempts = 60
let attempt = 0
Expand Down Expand Up @@ -620,7 +633,7 @@ export default function OnboardingPage() {
<Logo className="h-7" />
<button
type="button"
onClick={() => router.push("/")}
onClick={handleSkip}
className="text-[#525966] text-sm hover:text-white transition-colors cursor-pointer"
>
Skip for now →
Expand Down Expand Up @@ -1096,7 +1109,7 @@ export default function OnboardingPage() {
</button>
<button
type="button"
onClick={() => router.push("/")}
onClick={handleSkip}
className="rounded-xl px-4 py-2.5 text-sm font-medium text-white cursor-pointer border-[0.5px] border-[#161F2C]"
style={{
background:
Expand Down
66 changes: 60 additions & 6 deletions apps/web/components/dashboard-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,48 +123,104 @@ const TIPS: Record<Profession, string[]> = {
"Connect Claude MCP to query your saved knowledge from any IDE",
"Save GitHub repos and READMEs — ask questions across all of them",
"Use 'Related' on highlights to find connected technical concepts",
"Save a Stack Overflow answer once — find it again by what it does",
"Drop in your last 3 PRs and ask Supermemory for the review patterns",
"Save your team's RFCs and surface the ones touching your work",
"Save error messages with their fixes — search by symptom next time",
"Save framework docs once — semantic search beats Cmd+F across pages",
"Connect Notion to make your engineering specs instantly findable",
"Save the docs for libraries you keep forgetting and grep them by intent",
"Use Daily Brief to resurface the design doc you skimmed last week",
"Save changelogs as you skim — pull breaking changes back later",
"Save a debugging session as a note — find it again by the symptom",
],
research: [
"Save papers and ask questions across your entire reading list",
"Use 'Related' on highlights to surface connected research",
"Connect Notion to index your notes alongside your papers",
"Semantic search means you can ask questions, not just search titles",
"Save a paper once — Supermemory finds it later by what it argued",
"Drop in 5 papers on a topic and ask for the consensus and disagreements",
"Save citations as you read — pull them back out by claim",
"Connect Google Drive to make your dataset notes searchable",
"Use Daily Brief to resurface a finding you almost forgot",
"Save a methodology note once — find it next time you need that protocol",
"Save preprints alongside your reading list — ask what's new since last week",
"Save quotes with their source — find them later by the idea",
],
finance: [
"Save articles and ask follow-up questions across your research",
"Connect Notion to keep your investment thesis searchable",
"Use ⌘K to find specific data points across all your saves",
"Daily Brief surfaces connections you may have missed",
"Save earnings call transcripts once — pull guidance back by ticker or theme",
"Save a thesis once — find it months later by the conviction, not the filename",
"Drop in three sell-side reports and ask for the disagreements",
"Save market commentary daily — surface the calls that aged well",
"Connect Google Drive to query your models without opening them",
"Save a chart with a note — find it again by what it showed",
"Save analyst takes — pull them back when the thesis matters again",
],
design: [
"Save inspiration and search by concept — 'minimalist UI' finds the right ones",
"Use ⌘K to rediscover references by meaning, not filename",
"Connect Notion to make your briefs and moodboards searchable",
"Chrome extension saves any page in one click while you browse",
"Save a screenshot with a note — find it later by what it taught you",
"Drop in 10 onboarding flows and ask Supermemory for the common patterns",
"Save your design crits — find the feedback on a specific decision later",
"Save a brand guideline once — search it by intent, not page number",
"Connect Google Drive to index your Figma exports and briefs",
"Use Daily Brief to resurface a reference that fits today's work",
"Save references by mood — pull them back when the brief calls for it",
],
legal: [
"Save documents and search across them semantically in seconds",
"Connect Notion to index your memos and case notes together",
"Use Daily Brief to resurface relevant precedents automatically",
"Google Drive sync keeps your contracts indexed and queryable",
"Save a clause once — find it next time by what it does, not where it lives",
"Save case law as you read — pull precedents back by argument",
"Drop in three contracts and ask for the diffs in indemnity language",
"Save regulator updates — surface the ones touching your matter",
"Save a memo once — search by issue, not by file name",
"Save deposition notes — find specific testimony by claim later",
],
marketing: [
"Save campaigns and resources — ask what worked across all of them",
"Chrome extension captures competitor pages in one click",
"Use 'Related' to find similar campaigns in your archive",
"Connect Notion to make your campaign briefs instantly searchable",
"Save a competitor's landing page — surface their positioning later by claim",
"Drop in five launch retros and ask for the patterns that drove growth",
"Save ad references and find them by mood, not by URL",
"Save your weekly metrics notes — pull trends back by quarter",
"Use Daily Brief to resurface a positioning note from last campaign",
"Save creative briefs — find similar ones when starting a new one",
],
medical: [
"Save studies and query across your entire reading list",
"Connect Notion to keep clinical notes alongside research",
"Use ⌘K to find specific findings across hundreds of papers",
"Daily Brief surfaces relevant research from your saves automatically",
"Save a guideline once — pull it back by clinical scenario",
"Drop in three trials and ask Supermemory for the methodological diffs",
"Save case reports — surface them later by symptom or finding",
"Connect Google Drive to index protocols across your team",
"Save teaching points from rounds — find them by topic next month",
"Save differentials as notes — pull them back when the presentation repeats",
],
default: [
"Use ⌘K to search by meaning — ask questions, not just keywords",
"Daily Brief surfaces insights from your saves each morning",
"Chrome extension saves any page in one click while you browse",
"Connect integrations to make all your knowledge searchable here",
"Save a page once — find it later by what it said, not its title",
"Save the thing you'd normally bookmark — find it again by intent",
"Drop in 10 articles on a topic and ask for the through-line",
"Save an idea — Supermemory connects it to your earlier ones",
"Use Daily Brief to resurface something useful you forgot you saved",
"Save a thread you liked — pull it back later by what it was about",
],
}

Expand Down Expand Up @@ -633,12 +689,10 @@ export function DashboardView({
const hasMcp = mcpData?.previousLogin ?? false
const connectedProviders = new Set(connections.map((c) => c.provider))

const dayOfYear = Math.round(
(Date.now() - new Date(new Date().getFullYear(), 0, 1).getTime()) /
86_400_000,
)
const tips = TIPS[profession]
const tip = tips[dayOfYear % tips.length]
const tip = useMemo(() => {
const tips = TIPS[profession]
return tips[Math.floor(Math.random() * tips.length)]
}, [profession])

return (
<div
Expand Down
Loading
Loading