0.0.66 • Published 7 days ago

@newtonschool/react_proctoring_library v0.0.66

Weekly downloads
-
License
-
Repository
-
Last release
7 days ago

Welcome to react_proctoring_library · GitHub license npm (scoped) npm bundle size (minified) CircleCI Status PRs Welcome

Hi! react_proctoring_library is a user friendly, easy to use and your one-stop npm library which will provide you the ability to proctor all your exams, tests, quizzes, playgrounds, almost everything you need to proctor with the minimum effort possible. We have used body-pix model from tensorflow library to detect if user is looking outside the screen, multiple people visible in camera. We have also implemented tab switching tracker and full screen exit tracker.

Why?

  • In these times when most of the exams are conducted online, a lot of us want some sort of mechanism which could make their life easy while taking online test and react_proctoring_library has done this for you.

Future Plans?

  • Detection of multiple persons via Audio.
  • Provision of videos of the proctored sessios.
  • Screenshots when proctoring params are breached.

Installation

You must have React v16.8 or above installed in your project to use this proctoring library.

If you want, you can also create a new react app using npx create-react-app my-new-app command.

Once you have a react app, just type npm install react_proctoring_library in your terminal and if everything goes fine, you are good to go.

Props

PropsisRequiredParamsTypeDescription
childrenYesJSX ComponentThe Component which you want to proctor
proctoringIdentifierYesStringA unique string to identify every test
proctoringParamsOptionalObject {userCount tabSwitch, fullscreenExit, lookedAway}Parameters on which the screen is proctored. By default, all parameters are true
shouldSendDataOnBreachOptionalBooleanTrue if data needs to be sent on breach, else False. Default is False
sendDataOptionalFunctionif shouldSendDataOnBreach is True, this callback is called with the details of the breach on every breach

Documentation

Currently, react_proctoring_library comes with 2 things:

  • ProctorApp - A Component which will help you in proctoring
  • Object getStatistics(string: proctoringIdentifier) - A function which will return a data Object with all Statistics about breaches.
import { ProctorApp, getStatistics } from  'react_proctoring_library';
function Test(props) {
	return (
		<div>
			<h1>Proctoring Window</h1>
		</div>
	);
}

function App() {
	const proctoringIdentifier = 'unique-proctoring-identifier';

	const  getStats = e  => {
		e.preventDefault();
		console.log(getStatistics(proctoringIdentifier));
	};
	return (
		<div className="App">
			<ProctorApp proctoringIdentifier={proctoringIdentifier}>
				<Test />
			</ProctorApp>
		</div>
		<button  onClick={getStats}>Get Statistics</button>
	);
}

export default App;
0.0.66

7 days ago

0.0.65

3 months ago

0.0.64

4 months ago

0.0.63

5 months ago

0.0.62

5 months ago

0.0.60

6 months ago

0.0.61

6 months ago

0.0.59

6 months ago

0.0.56

9 months ago

0.0.57

8 months ago

0.0.58

7 months ago

0.0.55

1 year ago

0.0.51

1 year ago

0.0.52

1 year ago

0.0.53

1 year ago

0.0.54

1 year ago

0.0.50

1 year ago

0.0.48

1 year ago

0.0.49

1 year ago

0.0.46

1 year ago

0.0.47

1 year ago

0.0.40

1 year ago

0.0.41

1 year ago

0.0.42

1 year ago

0.0.43

1 year ago

0.0.44

1 year ago

0.0.45

1 year ago

0.0.39

1 year ago

0.0.38

2 years ago

0.0.37

2 years ago

0.0.30

2 years ago

0.0.31

2 years ago

0.0.32

2 years ago

0.0.33

2 years ago

0.0.34

2 years ago

0.0.35

2 years ago

0.0.36

2 years ago

0.0.26

2 years ago

0.0.27

2 years ago

0.0.28

2 years ago

0.0.20

2 years ago

0.0.21

2 years ago

0.0.23

2 years ago

0.0.24

2 years ago

0.0.25

2 years ago

0.0.15

2 years ago

0.0.16

2 years ago

0.0.17

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.0.14

2 years ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.1

2 years ago