DEV Community

Masaya Hori
Masaya Hori

Posted on

Accounting Made Simple: AI-Powered Financial Insights of Japanese Companies with Gemma 4

Gemma 4 Challenge: Build With Gemma 4 Submission

This is a submission for the Gemma 4 Challenge: Build with Gemma 4

What I Built

Accounting Made Simple is a modern and very simple, work in progress, financial web app that helps users track organisations and evaluate the core accounting equation: Assets = Liabilities + Owner's Equity. It combines Japanese financial data sources (EDINET and J-Quants) with Gemini-powered AI analysis to give users quick insights into a company’s financial health, trends, and potential red flags.

Key capabilities:

  • Organisation search and equity data lookup (currently targetting Japanese companies only)
  • Persistent organisation/accounting equation storage with Prisma + PostgreSQL
  • Magic-link authentication via Better Auth and Resend email
  • Financial analysis generated by Gemma 4 from real balance sheet data
  • Responsive UI built with Next.js 16, React 19, Tailwind CSS, and shadcn-inspired components

Demo

Code

Accounting Made Simple

A modern and simple web app for managing organisations and tracking the core accounting equation: Assets = Liabilities + Owner's Equity.

Built with:

  • Next.js 16 + React 19
  • Tailwind CSS v4 and shadcn/ui-inspired components
  • Prisma 7 + PostgreSQL
  • Better Auth with magic link login and Resend email delivery
  • EDINET and J-Quants financial data sources for Japanese companies
  • Gemini-powered financial analysis and insights
  • Zod / Prisma Zod generator for typed schema validation
  • Recharts for simple financial charts

Features

  • Search organisations and equity data from EDINET/J-Quants
  • Gemini-based analysis for selected financial data
  • Store organisations, accounting equations, and user sessions in PostgreSQL
  • Email-based magic link authentication via Resend
  • Responsive, utility-first UI with custom components
  • Prisma-generated types and database access layer

Getting Started

1. Clone the repository

git clone https://github.com/your-repo/accounting-made-simple.git
cd accounting-made-simple
Enter fullscreen mode Exit fullscreen mode

2. Install dependencies

npm install
Enter fullscreen mode Exit fullscreen mode

The repo runs prisma generate after install via postinstall.

3. Create .env

How I Used Gemma 4

I used Gemma 4 via the Google GenAI SDK to power the financial analysis experience in GeminiFinancialAnalysis.tsx.

  • Model used: gemma-4-31b-it
  • Reason: I chose the 31B Dense variant because it provides strong instruction-following and financial reasoning for structured company balance sheet data, while still being efficient enough for a production-style analysis flow.
  • Role in the app: Gemma 4 reads balance sheet data fetched from EDINET/J-Quants, then generates plain-language insights about company health, trends, and risk signals that are rendered directly in the UI.
  • This makes the app more than an accounting tracker — it becomes a finance assistant that helps users understand what the numbers mean.

Top comments (0)