{% extends "base.html" %} {% block content %}

Developer SDK

Build accessible mobile applications with the PrismaOS SDK. Create inclusive experiences that work for everyone.

hello_world.js
import { PrismaOS } from '@prismaos/sdk';

// Initialize accessibility-first app
const app = new PrismaOS.App({
  name: 'Hello World',
  accessibility: {
    screenReader: true,
    voiceCommands: true,
    highContrast: true
  }
});

// Create accessible UI elements
const button = app.createElement('button', {
  text: 'Hello World',
  ariaLabel: 'Say hello to the world',
  onClick: () => {
    app.tts.speak('Hello, accessible world!');
  }
});

app.render();

SDK Features

Everything you need to build accessible mobile applications

Accessibility-First APIs

Built-in accessibility features that work out of the box, ensuring your apps are inclusive by default.

  • Screen reader integration
  • Voice command support
  • Gesture recognition

Adaptive UI Components

Pre-built UI components that automatically adapt to user accessibility preferences and needs.

  • Responsive layouts
  • High contrast themes
  • Scalable text and icons

AI-Powered Assistance

Integrate machine learning capabilities for enhanced accessibility and user assistance features.

  • Natural language processing
  • Image description
  • Predictive text input

Cross-Platform Support

Develop once, deploy everywhere with compatibility layers for other mobile platforms.

  • Android compatibility
  • Web app support
  • Progressive enhancement

Development Tools

Comprehensive toolchain for building, testing, and debugging accessible applications.

  • Accessibility debugger
  • Emulator with assistive tech
  • Compliance validation

Learning Resources

Extensive documentation, tutorials, and community support to help you build better accessible apps.

  • Interactive tutorials
  • Best practices guide
  • Community forums

Getting Started

Set up your development environment in minutes

1

Install the SDK

Download and install the PrismaOS SDK using your preferred package manager.

# Using npm
npm install -g @prismaos/sdk

# Using yarn  
yarn global add @prismaos/sdk

# Using pip (Python bindings)
pip install prismaos-sdk
2

Create Your First Project

Use the CLI tool to generate a new accessible application project.

# Create a new project
prismaos create my-accessible-app

# Navigate to project directory
cd my-accessible-app

# Start development server
prismaos dev
3

Build Accessible Components

Use our pre-built components or create custom accessible UI elements.

import { Button, Screen, TTS } from '@prismaos/sdk';

const AccessibleButton = () => (
  <Button
    text="Click me"
    ariaLabel="Accessible button example"
    onPress={() => TTS.speak('Button pressed!')}
    accessible={true}
    accessibilityRole="button"
  />
);
4

Test and Deploy

Test your app with accessibility tools and deploy to the PrismaOS app store.

# Run accessibility tests
prismaos test --accessibility

# Build for production
prismaos build

# Deploy to app store
prismaos deploy

Documentation

Comprehensive guides and API references

Quick Start Guide

Get up and running with PrismaOS development in 15 minutes

Read Guide

API Reference

Complete API documentation with examples and code samples

Browse API

Tutorials

Step-by-step tutorials for building accessible mobile apps

Start Learning

Best Practices

Guidelines for creating outstanding accessible user experiences

Learn More

Code Examples

Real-world examples of accessible app development

Text-to-Speech Integration

Add voice output to your application content

import { TTS, Button } from '@prismaos/sdk';

const SpeakButton = ({ text, children }) => {
  const handleSpeak = async () => {
    try {
      await TTS.speak(text, {
        rate: 1.0,
        pitch: 1.0,
        voice: 'natural'
      });
    } catch (error) {
      console.error('TTS Error:', error);
    }
  };

  return (
    <Button
      onPress={handleSpeak}
      ariaLabel={`Speak: ${text}`}
      accessible={true}
    >
      {children}
    </Button>
  );
};

Voice Commands

Enable hands-free navigation and control

import { VoiceCommands, Navigation } from '@prismaos/sdk';

const setupVoiceCommands = () => {
  VoiceCommands.addCommand({
    phrases: ['go home', 'navigate home'],
    action: () => Navigation.navigate('Home'),
    description: 'Navigate to home screen'
  });

  VoiceCommands.addCommand({
    phrases: ['read this', 'read content'],
    action: () => TTS.readPageContent(),
    description: 'Read current page content'
  });

  VoiceCommands.start();
};

// Initialize voice commands when app starts
setupVoiceCommands();

High Contrast Theme

Implement adaptive theming for better visibility

import { Theme, Settings } from '@prismaos/sdk';

const AccessibleTheme = () => {
  const [highContrast, setHighContrast] = useState(
    Settings.get('highContrast', false)
  );

  useEffect(() => {
    Theme.apply(highContrast ? 'high-contrast' : 'default');
  }, [highContrast]);

  return (
    <Switch
      value={highContrast}
      onValueChange={setHighContrast}
      ariaLabel="Toggle high contrast mode"
      accessibilityHint="Improves visibility for low vision users"
    />
  );
};

Gesture Navigation

Implement accessible gesture controls

import { GestureHandler, Haptics } from '@prismaos/sdk';

const AccessibleList = ({ items }) => {
  const gestureHandler = GestureHandler.create({
    onSwipeRight: (index) => {
      // Navigate to next item
      setSelectedIndex((prev) => 
        Math.min(prev + 1, items.length - 1)
      );
      Haptics.selection();
    },
    onSwipeLeft: (index) => {
      // Navigate to previous item  
      setSelectedIndex((prev) => Math.max(prev - 1, 0));
      Haptics.selection();
    },
    onDoubleTap: (index) => {
      // Activate item
      onItemSelect(items[index]);
      Haptics.success();
    }
  });

  return gestureHandler.wrap(<ListView items={items} />);
};

Download SDK

Choose your preferred development platform

JavaScript SDK

For React Native and web-based applications

v1.0.0-alpha Latest
Download JS SDK

Python SDK

For AI-powered accessibility applications

v1.0.0-alpha Latest
Download Python SDK

Native SDK

For native PrismaOS application development

v1.0.0-alpha Preview
Download Native SDK

System Requirements

Operating System:
• Linux (Ubuntu 20.04+)
• macOS 11.0+
• Windows 10/11
Development Environment:
• Node.js 16.0+
• Python 3.8+
• Git 2.0+
Hardware:
• 8GB RAM minimum
• 20GB free disk space
• Internet connection
{% endblock %}