Here's where I'm currently most productive:
I've found serverless Postgres for general and Mysql for heavy duty lifting, and libsql for near-edge hosting, to be incredibly powerful.
For TypeScript, I've found Drizzle ORM the best to work with in fast iteration cycles
import { numeric, pgTable, serial, timestamp } from "drizzle-orm/pg-core"
export const metrics = pgTable("metrics", {
id: serial("id").primaryKey(),
timestamp: timestamp("timestamp").notNull(),
value: numeric("value", { precision: 18, scale: 8 }).notNull(),
volatility: numeric("volatility", { precision: 10, scale: 4 }),
volume: numeric("volume", { precision: 16, scale: 2 }),
})
I use React Server Components extensively, enhanced with tRPC for end-to-end type safety:
// Financial data fetching with tRPC
export default async function Dashboard() {
const data = await api.metrics.getDaily.query({
metrics: ['volatility', 'volume'],
timeframe: '24h'
});
return (
<DataGrid
metrics={data}
components={{
VolumeChart: () => <VolumeAnalysis data={data.volume} />,
VolatilitySeries: () => <VolatilityIndicator data={data.volatility} />
}}
/>
)
}