
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@surgbc/egw-writings-shared
Advanced tools
Shared utilities, types, and database schema for EGW Writings MCP servers
Shared utilities, types, and database schema for EGW Writings MCP servers for educational and research purposes.
This package provides common functionality shared across the EGW Writings MCP server ecosystem, including API client utilities, database management, type definitions, and authentication handling.
npm install @surgbc/egw-writings-shared
import { createAuthManager, createApiClient } from '@surgbc/egw-writings-shared';
const authManager = createAuthManager();
const apiClient = createApiClient(authManager);
// Search writings
const results = await apiClient.search('righteousness by faith', {
lang: ['en'],
limit: 10
});
// Get languages
const languages = await apiClient.getLanguages();
// Get books
const books = await apiClient.getBooksByFolder(folderId);
import { EGWDatabase } from '@surgbc/egw-writings-shared';
const db = new EGWDatabase({
dbPath: './data/egw-writings.db',
enableFTS: true,
enableWAL: true
});
// Insert data
db.insertLanguage('en', 'English', 'ltr');
db.insertBook(bookData);
db.insertParagraph(paragraphData, bookId, chapterTitle);
// Search
const results = db.search('righteousness by faith', 10, 0);
const count = db.searchCount('righteousness by faith');
// Get statistics
const stats = db.getStats();
import type {
Book,
Paragraph,
SearchResult,
Language,
Folder
} from '@surgbc/egw-writings-shared';
// Use types for type safety
const processBook = (book: Book) => {
console.log(`${book.title} by ${book.author}`);
};
The shared package looks for these environment variables:
EGW_CLIENT_ID=your_client_id
EGW_CLIENT_SECRET=your_client_secret
EGW_TOKEN_FILE=./egw-token.json # Optional: custom token storage location
The package creates and manages these tables:
Supports all major EGW Writings API endpoints:
This package is designed for educational and research purposes. The EGW writings may be subject to copyright restrictions. Users are responsible for ensuring their use complies with applicable copyright laws and fair use guidelines.
Developed by Gospel Sounders under the leadership of Brian Onang'o.
UNLICENSED - Proprietary software for educational and research use.
FAQs
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.