Kalimantaan is a novel by C. S. Godshalk offering a fictionalized account of the exploits of James Brooke in Sarawak on Borneo.
Godshalk has changed names and details while evoking a sense of the time, place, and atmosphere of the real events.
Amelia Barr is fictional, but largely based on Margaret Brooke, wife of the second Rajah, and her book "My Life in Sarawak".
On the other hand, the 30,000 pounds that Brooke/Barr inherited at his father's death which enabled him to acquire his schooner, the massacre of the sons of the Sultan of Brunei, the Chinese insurrection of 1857, and the commission of inquiry in Singapore all took place as described.
The inquiry in Singapore was concerned with the battle of Labuan in which Brooke/Barr led British warships in a pre-emptive strike against a pirate fleet, breaking the power of the Bugis for the next twenty years.