
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
@crimson-education/replit-sdk
Advanced tools
This SDK facilitates the rapid integration of Replit-hosted applications into the Crimson ecosystem.
The integration works by passing environment variables and user parameters via URL parameters (query string or hash) to the Replit frontend. This data is stored in-memory and persists until the current session ends, providing a seamless iframe integration experience.
api:
bindApi(app): Binds /api/function routes to an Express app for forwarding GraphQL requests.graphqlProxySchema: Zod schema for the proxy request body.components:
ExternalLink: A specialized component designed to handle navigation to external URLs (out of iframe).hooks:
useUrlParams(): Extracts and stores essential data (Auth Tokens, API endpoints) from the URL.getStoredParam(key) / setStoredParams(values): Utilities for managing persisted parameters.functions:
fetchLoginUser and fetchMyStudents.utils:
initDatadog(config): Manages Datadog initialization.trackEvent(name): Analytics utility.apiRequest(query, variables): A pre-configured GraphQL request client wrapper.To integrate your Replit app into the Crimson ecosystem, follow these steps:
npm install @crimson-education/replit-sdk@1.0.2-beta-16
Initialize the context at the top level of your application.
import { IDevProvider } from '@crimson-education/replit-sdk/lib/context/dev-context';
function App() {
return (
<IDevProvider>
<YourAppRoutes />
</IDevProvider>
);
}
In your server-side code (e.g., server/routes.ts), bind the API proxy:
import { bindApi } from '@crimson-education/replit-sdk';
export function registerRoutes(app: Express) {
bindApi(app);
// ... other routes
}
In your main component, use the hook to sync URL parameters to memory:
import { useUrlParams } from '@crimson-education/replit-sdk/lib/hooks/use-url-params';
function MainComponent() {
useUrlParams();
return <div>My Content</div>;
}
Use the ExternalLink component for any links that should open outside the iframe:
import { ExternalLink } from '@crimson-education/replit-sdk';
<ExternalLink href="https://app.crimsoneducation.org">Go to Crimson App</ExternalLink>;
import { init as datadogInit, trackEvent } from '@crimson-education/replit-sdk';
datadogInit({ app: 'your-replit-app-name' });
trackEvent({ action: 'APP_LAUNCHED' });
Use the built-in functions to fetch user or student data:
import { fetchLoginUser, fetchMyStudents } from '@crimson-education/replit-sdk/lib/functions';
const user = await fetchLoginUser();
// you may get multiple roles, just keep one of 'STRATEGIST', 'CASE_MANAGER', 'TUTOR',
const students = await fetchMyStudents(user.userId, ['STRATEGIST']);
FAQs
SDK for Replit app integration
The npm package @crimson-education/replit-sdk receives a total of 43 weekly downloads. As such, @crimson-education/replit-sdk popularity was classified as not popular.
We found that @crimson-education/replit-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
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.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.