# Sachfolio > Sachfolio reads Indian mutual fund Consolidated Account Statements (CAS PDFs from CAMS, KFintech, and the mutual fund sections of NSDL and CDSL statements) and shows holdings, returns (XIRR) and capital gains, each number traced to its statement page. For investors it is a free web app that reads the PDF inside the browser: nothing is uploaded, no sign-up. For developers the same reader is an npm package and a hosted API. Facts from the statement only, never investment advice. Beta. ## For investors - [Open the app](https://sachfolio.com/app/): pick the CAS PDF and type its password; it is read on the device. [Try an invented sample](https://sachfolio.com/app/?sample). - [How to download your CAS](https://sachfolio.com/get-your-cas/): CAMS request in about two minutes (Detailed, from 01-Jan-1990, include zero-balance folios, leave PAN blank, set your own password). - [The CAS password](https://sachfolio.com/guides/cas-password/): CAMS and KFintech statements open with the password you set on the request form; NSDL and CDSL statements open with your PAN in capitals. - [Which CAS to request](https://sachfolio.com/guides/which-cas/) and [NSDL or CDSL CAS](https://sachfolio.com/guides/nsdl-cdsl-cas/) - [How to read your CAS](https://sachfolio.com/guides/read-your-cas/) and [transaction types](https://sachfolio.com/guides/transaction-types/) - [XIRR](https://sachfolio.com/guides/xirr/), [XIRR vs CAGR](https://sachfolio.com/guides/xirr-vs-cagr/) and [SIP returns](https://sachfolio.com/guides/sip-returns/) - [Tax on mutual fund gains](https://sachfolio.com/guides/tax-on-mutual-fund-gains/), [capital gains from your CAS](https://sachfolio.com/guides/capital-gains/), [Schedule 112A](https://sachfolio.com/guides/schedule-112a/) and [ELSS lock-in](https://sachfolio.com/guides/elss-lock-in/) - [Questions](https://sachfolio.com/faq/) and [all guides](https://sachfolio.com/guides/) ## For developers The package is on npm (`npm install @sachfolio/cas-reader`, BUSL-1.1). The API is live. Output is exact, checked JSON; a holding whose printed numbers don't add up is left out and counted in `coverage`, never guessed. Unsupported files fail with an error code. ## Package quickstart Node server: ```js import { readFile } from "node:fs/promises"; import { readCas } from "@sachfolio/cas-reader/node"; const cas = await readCas(new Uint8Array(await readFile("statement.pdf")), { password }); ``` Browser (the statement never reaches your server): run `npx sachfolio-cas copy-assets public/pdfjs`, then: ```js import { createCasReader } from "@sachfolio/cas-reader/browser"; const reader = createCasReader({ assetsUrl: "/pdfjs/" }); const cas = await reader.readCas(new Uint8Array(await file.arrayBuffer()), { password }); ``` Failures throw a `CasError` with a `code`; `CAS_ERRORS[code]` has a message, a next step and a retry flag. ## API quickstart No key needed to try it. Public sandbox answers for invented samples: ```bash curl https://api.sachfolio.com/v1/samples/dev-sample ``` Read a real statement with a key from the dashboard (https://api.sachfolio.com/dashboard; a free plan gives 10 reads a month): ```bash curl -X POST "https://api.sachfolio.com/v1/parse?include=analytics,gains" \ -H "x-api-key: $KEY" -H "x-pdf-password: $PASSWORD" \ -H "Content-Type: application/pdf" --data-binary @statement.pdf ``` Limits: 4 MB, 300 pages, 20 seconds. Errors are `{ "error": { "code", "message", "next_step" }, "request_id" }`. Call it from a server, not a browser (no CORS). ## Docs - [Developers](https://sachfolio.com/developers/): overview, samples, pricing and terms - [OpenAPI 3.1 spec](https://sachfolio.com/developers/openapi.json): every route, the key header, parameters and the error envelope - [Sample statements](https://sachfolio.com/developers/samples/dev-sample.pdf): invented PDFs and their JSON answers - [Privacy and security](https://sachfolio.com/trust/): where statements are processed and what is kept ## Optional - [Pricing](https://sachfolio.com/pricing/) - [Switch from casparser](https://sachfolio.com/developers/casparser/)