Skip to content

Commit bd1b18f

Browse files
author
Dominique Chuo
committed
goo brrrm
1 parent c0e751d commit bd1b18f

File tree

16 files changed

+104
-61
lines changed

16 files changed

+104
-61
lines changed
Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,64 @@
11
export interface NavDropdownItem {
2-
label: string;
3-
href: string;
4-
description?: string;
2+
label: string;
3+
href: string;
4+
description?: string;
55
}
66

77
export interface NavDropdownColumn {
8-
title: string;
9-
items: NavDropdownItem[];
8+
title: string;
9+
items: NavDropdownItem[];
1010
}
1111

1212
export interface NavDropdown {
13-
id: string;
14-
label: string;
15-
columns: NavDropdownColumn[];
13+
id: string;
14+
label: string;
15+
columns: NavDropdownColumn[];
1616
}
1717

1818
export interface NavDirectLink {
19-
href: string;
20-
label: string;
19+
href: string;
20+
label: string;
2121
}
2222

2323
export const navDropdowns: NavDropdown[] = [
24-
{
25-
id: 'resources',
26-
label: 'Resources',
27-
columns: [
28-
{
29-
title: 'Learn',
30-
items: [
31-
{ label: 'Documentation', href: '/docs', description: 'Guides and references' },
32-
{ label: 'FAQ', href: '/faq', description: 'Common questions' },
33-
{ label: 'GitHub', href: 'https://github.com/reifydb/reifydb', description: 'Source code' },
24+
{
25+
id: 'resources',
26+
label: 'Resources',
27+
columns: [
28+
{
29+
title: 'Learn',
30+
items: [
31+
{label: 'Documentation', href: '/docs', description: 'Guides and references'},
32+
{label: 'FAQ', href: '/faq', description: 'Common questions'},
33+
{label: 'GitHub', href: 'https://github.com/reifydb/reifydb', description: 'Source code'},
34+
],
35+
},
36+
{
37+
title: 'Connect',
38+
items: [
39+
{label: 'Contact', href: '/contact', description: 'Get in touch'},
40+
{label: 'Support', href: '/support', description: 'Technical help'},
41+
{label: 'Book a Call', href: 'https://cal.com/reifydb/30min', description: 'Schedule a demo'},
42+
],
43+
},
3444
],
35-
},
36-
{
37-
title: 'Connect',
38-
items: [
39-
{ label: 'Contact', href: '/contact', description: 'Get in touch' },
40-
{ label: 'Support', href: '/support', description: 'Technical help' },
41-
{ label: 'Book a Call', href: 'https://cal.com/reifydb/30min', description: 'Schedule a demo' },
45+
},
46+
{
47+
id: 'company',
48+
label: 'Company',
49+
columns: [
50+
{
51+
title: 'About',
52+
items: [
53+
{label: 'Values', href: '/company/values'},
54+
{label: 'Mission', href: '/company/mission'},
55+
],
56+
},
4257
],
43-
},
44-
],
45-
},
46-
{
47-
id: 'company',
48-
label: 'Company',
49-
columns: [
50-
{
51-
title: 'About',
52-
items: [
53-
{ label: 'Values', href: '/company/values', description: 'What we stand for' },
54-
{ label: 'Mission', href: '/company/mission', description: 'Why we exist' },
55-
],
56-
},
57-
],
58-
},
58+
},
5959
];
6060

6161
export const navDirectLinks: NavDirectLink[] = [
62-
{ href: '/docs', label: 'Docs' },
63-
{ href: '/#pricing', label: 'Pricing' },
62+
{href: '/docs', label: 'Docs'},
63+
{href: '/#pricing', label: 'Pricing'},
6464
];

src/data/faq-data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ export interface FaqItemData {
66
export const faqs: FaqItemData[] = [
77
{
88
question: 'What is ReifyDB?',
9-
answer: 'ReifyDB is a database for application state. It stores, mutates, and derives live application state under a single transactional model. State is kept in memory for low latency, persisted asynchronously for durability, and extended with application-defined logic that runs next to the data.',
9+
answer: 'ReifyDB is a database for application state. It helps you understand, mutate, and derive live application state under a single transactional model. State is kept in memory for low latency, persisted asynchronously for durability, and extended with application-defined logic that runs next to the data.',
1010
},
1111
{
1212
question: 'How is ReifyDB different from PostgreSQL or Redis?',
13-
answer: 'PostgreSQL is disk-first: durable and query-rich, but slow for real-time state. Redis is memory-first: fast, but transactions lack rollbacks and there is no derived state. ReifyDB gives you in-memory speed with full ACID transactions, plus incremental materialized views and programmable logic that runs inside the database.',
13+
answer: 'PostgreSQL is disk-first: durable and query-rich, but slow for real-time state. Redis is memory-first: fast, but transactions lack rollbacks and there is no derived state. ReifyDB is designed around reasoning about state - with full ACID transactions, plus incremental materialized views and programmable logic that runs inside the database.',
1414
},
1515
{
1616
question: 'Is ReifyDB production ready?',

src/lib/wasm-db.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { decode } from '@reifydb/core';
1+
import { decode, type TypeValuePair } from '@reifydb/core';
22
import type { WasmDB as RawWasmDB } from './wasm/reifydb_webassembly';
33

44
function transformToValueInstances(result: unknown): unknown {
@@ -10,7 +10,7 @@ function transformToValueInstances(result: unknown): unknown {
1010
// Check if it's a TypeValuePair
1111
const obj = result as Record<string, unknown>;
1212
if ('type' in obj && 'value' in obj && Object.keys(obj).length === 2) {
13-
return decode(obj as { type: string; value: string });
13+
return decode(obj as unknown as TypeValuePair);
1414
}
1515
// Transform object properties
1616
const transformed: Record<string, unknown> = {};
@@ -26,7 +26,11 @@ export async function createWasmDB(): Promise<WasmDB> {
2626
}
2727

2828
export class WasmDB {
29-
constructor(private db: RawWasmDB) {}
29+
private db: RawWasmDB;
30+
31+
constructor(db: RawWasmDB) {
32+
this.db = db;
33+
}
3034

3135
command(rql: string): unknown {
3236
return transformToValueInstances(this.db.command(rql));

src/pages/docs/overview.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,13 @@ export function DocsOverview() {
4141
<h1 className="text-3xl sm:text-4xl font-black tracking-tight mb-4">
4242
ReifyDB Documentation
4343
</h1>
44+
<p className="text-base text-text-muted mb-3 italic">
45+
Built on the premise that databases should optimize for reasoning about state,
46+
not just storing it.
47+
</p>
4448
<p className="text-lg text-text-secondary leading-relaxed">
4549
ReifyDB is a database for live application state. It provides transactional guarantees,
46-
incremental derived state, and programmable state transitions, all in one engine.
50+
incremental derived state, and programmable state transitions - all in one coherent model.
4751
</p>
4852
</div>
4953
</ScrollReveal>

src/pages/landing/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Navbar, Footer } from '@/components/layout';
22
import { CtaSection } from '@/components/ui';
33
import {
44
HeroSection,
5+
FoundationSection,
56
WhatIsStateSection,
67
PhilosophySection,
78
UseCasesSection,
@@ -20,6 +21,8 @@ export function LandingPage() {
2021
<main>
2122
<HeroSection />
2223

24+
<FoundationSection />
25+
2326
<WhatIsStateSection />
2427

2528
<PhilosophySection />

src/pages/landing/sections/capabilities.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const capabilities = [
6363

6464
export function CapabilitiesSection() {
6565
return (
66-
<section id="capabilities" className="py-16 sm:py-24">
66+
<section id="capabilities" className="relative z-10 py-16 sm:py-24 bg-bg-tertiary">
6767
<div className="mx-auto max-w-6xl px-6 md:px-8">
6868
{/* Section Header */}
6969
<ScrollReveal>

src/pages/landing/sections/code-example.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function CodeExampleSection() {
5050
};
5151

5252
return (
53-
<section id="code-example" className="py-16 sm:py-24">
53+
<section id="code-example" className="relative z-10 py-16 sm:py-24 bg-bg-secondary">
5454
<div className="mx-auto max-w-4xl px-6 md:px-8">
5555
{/* Section Header */}
5656
<ScrollReveal>

src/pages/landing/sections/faq.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function FaqItem({ question, answer }: { question: string; answer: string }) {
3838

3939
export function FaqSection() {
4040
return (
41-
<section id="faq" className="py-16 sm:py-24">
41+
<section id="faq" className="relative z-10 py-16 sm:py-24 bg-bg-tertiary">
4242
<div className="mx-auto max-w-3xl px-6 md:px-8">
4343
{/* Section Header */}
4444
<ScrollReveal>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import { ScrollReveal } from '@/components/ui';
2+
3+
export function FoundationSection() {
4+
return (
5+
<section className="relative z-10 py-16 sm:py-24 bg-bg-tertiary">
6+
<div className="mx-auto max-w-4xl px-6 md:px-8">
7+
<ScrollReveal>
8+
<div className="text-center">
9+
<p className="text-sm font-semibold text-primary uppercase tracking-wider mb-4">
10+
A Different Foundation
11+
</p>
12+
13+
<h2 className="text-2xl sm:text-3xl lg:text-4xl font-bold text-text-primary leading-tight mb-6">
14+
Most databases optimize for persistence.
15+
<br />
16+
<span className="text-text-secondary">
17+
ReifyDB optimizes for reasoning.
18+
</span>
19+
</h2>
20+
21+
<p className="max-w-2xl mx-auto text-text-secondary text-lg leading-relaxed">
22+
Persistence is table stakes. The harder problem is building systems
23+
where state is predictable, evolvable, and trustworthy as complexity grows.
24+
ReifyDB starts from that premise.
25+
</p>
26+
</div>
27+
</ScrollReveal>
28+
</div>
29+
</section>
30+
);
31+
}

src/pages/landing/sections/hero.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function HeroSection() {
2727

2828
{/* Tagline - staggered */}
2929
<p className="max-w-3xl mx-auto text-lg sm:text-xl text-text-secondary mb-8 leading-relaxed opacity-0 animate-slide-up delay-200">
30-
Transactional guarantees, incremental derived state, and programmable state transitions, all in one engine.
30+
A database designed for reasoning about state - not just persisting it. Transactional, incremental, and programmable.
3131
</p>
3232

3333
{/* Terminal - staggered */}
@@ -37,7 +37,7 @@ export function HeroSection() {
3737

3838
{/* Problem Statement */}
3939
<p className="text-base sm:text-lg text-text-muted mb-10 font-medium opacity-0 animate-slide-up" style={{ animationDelay: '400ms' }}>
40-
Modern apps scatter state across databases, caches, and queues. ReifyDB unifies it.
40+
Traditional databases treat state as a storage problem. ReifyDB treats it as a reasoning problem.
4141
</p>
4242

4343
{/* Feature Pills - each pill with stagger */}

0 commit comments

Comments
 (0)