Skip to content

Repository files navigation

Smart GL

AI-powered accounting software for Australian small businesses.

Overview

Smart GL is a Stage 1 AI Accounting application that automates transaction categorisation using:

  • Basiq API - Bank feed aggregation
  • Formance Ledger - Double-entry bookkeeping
  • Claude Sonnet 4 - AI categorisation
  • Supabase - PostgreSQL with RLS

Tech Stack

ComponentTechnologyPurpose
FrontendNext.js 15 + App RouterReact UI
BackendFastAPI (Python 3.12)REST API
DatabaseSupabase (PostgreSQL)Data storage
LedgerFormance Ledger v2Double-entry accounting
Bank FeedsBasiq API v3Bank aggregation
AIClaude Sonnet 4Transaction categorisation
EmbeddingsOpenAISemantic search

Project Structure

smart-GL/
├── .doc/ # Documentation
│ ├── getting-started/ # Quick start guides
│ ├── architecture/ # Diagrams
│ ├── api/ # API reference
│ └── adr/ # Architecture decisions
├── apps/
│ ├── web/ # Next.js frontend
│ └── api/ # FastAPI backend
├── infra/
│ ├── supabase/ # Database migrations
│ └── docker-compose.yml # Formance Ledger
└── packages/ # Shared packages

Quick Start

Prerequisites

  • Node.js 18+
  • Python 3.12+
  • pnpm 9.0+
  • Supabase CLI (optional)
  • Docker (for Formance Ledger)

Setup

# Clone and install
pnpm install
# Start development
pnpm dev

Environment variables (see .env.example):

  • SUPABASE_URL - Database URL
  • SUPABASE_SERVICE_KEY - Service role key
  • ANTHROPIC_API_KEY - Claude API key
  • OPENAI_API_KEY - OpenAI API key
  • BASIQ_API_KEY - Basiq API key

Running Services

# Frontend (http://localhost:3000)cd apps/web && pnpm dev
# Backend (http://localhost:8000)cd apps/api && uvicorn main:app --reload
# Formance Ledger (Docker)
docker compose -f infra/docker-compose.yml up

Features

  • Dashboard with financial overview
  • Transaction list with AI categorisation
  • Journal entry double-entry view
  • Financial reports (Balance Sheet, P&L)
  • Bank feed management via Basiq
  • Chart of Accounts
  • AI Insights with categorization accuracy

Documentation

Development

# Build all apps
pnpm build
# Lint all apps
pnpm lint
# Type-check all apps
pnpm type-check

Testing

# API testscd apps/api && pytest

Deployment

  • Frontend: Vercel
  • Backend: Fly.io
  • Database: Supabase

See Deployment Guide

License

Proprietary - All rights reserved

About

Smart GL - AI-powered accounting software for Australian small businesses

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages