0%
balqalam Logo
balqalam
FeaturesCommunityPricingDocumentation
Login
  • Introduction
  • Pitch
  • Hogwarts
  • Live Demo
  • MVP
  • Roadmap
  • Launch Sprint
  • PRD
  • Get Started
  • Localhost
  • Architecture
  • Structure
  • Pattern
  • Page
  • Layout
  • Content
  • Types
  • Config
  • Actions
  • Queries
  • Authorization
  • Validation
  • Form
  • Table
  • Detail
  • Card
  • Util
  • Hooks
  • List Params
  • Views
  • README.md
  • ISSUE.md
  • Technology Stack
  • Database
  • File
  • CDN Assets
  • Entry Points
  • Dashboard
  • Authentication
  • Credentials
  • OAuth
  • Flow Diagrams
  • Multi-Tenancy
  • Offline
  • Onboarding
  • Onboarding Videos
  • Add Values
  • Admission
  • Application
  • Attendance
  • Compliance
  • Profile
  • Exams
  • Exam Wizard
  • Timetable
  • Classrooms
  • Notifications
  • Conference
  • LMS (Lumos)
Finance
  • Finance
  • Fee Management
  • Invoice
  • Wallet
  • Salary
  • Payroll
  • Timesheet
  • Expenses
  • Budget
  • Receipt
  • Accounts
  • Banking
  • Reports
  • Dashboard
  • Permissions
  • Messages
  • Integration Flow
  • Provision
  • AI Document Processing
  • Document Intelligence
  • Internationalization
  • Translation
  • Translation Guide
  • Icons
  • Docs Factory
  • Inspiration
  • Listings
  • Teachers
  • Students
  • Catalog
  • Library
  • Contributing
  • Code of conduct
  • GitHub Workflow
  • Database Seeds
  • Database Safety
  • Test Accounts
  • Playwright
  • Prettier
  • Block Rebound
Sales & GTM
  • Marketing Brief
  • Sales
  • Go-to-market
  • Marketing
  • Admission — Feature Spotlight
  • Pilot Program
  • Leads
  • Proposal
  • Outreach Templates
  • Case Study
  • Competitors
  • Landing-page teardown
  • Competitor FAQ
  • Business model
  • Shared economy
  • Traction
Fundraising & Ecosystem
  • Get Support
  • Investor Deck
  • Data Room
  • Investors
  • Accelerators
  • Incubators
  • Grants
  • Sponsors
  • Partners
  • Competitions & Hackathons
  • Universities & Training Centers

README.md

PreviousNext

Concise, AI-parseable feature index — tables only, max 40 lines.

README.md lives in every feature directory at src/components/<feature>/README.md. It is an index, not documentation — tables only, ~40 lines max, points to files instead of duplicating them.

Rules

#Rule
1Tables, not prose — zero paragraphs except the one-line purpose
2Max 40 lines — split or delete content beyond that
3Document only what code can't tell you — decisions, context, gotchas
4Auto-update on change — status, files table, decisions
5Lives in src/components/<feature>/, not in app/

Canonical template

# <Feature>
 
> One-line purpose.
 
## Quick Reference
 
| Key       | Value                       |
| --------- | --------------------------- |
| URL       | `/${lang}/<feature>`        |
| Directory | `src/components/<feature>/` |
| Status    | Draft / Active / Stable     |
| Models    | `Model1`, `Model2`          |
| schoolId  | Yes                         |
 
## Files
 
| File            | Purpose                                |
| --------------- | -------------------------------------- |
| `content.tsx`   | Server component, data fetching        |
| `actions.ts`    | Server actions: create, update, delete |
| `form.tsx`      | Create/edit form with Zod validation   |
| `columns.tsx`   | Table column definitions               |
| `types.ts`      | Domain types and form interfaces       |
| `validation.ts` | Zod schemas                            |
 
## Decisions
 
| Decision                    | Rationale                         |
| --------------------------- | --------------------------------- |
| Server-side filtering       | Dataset too large for client-side |
| Single form for create/edit | Reduces duplication, same schema  |
 
## Dependencies
 
| Type     | Name                               |
| -------- | ---------------------------------- |
| Internal | `school-dashboard/context`, `auth` |
| External | `@tanstack/react-table`, `zod`     |
 
## Entry Point
 
- **Read first**: `content.tsx` → `actions.ts` → `types.ts`
- **Test**: `pnpm vitest src/components/<feature>/`
- **URL**: `demo.localhost:3000/en/<feature>`

Section budget

SectionContentMax rows
Quick ReferenceURL, directory, status, models, schoolId5
FilesFile → purpose (existing files only)10
DecisionsDecision → rationale (MADR-lite)5
DependenciesInternal + external deps6
Entry PointRead first, test command, URL3 lines

Status values

StatusMeaning
DraftIn development, not yet functional
ActiveWorking, may have known issues
StableProduction-ready, well-tested

Anti-patterns

  • Prose paragraphs describing what the feature does — use the one-liner.
  • Listing every Prisma field — that's what the schema is for.
  • Copy-pasting code examples — code in README goes stale instantly.
  • README exceeding 40 lines — duplicating code; split to docs site.
  • TODOs in README — they belong in ISSUE.md.

What belongs where

ContentInNot in
Feature purposeREADME.mdCode comments
Architecture decisionsREADME.mdISSUE.md
Known bugsISSUE.mdREADME.md
Tech debtISSUE.mdREADME.md
Field descriptionstypes.tsREADME.md
API documentationDocs siteREADME.md
Code examplesSource filesREADME.md

See also

  • Pattern
  • ISSUE.md
ViewsISSUE.md

On This Page

RulesCanonical templateSection budgetStatus valuesAnti-patternsWhat belongs whereSee also

Built by Databayt ·

Welcome to balqalam.

A great journey is about to begin.