Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Open-Dev-Society/OpenStock
/ functions
Functions
216 in github.com/Open-Dev-Society/OpenStock
⨍
Functions
216
◇
Types & classes
16
↓ 45 callers
Function
cn
(...inputs: ClassValue[])
lib/utils.ts:4
↓ 32 callers
Function
formatSymbolForTradingView
(symbol: string)
lib/utils.ts:215
↓ 17 callers
Function
connectToDatabase
()
database/mongoose.ts:31
↓ 15 callers
Function
callAIProvider
( prompt: string, provider?: AIProviderName )
lib/ai-provider.ts:151
↓ 8 callers
Function
formatMarketCapValue
(marketCapUsd: number)
lib/utils.ts:29
↓ 8 callers
Function
getProviderConfig
( provider?: AIProviderName )
lib/ai-provider.ts:24
↓ 6 callers
Function
callAIProviderWithFallback
( prompt: string )
lib/ai-provider.ts:168
↓ 6 callers
Function
getStockSentimentInsights
( symbol: string, days: number = DEFAULT_LOOKBACK_DAYS, )
lib/actions/adanos.actions.ts:68
↓ 5 callers
Function
calculateNewsDistribution
(symbolsCount: number)
lib/utils.ts:59
↓ 5 callers
Function
formatChangePercent
(changePercent?: number)
lib/utils.ts:100
↓ 5 callers
Function
getFallbackProviderName
( primary: AIProviderName )
lib/ai-provider.ts:66
↓ 5 callers
Function
normalizeSourceInsight
( source: SentimentSourceKey, row: SourceSpecificRow | null | undefined, )
lib/actions/adanos.helpers.ts:113
↓ 4 callers
Function
formatScore
(value: number | null, suffix: string)
components/stocks/StockSentimentCard.tsx:7
↓ 4 callers
Function
getChangeColorClass
(changePercent?: number)
lib/utils.ts:106
↓ 4 callers
Function
handleSubmit
(e: React.FormEvent)
components/watchlist/CreateAlertModal.tsx:50
↓ 3 callers
Function
average
(values: number[])
lib/actions/adanos.helpers.ts:89
↓ 3 callers
Function
buildStockSentimentInsights
( symbol: string, sources: Array<SentimentSourceInsight | null>, )
lib/actions/adanos.helpers.ts:138
↓ 3 callers
Function
getConfig
()
lib/kit.ts:8
↓ 3 callers
Function
getNews
(symbols?: string[])
lib/actions/finnhub.actions.ts:117
↓ 3 callers
Function
getQuote
(symbol: string)
lib/actions/finnhub.actions.ts:66
↓ 3 callers
Function
getSourceAlignment
(bullishValues: number[])
lib/actions/adanos.helpers.ts:97
↓ 3 callers
Function
removeFromWatchlist
(userId: string, symbol: string)
lib/actions/watchlist.actions.ts:33
↓ 3 callers
Function
roundTo
(value: number, digits: number = 1)
lib/actions/adanos.helpers.ts:84
↓ 3 callers
Function
sendPasswordResetEmail
( { email, name, resetUrl }: { email: string; name?: string | null; resetUrl: string } )
lib/nodemailer/reset-password.ts:11
↓ 3 callers
Function
toNumber
(value: unknown)
lib/actions/adanos.helpers.ts:75
↓ 2 callers
Function
escapeHtml
(value: string)
lib/nodemailer/reset-password.ts:3
↓ 2 callers
Function
formatArticle
( article: RawNewsArticle, isCompanyNews: boolean, symbol?: string, index: number = 0 )
lib/utils.ts:82
↓ 2 callers
Function
getAdanosApiKey
()
lib/actions/adanos.actions.ts:20
↓ 2 callers
Function
getFlagEmoji
(countryCode: string)
components/forms/CountrySelectField.tsx:46
↓ 2 callers
Function
getTrendClasses
(trend: string | null)
components/stocks/StockSentimentCard.tsx:19
↓ 2 callers
Function
getWatchlistData
(symbols: string[])
lib/actions/finnhub.actions.ts:90
↓ 2 callers
Function
validateArticle
(article: RawNewsArticle)
lib/utils.ts:76
↓ 1 callers
Function
BASELINE_WIDGET_CONFIG
(symbol: string)
lib/constants.ts:209
↓ 1 callers
Function
CANDLE_CHART_WIDGET_CONFIG
(symbol: string)
lib/constants.ts:183
↓ 1 callers
Function
COMPANY_FINANCIALS_WIDGET_CONFIG
(symbol: string)
lib/constants.ts:255
↓ 1 callers
Function
COMPANY_PROFILE_WIDGET_CONFIG
(symbol: string)
lib/constants.ts:246
↓ 1 callers
Function
SYMBOL_INFO_WIDGET_CONFIG
(symbol: string)
lib/constants.ts:174
↓ 1 callers
Function
TECHNICAL_ANALYSIS_WIDGET_CONFIG
(symbol: string)
lib/constants.ts:235
↓ 1 callers
Function
addSubscriberToKit
(email, firstName)
scripts/migrate-users-to-kit.mjs:22
↓ 1 callers
Function
addToWatchlist
(userId: string, symbol: string, company: string)
lib/actions/watchlist.actions.ts:9
↓ 1 callers
Function
callGemini
( prompt: string, config: AIProviderConfig )
lib/ai-provider.ts:80
↓ 1 callers
Function
callOpenAICompatible
( prompt: string, config: AIProviderConfig )
lib/ai-provider.ts:106
↓ 1 callers
Function
checkDBs
()
scripts/check_db_name.js:11
↓ 1 callers
Function
checkSchema
()
scripts/inspect-user.mjs:6
↓ 1 callers
Function
createAlert
(params: { userId: string; symbol: string; targetPrice: number; condition: 'ABOVE' | 'BELOW';
lib/actions/alert.actions.ts:8
↓ 1 callers
Function
createTag
()
scripts/create-kit-tag.mjs:7
↓ 1 callers
Function
deleteAlert
(alertId: string)
lib/actions/alert.actions.ts:42
↓ 1 callers
Function
fetchCompareSource
( source: SentimentSourceKey, symbol: string, days: number, )
lib/actions/adanos.actions.ts:24
↓ 1 callers
Function
formatCompactNumber
(value: number)
components/stocks/StockSentimentCard.tsx:12
↓ 1 callers
Function
formatNumber
(num: number)
lib/utils.ts:122
↓ 1 callers
Function
formatPrice
(price: number)
lib/utils.ts:111
↓ 1 callers
Function
getAdanosBaseUrl
()
lib/actions/adanos.actions.ts:16
↓ 1 callers
Function
getAlignmentClasses
(alignment: string)
components/stocks/StockSentimentCard.tsx:26
↓ 1 callers
Function
getAuth
()
lib/better-auth/auth.ts:11
↓ 1 callers
Function
getCompanyProfile
(symbol: string)
lib/actions/finnhub.actions.ts:78
↓ 1 callers
Function
getDateRange
(days: number)
lib/utils.ts:38
↓ 1 callers
Function
getExchangeLabel
(symbol: string, exchange?: string)
lib/actions/finnhub.actions.ts:51
↓ 1 callers
Function
getFormattedTodayDate
()
lib/utils.ts:149
↓ 1 callers
Function
getStandardConnectionString
()
scripts/resolve_srv.js:13
↓ 1 callers
Function
getUserAlerts
(userId: string)
lib/actions/alert.actions.ts:30
↓ 1 callers
Function
getUserWatchlist
(userId: string)
lib/actions/watchlist.actions.ts:46
↓ 1 callers
Function
handleDelete
(id: string)
components/watchlist/AlertsPanel.tsx:14
↓ 1 callers
Function
handleDismiss
()
components/DonatePopup.tsx:51
↓ 1 callers
Function
isActive
(path: string)
components/NavItems.tsx:24
↓ 1 callers
Function
isStockInWatchlist
(userId: string, symbol: string)
lib/actions/watchlist.actions.ts:58
↓ 1 callers
Function
listForms
()
scripts/list-kit-forms.mjs:7
↓ 1 callers
Function
main
()
scripts/test-db.mjs:17
↓ 1 callers
Function
main
()
scripts/verify-watchlist.mjs:48
↓ 1 callers
Function
main
()
scripts/test-db.ts:3
↓ 1 callers
Function
maskValue
(value)
scripts/check-env.mjs:119
↓ 1 callers
Function
normalizeTrend
(value: unknown)
lib/actions/adanos.helpers.ts:93
↓ 1 callers
Function
requestPasswordResetEmail
({ email }: { email: string })
lib/actions/auth.actions.ts:61
↓ 1 callers
Function
resetPasswordWithToken
( { token, newPassword }: { token: string; newPassword: string } )
lib/actions/auth.actions.ts:93
↓ 1 callers
Function
run
()
scripts/seed-inactive-user.mjs:17
↓ 1 callers
Function
runMigration
()
scripts/migrate-users-to-kit.mjs:63
↓ 1 callers
Function
runTest
()
scripts/test-kit.mjs:16
↓ 1 callers
Function
sendWelcomeEmail
({ email, name, intro }: WelcomeEmailData)
lib/nodemailer/index.ts:38
↓ 1 callers
Function
signInWithEmail
({ email, password }: SignInFormData)
lib/actions/auth.actions.ts:32
↓ 1 callers
Function
signOut
()
lib/actions/auth.actions.ts:111
↓ 1 callers
Function
signUpWithEmail
({ email, password, fullName, country, investmentGoals, riskTolerance, preferredIndustry }: SignUpFormData)
lib/actions/auth.actions.ts:7
↓ 1 callers
Function
useDebounce
(callback: () => void, delay: number)
hooks/useDebounce.ts:5
↓ 1 callers
Function
useTradingViewWidget
(scriptUrl: string, config: Record<string, unknown>, height: number | string = 600)
hooks/useTradingViewWidget.tsx:4
↓ 1 callers
Function
verifyFinnhub
()
scripts/verify-watchlist.mjs:29
Function
AboutPage
()
app/(root)/about/page.tsx:21
Function
AlertsPanel
({ alerts, onRefresh }: AlertsPanelProps)
components/watchlist/AlertsPanel.tsx:13
Function
ApiDocsPage
()
app/(root)/api-docs/page.tsx:24
Function
Avatar
({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>)
components/ui/avatar.tsx:8
Function
AvatarFallback
({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>)
components/ui/avatar.tsx:37
Function
AvatarImage
({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>)
components/ui/avatar.tsx:24
Function
Badge
({ children, color }: { children: React.ReactNode, color: 'green' | 'purple' | 'blue' })
app/(root)/api-docs/page.tsx:204
Function
Button
({ className, variant, size, asChild = false, ...props }: React.ComponentProps<"button"> & Variant
components/ui/button.tsx:37
Function
Command
({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>)
components/ui/command.tsx:16
Function
CommandDialog
({ title = "Command Palette", description = "Search for a command to run...", children, className, s
components/ui/command.tsx:32
Function
CommandEmpty
({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>)
components/ui/command.tsx:101
Function
CommandGroup
({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>)
components/ui/command.tsx:113
Function
CommandInput
({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>)
components/ui/command.tsx:63
Function
CommandItem
({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>)
components/ui/command.tsx:142
Function
CommandList
({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>)
components/ui/command.tsx:85
Function
CommandSeparator
({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>)
components/ui/command.tsx:129
Function
CommandShortcut
({ className, ...props }: React.ComponentProps<"span">)
components/ui/command.tsx:158
next →
1–100 of 216, ranked by callers