Skip to content

Instantly share code, notes, and snippets.

@hugomrdias
Created August 3, 2025 19:18
Show Gist options
  • Save hugomrdias/a77e9c4316e23104f1e403377dec1731 to your computer and use it in GitHub Desktop.
Save hugomrdias/a77e9c4316e23104f1e403377dec1731 to your computer and use it in GitHub Desktop.
categories
const defaultCategories = [
{
name: 'Revenue',
description:
'Income generated from the core business activities and other sources. Examples: product sales, SaaS subscriptions, consulting fees, software licensing, interest from business savings, dividends from investments, rental income from business property, gains from selling company assets, and miscellaneous income.',
color: 'green',
children: [
{
name: 'Sales',
description:
'Revenue from selling goods or services directly to customers. Examples: retail product sales, service fees, e-commerce transactions.',
color: 'green',
},
{
name: 'Subscriptions',
description:
'Recurring revenue from subscription-based offerings. Examples: monthly SaaS fees, membership dues, recurring content access.',
color: 'green',
},
{
name: 'Consulting',
description:
'Revenue from providing consulting or advisory services. Examples: business strategy sessions, IT consulting, freelance project work.',
color: 'green',
},
{
name: 'Licensing',
description:
'Revenue from licensing intellectual property, software, or content. Examples: software license fees, royalties from patents, media licensing.',
color: 'green',
},
{
name: 'Interest',
description:
'Income from interest earned on business loans, deposits, or investments. Examples: interest from business savings accounts, interest on loans to others.',
color: 'green',
},
{
name: 'Dividends',
description:
'Income from dividends paid on stocks or other investments held by the business. Example: quarterly dividends from equity holdings.',
color: 'green',
},
{
name: 'Rental',
description:
'Revenue from renting out business-owned assets. Examples: leasing office space, equipment rental income.',
color: 'green',
},
{
name: 'Gains on Assets',
description:
'Profit from selling business assets above their book value. Examples: selling old company vehicles, selling real estate at a gain.',
color: 'green',
},
{
name: 'Other',
description:
'Miscellaneous revenue sources not covered above. Examples: rebates, one-off grants, insurance claim proceeds.',
color: 'green',
},
],
},
{
name: 'Administrative & Office',
description:
'General overhead and operational costs required to run the business. Examples: office rent, utility bills, insurance premiums, office supplies, internet and phone services, bank charges, business licenses, and software subscriptions.',
color: 'blue',
children: [
{
name: 'Rent & Lease',
description:
'Expenses for renting or leasing business premises or equipment. Examples: office rent, warehouse lease, copier lease.',
color: 'blue',
},
{
name: 'Utilities',
description:
'Payments for essential services. Examples: electricity, water, gas, waste disposal.',
color: 'blue',
},
{
name: 'Insurance',
description:
'Premiums for business insurance policies. Examples: general liability, property insurance, professional indemnity.',
color: 'blue',
},
{
name: 'Office Supplies',
description:
'Purchases of consumable office items. Examples: paper, pens, printer ink, stationery.',
color: 'blue',
},
{
name: 'Internet & Phone',
description:
'Costs for business internet and telephone services. Examples: broadband subscription, VOIP service, mobile plans.',
color: 'blue',
},
{
name: 'Bank Fees',
description:
'Charges from financial institutions. Examples: monthly account fees, wire transfer charges, overdraft fees.',
color: 'blue',
},
{
name: 'Permits & Licenses',
description:
'Fees for obtaining or renewing business permits and licenses. Examples: business registration, health permits, professional licenses.',
color: 'blue',
},
{
name: 'Software',
description:
'Expenses for business software and SaaS tools. Examples: productivity suite subscriptions, accounting software, CRM tools.',
color: 'blue',
},
],
},
{
name: 'Personnel & Labor',
description:
'All costs related to employing or contracting people to work for the business. Examples: employee salaries, contractor payments, benefits, training, recruitment, payroll taxes, and social security contributions.',
color: 'red',
children: [
{
name: 'Salaries & Wages',
description:
'Payments to employees for their work. Examples: monthly salaries, hourly wages, overtime pay.',
color: 'red',
},
{
name: 'Freelancer and Contractors Fees',
description:
'Payments to non-employee workers. Examples: freelance developer fees, consultant invoices, outsourced design work.',
color: 'red',
},
{
name: 'Employee Benefits',
description:
'Non-wage compensation for employees. Examples: health insurance, retirement contributions, paid leave.',
color: 'red',
},
{
name: 'Employee Training',
description:
'Costs for staff development. Examples: workshop fees, online course subscriptions, conference tickets.',
color: 'red',
},
{
name: 'Recruiting & Hiring',
description:
'Expenses for finding and onboarding new staff. Examples: job ad fees, recruiter commissions, background checks.',
color: 'red',
},
{
name: 'Payroll Taxes',
description:
'Employer-paid taxes on employee compensation. Examples: social security, Medicare, unemployment insurance.',
color: 'red',
},
{
name: 'Social Contributions',
description:
'Mandatory or voluntary contributions to social programs. Examples: pension fund payments, union dues.',
color: 'red',
},
{
name: 'Other',
description:
'Other personnel-related expenses. Examples: staff events, uniforms, employee appreciation gifts.',
color: 'red',
},
],
},
{
name: 'Marketing & Sales',
description:
"Expenses to promote, advertise, and sell the business's products or services. Examples: ad campaigns, website hosting, social media management, PR, market research, and event sponsorships.",
color: 'orange',
children: [
{
name: 'Advertising',
description:
'Spending on paid promotion. Examples: Google Ads, Facebook ads, print ads, billboards.',
color: 'orange',
},
{
name: 'Website & Hosting',
description:
'Costs for maintaining the business website. Examples: domain registration, web hosting, CMS subscriptions.',
color: 'orange',
},
{
name: 'Social Media',
description:
'Expenses for social media presence. Examples: paid posts, influencer partnerships, social media tools.',
color: 'orange',
},
{
name: 'Public Relations',
description:
'Spending on PR activities. Examples: press release distribution, PR agency fees, media monitoring.',
color: 'orange',
},
{
name: 'Market Research',
description:
'Costs for gathering market intelligence. Examples: customer surveys, focus groups, competitor analysis.',
color: 'orange',
},
{
name: 'Trade Shows & Events',
description:
'Participation in industry events. Examples: booth fees, event sponsorship, travel for conferences.',
color: 'orange',
},
],
},
{
name: 'Cost of Goods Sold',
description:
'Direct costs of producing goods or services sold by the business. Examples: raw materials, direct labor, packaging, and shipping costs.',
color: 'purple',
children: [
{
name: 'Raw Materials & Inventory',
description:
'Purchases of materials and inventory for production. Examples: wholesale goods, manufacturing components, stock replenishment.',
color: 'purple',
},
{
name: 'Production Labor',
description:
'Wages for workers directly involved in production. Examples: factory worker pay, assembly line wages.',
color: 'purple',
},
{
name: 'Packaging',
description:
'Costs for packaging finished goods. Examples: boxes, labels, packing materials.',
color: 'purple',
},
{
name: 'Shipping & Freight',
description:
'Expenses to deliver goods to customers or warehouses. Examples: courier fees, freight charges, import/export shipping.',
color: 'purple',
},
],
},
{
name: 'Professional Services',
description:
'Payments to external professionals for specialized services. Examples: accounting, legal advice, business consulting.',
color: 'pink',
children: [
{
name: 'Accounting & Tax Services',
description:
'Fees for accounting, bookkeeping, and tax preparation. Examples: annual tax filing, monthly bookkeeping, audit fees.',
color: 'pink',
},
{
name: 'Legal Services',
description:
'Payments for legal advice or representation. Examples: contract drafting, litigation, intellectual property filings.',
color: 'pink',
},
{
name: 'Consulting Services',
description:
'Fees for business or technical consulting. Examples: management consulting, IT strategy, HR advisory.',
color: 'pink',
},
],
},
{
name: 'Travel & Meals',
description:
'Expenses for business-related travel and meals. Examples: airfare, hotel stays, business lunches, car rentals, fuel, parking, and tolls.',
color: 'brown',
children: [
{
name: 'Flights & Public Transit',
description:
'Costs for air travel and public transportation. Examples: airline tickets, train fares, subway passes.',
color: 'brown',
},
{
name: 'Lodging',
description:
'Expenses for overnight stays. Examples: hotel rooms, Airbnb rentals, business travel accommodations.',
color: 'brown',
},
{
name: 'Business Meals',
description:
'Meals with clients, partners, or employees for business purposes. Examples: client dinners, team lunches, coffee meetings.',
color: 'brown',
},
{
name: 'Car Rental',
description:
'Rental of vehicles for business travel. Examples: rental car fees, van hire for events.',
color: 'brown',
},
{
name: 'Fuel',
description:
'Fuel purchases for business vehicles or travel. Examples: gas station receipts, diesel for delivery vans.',
color: 'brown',
},
{
name: 'Parking & Tolls',
description:
'Fees for parking and road tolls during business travel. Examples: airport parking, city parking meters, highway tolls.',
color: 'brown',
},
],
},
{
name: 'Capital Expenditures & Depreciation',
description:
'Major purchases that provide long-term value and are capitalized on the balance sheet. Examples: buying equipment, vehicles, office furniture, or property. Depreciation is the allocation of these costs over their useful life.',
color: 'gray',
children: [
{
name: 'Equipment',
description:
'Purchases of business equipment. Examples: computers, servers, manufacturing machinery.',
color: 'gray',
},
{
name: 'Vehicles',
description:
'Acquisition of vehicles for business use. Examples: company cars, delivery trucks, vans.',
color: 'gray',
},
{
name: 'Furniture',
description:
'Buying office or facility furniture. Examples: desks, chairs, conference tables.',
color: 'gray',
},
{
name: 'Property',
description:
'Purchasing land or buildings for business operations. Examples: office buildings, warehouses, land for expansion.',
color: 'gray',
},
],
},
{
name: 'Financial Costs',
description:
'Expenses related to borrowing, financing, and payment processing. Examples: loan interest, credit card interest, and payment processor fees (Stripe, PayPal, etc).',
color: 'yellow',
children: [
{
name: 'Loan Interest',
description:
'Interest paid on business loans or mortgages. Examples: monthly loan interest, mortgage interest for office property.',
color: 'yellow',
},
{
name: 'Credit Card Interest',
description:
'Interest charges on business credit card balances. Example: monthly credit card interest fees.',
color: 'yellow',
},
{
name: 'Payment Processing Fees',
description:
'Fees charged by payment processors. Examples: Stripe transaction fees, PayPal fees, merchant account charges.',
color: 'yellow',
},
],
},
{
name: 'Taxes & Compliance',
description:
'Mandatory payments to government authorities and compliance-related costs. Examples: VAT, sales tax, business income tax, property tax, franchise tax, and other regulatory taxes.',
color: 'green',
children: [
{
name: 'VAT/Sales Tax',
description:
'Payments for value added tax (VAT), goods and services tax (GST), or sales tax. Examples: quarterly VAT remittance, sales tax collected and paid.',
color: 'green',
},
{
name: 'Business Income Tax',
description:
'Taxes on business profits. Examples: annual corporate income tax, estimated tax payments.',
color: 'green',
},
{
name: 'Property Taxes',
description:
'Taxes on business-owned real estate. Example: annual property tax bill for office building.',
color: 'green',
},
{
name: 'Franchise Taxes',
description:
'State or local taxes for the privilege of doing business. Example: annual state franchise tax.',
color: 'green',
},
{
name: 'Other Taxes',
description:
'Other tax payments not listed above. Examples: excise taxes, environmental fees, local business levies.',
color: 'green',
},
],
},
{
name: 'Other Expenses',
description:
"A catch-all for business expenses that don't fit neatly into the above categories. Examples: professional association dues, magazine subscriptions, charitable donations, and business gifts.",
color: 'black',
children: [
{
name: 'Dues & Subscriptions',
description:
'Membership fees and subscription costs. Examples: trade association dues, magazine subscriptions, online service subscriptions.',
color: 'black',
},
{
name: 'Charitable Contributions',
description:
'Donations to charitable organizations. Examples: donations to non-profits, sponsorship of charity events.',
color: 'black',
},
{
name: 'Business Gifts',
description:
'Gifts given for business purposes. Examples: holiday gifts to clients, thank-you gifts to partners.',
color: 'black',
},
],
},
{
name: 'System',
description:
'Special system categories for internal bookkeeping and fallback purposes. Examples: internal transfers between accounts, uncategorized transactions.',
color: 'gray',
system: true,
children: [
{
name: 'Internal Transactions',
description:
'Transfers or adjustments between business accounts. Example: moving funds from checking to savings.',
color: 'gray',
system: true,
},
{
name: 'Uncategorized',
description:
'Fallback for transactions that do not match any other category, including those not fitting "Other Expenses". Example: unknown or unclassified expenses.',
color: 'gray',
system: true,
},
],
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment