npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sparklings/reksadata

v0.1.1

Published

Indonesian mutual funds directory data

Downloads

192

Readme

@sparklings/reksadata

Indonesian mutual funds directory data - headless data package

A lightweight, type-safe npm package providing a complete directory of mutual funds (Reksa Dana) registered in Indonesia. Data is sourced from OJK (Otoritas Jasa Keuangan) and embedded directly in the package for offline usage.

Features

  • 🚀 Zero dependencies - Pure data package
  • 📦 Embedded data - Works offline, no API calls needed
  • 🔒 Type-safe - Full TypeScript support
  • 🎯 Headless - No UI, just data and utilities
  • 🔍 Searchable - Helper functions for filtering and searching

Installation

npm install @sparklings/reksadata
# or
pnpm add @sparklings/reksadata
# or
yarn add @sparklings/reksadata

Usage

Basic Usage

import { funds, metadata } from '@sparklings/reksadata'

console.log(`Total funds: ${metadata.count}`)
console.log(`Last updated: ${metadata.lastUpdated}`)

// Access all funds
funds.forEach(fund => {
  console.log(`${fund.code}: ${fund.productName}`)
})

Find by Code

import { findByCode } from '@sparklings/reksadata'

const fund = findByCode('BPAM001')
if (fund) {
  console.log(fund.productName)
  console.log(fund.investmentManager)
  console.log(fund.fundType)
}

Filter by Type

import { filterByType } from '@sparklings/reksadata'

const equityFunds = filterByType('equity_fund')
console.log(`Found ${equityFunds.length} equity funds`)

Filter by Investment Manager

import { filterByManager } from '@sparklings/reksadata'

const bniFunds = filterByManager('PT BNI Asset Management')
console.log(`BNI-AM manages ${bniFunds.length} funds`)

Search by Name

import { searchByName } from '@sparklings/reksadata'

const results = searchByName('pendapatan')
console.log(`Found ${results.length} funds matching "pendapatan"`)

Get Unique Values

import { getFundTypes, getInvestmentManagers } from '@sparklings/reksadata'

const types = getFundTypes()
console.log('Available fund types:', types)

const managers = getInvestmentManagers()
console.log(`Total investment managers: ${managers.length}`)

Data Structure

Fund Type

interface Fund {
  code: string                  // Fund code (e.g., "BPAM001")
  productName: string           // Fund name
  investmentManager: string     // Investment manager name
  fundType: FundType           // Fund category
}

Fund Types

Fund types available in the dataset:

  • capital_protected_fund
  • mixed_asset_fund
  • fixed_income_fund
  • money_market_fund
  • equity_fund
  • index_fund
  • exchanged_traded_fund
  • sukuk_based_fund
  • global_fund
  • rd_-_terproteksi
  • rd_-_saham

API Reference

Data Exports

  • funds: Fund[] - Array of all mutual funds
  • data: FundsData - Full dataset with metadata
  • metadata - Dataset metadata (count, lastUpdated, source)

Utility Functions

  • findByCode(code: string): Fund | undefined - Find fund by code
  • filterByType(fundType: FundType): Fund[] - Filter by fund type
  • filterByManager(investmentManager: string): Fund[] - Filter by investment manager
  • searchByName(query: string): Fund[] - Search funds by name (case-insensitive)
  • getFundTypes(): FundType[] - Get all unique fund types
  • getInvestmentManagers(): string[] - Get all unique investment managers

TypeScript Types

import type { Fund, FundsData, FundType } from '@sparklings/reksadata'

Data Source

Data is sourced from OJK (Otoritas Jasa Keuangan), Indonesia's financial services authority.

Raw Data

If you need the raw CSV data, it's available in the GitHub repository.

Updates

This package is updated manually when new mutual funds are registered or fund information changes. Check the metadata.lastUpdated field for the last update timestamp.

License

MIT

Related Projects

For a web-based directory with search UI, see the companion static site project (link TBD).